Exception raised when the model does something unexpected, e.g. calling a tool that doesn't exist, or providing malformed JSON.
| 64 | |
| 65 | |
| 66 | class ModelBehaviorError(AgentsException): |
| 67 | """Exception raised when the model does something unexpected, e.g. calling a tool that doesn't |
| 68 | exist, or providing malformed JSON. |
| 69 | """ |
| 70 | |
| 71 | message: str |
| 72 | |
| 73 | def __init__(self, message: str): |
| 74 | self.message = message |
| 75 | super().__init__(message) |
| 76 | |
| 77 | |
| 78 | class ModelRefusalError(AgentsException): |
no outgoing calls
no test coverage detected