- exception langgraph_agent_toolkit.helper.exceptions.AgentToolkitError(message, error_code=None, details=None)[source][source]
Bases:
ExceptionBase exception for all LangGraph Agent Toolkit errors.
All custom exceptions should inherit from this base class.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.AgentError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for agent-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.AgentConfigurationError(message, error_code=None, details=None)[source][source]
Bases:
AgentErrorRaised when there’s an error in agent configuration.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.AgentExecutionError(message, error_code=None, details=None)[source][source]
Bases:
AgentErrorRaised when an agent fails to execute properly.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.AgentTimeoutError(message, error_code=None, details=None)[source][source]
Bases:
AgentErrorRaised when an agent operation times out.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.MessageError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for message-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.UnsupportedMessageTypeError(message_type, supported_types=None)[source][source]
Bases:
MessageErrorRaised when encountering an unsupported message type.
This replaces the string-based check for “Unsupported message type”.
Initialize with specific message type information.
- Parameters:
- __init__(message_type, supported_types=None)[source][source]
Initialize with specific message type information.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.MessageConversionError(message, error_code=None, details=None)[source][source]
Bases:
MessageErrorRaised when message conversion fails.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ValidationError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for validation errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.InputValidationError(message, error_code=None, details=None)[source][source]
Bases:
ValidationErrorRaised when input validation fails.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ConfigurationValidationError(message, error_code=None, details=None)[source][source]
Bases:
ValidationErrorRaised when configuration validation fails.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ModelError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for model-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ModelNotFoundError(model_name, provider=None)[source][source]
Bases:
ModelErrorRaised when a requested model is not found.
Initialize with model information.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ModelConfigurationError(message, error_code=None, details=None)[source][source]
Bases:
ModelErrorRaised when there’s an error in model configuration.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ToolError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for tool-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ToolNotFoundError(tool_name, available_tools=None)[source][source]
Bases:
ToolErrorRaised when a requested tool is not found.
Initialize with tool information.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ToolExecutionError(tool_name, original_error=None)[source][source]
Bases:
ToolErrorRaised when tool execution fails.
Initialize with tool execution information.
- Parameters:
- __init__(tool_name, original_error=None)[source][source]
Initialize with tool execution information.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.MemoryError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for memory-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.MemoryNotFoundError(identifier, identifier_type='thread')[source][source]
Bases:
MemoryErrorRaised when requested memory/thread is not found.
Initialize with memory identifier information.
- Parameters:
- __init__(identifier, identifier_type='thread')[source][source]
Initialize with memory identifier information.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.MemoryOperationError(message, error_code=None, details=None)[source][source]
Bases:
MemoryErrorRaised when memory operations fail.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.ObservabilityError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for observability-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.FeedbackError(run_id, operation, reason=None)[source][source]
Bases:
ObservabilityErrorRaised when feedback operations fail.
Initialize with feedback operation information.
- Parameters:
- __init__(run_id, operation, reason=None)[source][source]
Initialize with feedback operation information.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.AuthenticationError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorRaised when authentication fails.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.AuthorizationError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorRaised when authorization fails.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.RateLimitError(resource, limit, reset_time=None)[source][source]
Bases:
AgentToolkitErrorRaised when rate limits are exceeded.
Initialize with rate limit information.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception langgraph_agent_toolkit.helper.exceptions.NetworkError(message, error_code=None, details=None)[source][source]
Bases:
AgentToolkitErrorBase exception for network-related errors.
Initialize the base exception.
- Parameters:
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
Bases:
NetworkErrorRaised when an external service is unavailable.
Initialize with service information.
- Parameters:
Initialize with service information.
Exception.add_note(note) – add a note to the exception
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.