Files
openrouter-python-sdk-retry…/docs/components/errorcode.mdx
T

24 lines
405 B
Plaintext

---
title: "ErrorCode"
---
## Example Usage
```python
from openrouter.components import ErrorCode
# Open enum: unrecognized values are captured as UnrecognizedStr
value: ErrorCode = "invalid_tool_input"
```
## Values
This is an open enum. Unrecognized values will not fail type checks.
- `"invalid_tool_input"`
- `"unavailable"`
- `"max_uses_exceeded"`
- `"too_many_requests"`
- `"query_too_long"`