motleycrew.common.exceptions
Exceptions for motleycrew
Exceptions
|
Raised when an attempt is made to use an agent that is not yet materialized. |
|
Raised when an attempt is made to modify a materialized agent, e.g. to add tools. |
|
One or more integration tests failed. |
Raised in output handlers when an agent's output is not accepted. |
|
|
Raised when the tool input is invalid |
Raised when the result file of an ipynb integration test run is not found. |
|
|
Raised when an LLM framework is not supported in motleycrew. |
|
Raised when an LLM provider is not supported in motleycrew via a framework. |
|
Raised when trying to use some functionality that requires a module that is not installed. |
Raised when a task is set to depend on itself |
- exception motleycrew.common.exceptions.LLMProviderNotSupported(llm_framework: str, llm_provider: str)
Bases:
ExceptionRaised when an LLM provider is not supported in motleycrew via a framework.
- __init__(llm_framework: str, llm_provider: str)
- exception motleycrew.common.exceptions.LLMFrameworkNotSupported(llm_framework: str)
Bases:
ExceptionRaised when an LLM framework is not supported in motleycrew.
- __init__(llm_framework: str)
- exception motleycrew.common.exceptions.AgentNotMaterialized(agent_name: str)
Bases:
ExceptionRaised when an attempt is made to use an agent that is not yet materialized.
- __init__(agent_name: str)
- exception motleycrew.common.exceptions.CannotModifyMaterializedAgent(agent_name: str | None)
Bases:
ExceptionRaised when an attempt is made to modify a materialized agent, e.g. to add tools.
- __init__(agent_name: str | None)
- exception motleycrew.common.exceptions.TaskDependencyCycleError
Bases:
ExceptionRaised when a task is set to depend on itself
- exception motleycrew.common.exceptions.IntegrationTestException(test_names: list[str])
Bases:
ExceptionOne or more integration tests failed.
- __init__(test_names: list[str])
- Parameters:
test_names – List of names of failed integration tests.
- exception motleycrew.common.exceptions.IpynbIntegrationTestResultNotFound(ipynb_path: str, result_path: str)
Bases:
ExceptionRaised when the result file of an ipynb integration test run is not found.
- __init__(ipynb_path: str, result_path: str)
- exception motleycrew.common.exceptions.ModuleNotInstalled(module_name: str, install_command: str = None)
Bases:
ExceptionRaised when trying to use some functionality that requires a module that is not installed.
- __init__(module_name: str, install_command: str = None)
- Parameters:
module_name – Name of the module.
install_command – Command to install the module.
- exception motleycrew.common.exceptions.InvalidToolInput(tool: Any, input: Any, message: str | None = None)
Bases:
ExceptionRaised when the tool input is invalid
- __init__(tool: Any, input: Any, message: str | None = None)
- exception motleycrew.common.exceptions.InvalidOutput
Bases:
ExceptionRaised in output handlers when an agent’s output is not accepted.