agents.base.debug_utils¶
Debug utilities for agent execution with Rich UI.
Provides comprehensive debugging and logging capabilities for agent execution, particularly focused on runnable config and recursion limit issues.
Classes¶
Rich UI debugger for agent execution. |
Functions¶
|
Quick function to debug a runnable config. |
Disable global agent debugging. |
|
Enable global agent debugging. |
|
|
Get or create agent debugger. |
Module Contents¶
- class agents.base.debug_utils.AgentDebugger(agent_name='Agent', enabled=False)¶
Rich UI debugger for agent execution.
Init .
- disable()¶
Disable debugging output.
- Return type:
None
- enable()¶
Enable debugging output.
- Return type:
None
- log_agent_execution_start(input_data, config)¶
Log the start of agent execution.
- Parameters:
input_data (Any)
config (langchain_core.runnables.RunnableConfig)
- log_config_preparation(base_config, runtime_config, thread_id, kwargs)¶
Log the config preparation process.
- log_recursion_limit_flow(step, recursion_limit, source='')¶
Track recursion limit through the execution flow.
- agents.base.debug_utils.debug_runnable_config(config, context='', agent_name='Agent')¶
Quick function to debug a runnable config.
- agents.base.debug_utils.disable_agent_debugging()¶
Disable global agent debugging.
- Return type:
None
- agents.base.debug_utils.enable_agent_debugging()¶
Enable global agent debugging.
- Return type:
None