exceptions
AgentyAttributeError
Bases: AgentyException, AttributeError
Exception raised when an attribute is accessed or modified in an invalid way.
This exception combines AgentyException with AttributeError to indicate that an attribute was accessed or modified in an invalid way while maintaining the Agenty exception hierarchy.
Source code in agenty/exceptions.py
33 34 35 36 37 38 39 40 41 | |
AgentyException
Bases: Exception
Base exception class for all exceptions raised by Agenty.
All custom exceptions in the Agenty library inherit from this class, allowing users to catch any Agenty-specific exception using this base class.
Source code in agenty/exceptions.py
1 2 3 4 5 6 7 8 | |
AgentyTypeError
Bases: AgentyException, TypeError
Exception raised when an incorrect type is used in an Agenty operation.
This exception combines AgentyException with TypeError to indicate that a value of an incorrect type was provided while maintaining the Agenty exception hierarchy.
Source code in agenty/exceptions.py
22 23 24 25 26 27 28 29 30 | |
AgentyValueError
Bases: AgentyException, ValueError
Exception raised when an invalid value is provided to an Agenty operation.
This exception combines AgentyException with ValueError to indicate that a value provided to an Agenty operation was invalid while maintaining the Agenty exception hierarchy.
Source code in agenty/exceptions.py
11 12 13 14 15 16 17 18 19 | |
InvalidResponse
Bases: AgentyException
Exception raised when receiving an invalid or unexpected response.
This exception indicates that the response received (typically from a model or external service) does not meet the expected format or requirements.
Source code in agenty/exceptions.py
54 55 56 57 58 59 60 61 | |
InvalidStepResponse
Bases: PipelineException, InvalidResponse
Exception raised when a pipeline step provides and invalid response.
This exception indicates that a specific step in the pipeline encountered an error during execution, providing more specific error handling for pipeline operations.
Source code in agenty/exceptions.py
75 76 77 78 79 80 81 82 83 | |
PipelineException
Bases: AgentyException
Base exception class for pipeline-related errors.
This exception serves as the parent class for all exceptions that occur during pipeline operations, allowing users to catch any pipeline-specific errors.
Source code in agenty/exceptions.py
64 65 66 67 68 69 70 71 72 | |
UnsupportedModel
Bases: AgentyValueError
Exception raised when attempting to use an unsupported model.
This exception indicates that the specified language model or configuration is not supported by the Agenty library or the current operation.
Source code in agenty/exceptions.py
44 45 46 47 48 49 50 51 | |