Plane docs
ApiSchemas

ModelRequestFailedEvent

One shape from the contract, as it appears on the wire.

Used by sessions.annotate, sessions.events, sessions.send

JSON Schema

{
  "type": "object",
  "properties": {
    "seq": {
      "$ref": "#/components/schemas/EventSeq"
    },
    "sessionId": {
      "$ref": "#/components/schemas/SessionId"
    },
    "at": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "model.request.failed"
      ]
    },
    "requestId": {
      "$ref": "#/components/schemas/RequestId"
    },
    "provider": {
      "type": "string",
      "minLength": 1
    },
    "model": {
      "type": "string",
      "minLength": 1
    },
    "reason": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/FallbackReason"
        },
        {
          "type": "string",
          "enum": [
            "other"
          ]
        }
      ]
    },
    "message": {
      "type": "string"
    },
    "fallingBackTo": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "minLength": 1
        },
        "model": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "provider",
        "model"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "seq",
    "sessionId",
    "at",
    "type",
    "requestId",
    "provider",
    "model",
    "reason",
    "message"
  ],
  "additionalProperties": false
}

On this page