Module debug

Module debug 

Source
Expand description

Debug observability module for Iris agent operations

All debug output goes through tracing. Use -l <file> to log to file, --debug to enable debug-level output.

Structs§

DebugTimer
Timer for measuring operation duration

Functions§

debug_context_management
Print context management decision
debug_error
Print an error
debug_header
Print a debug header
debug_json_parse_attempt
Print JSON parsing attempt
debug_json_parse_error
Print JSON parse error
debug_json_parse_success
Print JSON parse success
debug_llm_request
Print LLM request information
debug_llm_response
Print complete LLM response
debug_phase_change
Print agent phase change
debug_section
Print a debug section
debug_stream_chunk
Print streaming chunk
debug_tool_call
Print tool call information
debug_tool_response
Print tool response information
debug_warning
Print a warning
disable_debug_mode
Disable debug mode
enable_debug_mode
Enable debug mode
is_debug_enabled
Check if debug mode is enabled
write_debug_artifact
Write debug artifact with restrictive permissions and return the file path.