ApiSchemas
ProviderErrorEncoded
One shape from the contract, as it appears on the wire.
Used by providers.models, providers.test, sessions.create
JSON Schema
{
"type": "object",
"properties": {
"_tag": {
"type": "string",
"enum": [
"ProviderError"
]
},
"provider": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"retryable": {
"type": "boolean"
},
"reason": {
"$ref": "#/components/schemas/FallbackReason"
}
},
"required": [
"_tag",
"provider",
"message",
"retryable"
],
"additionalProperties": false
}