praval.core.exceptions
Custom exceptions for the Praval framework.
These exceptions provide clear error handling and debugging information for common issues in LLM agent operations.
Exceptions
Raised when there are configuration validation issues. |
|
Raised when persistent vectors do not match embedding configuration. |
|
Raised when HITL policy requires approval for a HITL-disabled agent. |
|
|
Raised when a tool call is paused waiting for human intervention. |
Base exception for all Praval-related errors. |
|
Raised when there are issues with LLM provider operations. |
|
Raised when there are issues with state persistence operations. |
|
Raised when there are issues with tool registration or execution. |
- exception praval.core.exceptions.PravalError[source]
Bases:
ExceptionBase exception for all Praval-related errors.
- exception praval.core.exceptions.ProviderError[source]
Bases:
PravalErrorRaised when there are issues with LLM provider operations.
- exception praval.core.exceptions.ConfigurationError[source]
Bases:
PravalErrorRaised when there are configuration validation issues.
- exception praval.core.exceptions.EmbeddingConfigurationError[source]
Bases:
ConfigurationErrorRaised when persistent vectors do not match embedding configuration.
- exception praval.core.exceptions.ToolError[source]
Bases:
PravalErrorRaised when there are issues with tool registration or execution.
- exception praval.core.exceptions.StateError[source]
Bases:
PravalErrorRaised when there are issues with state persistence operations.
- exception praval.core.exceptions.InterventionRequired(intervention_id, run_id, agent_name, tool_name, reason='')[source]
Bases:
PravalErrorRaised when a tool call is paused waiting for human intervention.
- Parameters:
intervention_id (str)
run_id (str)
agent_name (str)
tool_name (str)
reason (str)
- exception praval.core.exceptions.HITLConfigurationError[source]
Bases:
PravalErrorRaised when HITL policy requires approval for a HITL-disabled agent.