Expand description
Unified error handling module
Provides comprehensive error handling including error recording, timeout handling, and retry mechanisms. Unified Error Handling Module
This module provides comprehensive error handling for agent execution, including error recording with context, timeout handling, retry mechanisms, and context overflow handling.
§Features
- Error Recording: Record errors with timestamps, context, and stack traces
- Timeout Handling: Mark agents as timed out and emit timeout events
- Retry Mechanism: Configurable retry behavior for transient failures
- Overflow Handling: Automatic compaction and retry on context overflow
§Requirements Coverage
- Requirement 15.1: Error recording with context
- Requirement 15.2: Timeout handling with events
- Requirement 15.3: Tool call failure recording
- Requirement 15.4: Configurable retry behavior
Structs§
- Agent
Error - Agent error type for Result handling
- Error
Context - Context information for an error
- Error
Handler - Error handler for recording and managing errors
- Overflow
Handler - Handler for context length exceeded errors.
- Retry
Handler - Retry handler for managing retry operations
- Timeout
Config - Timeout configuration
- Timeout
Event - Timeout event emitted when timeout status changes
- Timeout
Handler - Timeout handler for managing agent timeouts
- Unified
Error Record - Unified error record with full context
- Unified
Retry Config - Retry configuration
Enums§
- Agent
Error Kind - Error kinds for categorization
- Retry
Result - Result of a retry operation
- Retry
Strategy - Retry strategy types
- Timeout
Status - Timeout status for an agent