Custom exceptions raised by SWE-agent
exceptions
ContextWindowExceededError
Raised when the context window of a LM is exceeded
CostLimitExceededError
Raised when we exceed a cost limit
FormatError
Raised when the model response cannot properly be parsed into thought and actions.
FunctionCallingFormatError
FunctionCallingFormatError(message: str, error_code: Literal['missing', 'multiple', 'incorrect_args', 'invalid_json', 'invalid_command', 'missing_arg', 'unexpected_arg'], **extra_info: Any)
Format error exception used by the function calling parser.
Source code in sweagent/exceptions.py
14 15 16 17 18 19 20 21 22 23 24 |
|
InstanceCostLimitExceededError
Raised when we exceed the cost limit set for one task instance
TotalCostLimitExceededError
Raised when we exceed the total cost limit