Plane docs
ApiSchemas

AgentMessageEvent

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": [
        "agent.message"
      ]
    },
    "requestId": {
      "$ref": "#/components/schemas/RequestId"
    },
    "text": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "title"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "seq",
    "sessionId",
    "at",
    "type",
    "requestId",
    "text"
  ],
  "additionalProperties": false
}

On this page