> ## Documentation Index
> Fetch the complete documentation index at: https://operator.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Real-time chat session

> WebSocket API used in real-time conversations (e.g. those created with `chat_realtime`).

Refer to [Conversation Events Schema](../conversation-events) for the full breakdown of events and payloads.

Refer to [Real-time Events Example](../real-time-events-example) or [Post-analysis example](../post-analysis-example) for the usage example.



## AsyncAPI

````yaml api-reference/asyncapi.json conversations/{conversation_id}/session
id: conversations/{conversation_id}/session
title: Real-time chat session
description: >-
  WebSocket API used in real-time conversations (e.g. those created with
  `chat_realtime`).


  Refer to [Conversation Events Schema](../conversation-events) for the full
  breakdown of events and payloads.


  Refer to [Real-time Events Example](../real-time-events-example) or
  [Post-analysis example](../post-analysis-example) for the usage example.
servers:
  - id: production
    protocol: wss
    host: agent.app.operator.xyz
    bindings: []
    variables: []
address: conversations/{conversation_id}/session?token={token}
parameters:
  - id: conversation_id
    jsonSchema:
      type: string
      description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
    description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
    type: string
    required: true
    deprecated: false
  - id: token
    jsonSchema:
      type: string
      description: >-
        Ephemeral token returned by the server when the conversation was
        created.
    description: Ephemeral token returned by the server when the conversation was created.
    type: string
    required: true
    deprecated: false
bindings: []
operations:
  - &ref_1
    id: conversations/{conversation_id}/session.publish
    title: Conversations/{conversation_id}/session.publish
    description: Send events to the server
    type: receive
    messages:
      - &ref_3
        id: publish.message.0
        payload:
          - name: conversation.start
            description: Start the conversation.
            type: object
            properties:
              - name: id
                type: string
                description: Optional ID used to track or correlate errors.
                required: false
              - name: payload
                type: object
                description: Start the conversation.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.start
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events sent by the client to initiate or interact with a
            conversation.
          properties:
            id:
              type: string
              default: null
              description: Optional ID used to track or correlate errors.
              x-parser-schema-id: <anonymous-schema-3>
            payload:
              description: Start the conversation.
              properties:
                type:
                  default: conversation.start
                  type: string
                  enum:
                    - conversation.start
                  x-parser-schema-id: <anonymous-schema-5>
              type: object
              x-parser-schema-id: <anonymous-schema-4>
          required:
            - payload
          x-parser-schema-id: ConversationStartEvent
        title: conversation.start
        description: Start the conversation.
        example: |-
          {
            "id": "<string>",
            "payload": {
              "type": "<string>"
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message.0
      - &ref_4
        id: publish.message.1
        payload:
          - name: user.message.send
            description: Send a message from the user to the agent.
            type: object
            properties:
              - name: id
                type: string
                description: Optional ID used to track or correlate errors.
                required: false
              - name: payload
                type: object
                description: Send a message from the user to the agent.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - user.message.send
                    required: false
                  - name: text
                    type: string
                    description: The message content, max 4096 characters.
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events sent by the client to initiate or interact with a
            conversation.
          properties:
            id:
              type: string
              default: null
              description: Optional ID used to track or correlate errors.
              x-parser-schema-id: <anonymous-schema-6>
            payload:
              description: Send a message from the user to the agent.
              properties:
                type:
                  default: user.message.send
                  type: string
                  enum:
                    - user.message.send
                  x-parser-schema-id: <anonymous-schema-8>
                text:
                  description: The message content, max 4096 characters.
                  type: string
                  x-parser-schema-id: <anonymous-schema-9>
              required:
                - text
              type: object
              x-parser-schema-id: <anonymous-schema-7>
          required:
            - payload
          x-parser-schema-id: UserMessageSendEvent
        title: user.message.send
        description: Send a message from the user to the agent.
        example: |-
          {
            "id": "<string>",
            "payload": {
              "type": "<string>",
              "text": "<string>"
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message.1
      - &ref_5
        id: publish.message.2
        payload:
          - name: conversation.context.update
            description: Update the conversation context mid-session.
            type: object
            properties:
              - name: id
                type: string
                description: Optional ID used to track or correlate errors.
                required: false
              - name: payload
                type: object
                description: Update the conversation context mid-session.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.context.update
                    required: false
                  - name: data
                    type: object
                    description: Key-value pairs to merge into the conversation's context.
                    required: true
                    properties: []
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events sent by the client to initiate or interact with a
            conversation.
          properties:
            id:
              type: string
              default: null
              description: Optional ID used to track or correlate errors.
              x-parser-schema-id: <anonymous-schema-10>
            payload:
              description: Update the conversation context mid-session.
              properties:
                type:
                  default: conversation.context.update
                  type: string
                  enum:
                    - conversation.context.update
                  x-parser-schema-id: <anonymous-schema-12>
                data:
                  properties: {}
                  additionalProperties:
                    type: string
                    x-parser-schema-id: <anonymous-schema-14>
                  description: Key-value pairs to merge into the conversation's context.
                  type: object
                  x-parser-schema-id: <anonymous-schema-13>
              required:
                - data
              type: object
              x-parser-schema-id: <anonymous-schema-11>
          required:
            - payload
          x-parser-schema-id: ConversationContextUpdateEvent
        title: conversation.context.update
        description: Update the conversation context mid-session.
        example: No examples found
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message.2
      - &ref_6
        id: publish.message.3
        payload:
          - name: conversation.end
            description: End the conversation.
            type: object
            properties:
              - name: id
                type: string
                description: Optional ID used to track or correlate errors.
                required: false
              - name: payload
                type: object
                description: End the conversation.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.end
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events sent by the client to initiate or interact with a
            conversation.
          properties:
            id:
              type: string
              default: null
              description: Optional ID used to track or correlate errors.
              x-parser-schema-id: <anonymous-schema-15>
            payload:
              description: End the conversation.
              properties:
                type:
                  default: conversation.end
                  type: string
                  enum:
                    - conversation.end
                  x-parser-schema-id: <anonymous-schema-17>
              type: object
              x-parser-schema-id: <anonymous-schema-16>
          required:
            - payload
          x-parser-schema-id: ConversationEndEvent
        title: conversation.end
        description: End the conversation.
        example: |-
          {
            "id": "<string>",
            "payload": {
              "type": "<string>"
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message.3
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: conversations/{conversation_id}/session
  - &ref_2
    id: conversations/{conversation_id}/session.subscribe
    title: Conversations/{conversation_id}/session.subscribe
    description: Receive events from the server
    type: send
    messages:
      - &ref_7
        id: subscribe.message.0
        payload:
          - name: conversation.started
            description: Sent once the conversation has started.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Sent once the conversation has started.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.started
                    required: false
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-18>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-19>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-20>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-21>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-22>
            payload:
              description: Sent once the conversation has started.
              properties:
                type:
                  default: conversation.started
                  type: string
                  enum:
                    - conversation.started
                  x-parser-schema-id: <anonymous-schema-24>
              type: object
              x-parser-schema-id: <anonymous-schema-23>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-25>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: ConversationStartedEvent
        title: conversation.started
        description: Sent once the conversation has started.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.0
      - &ref_8
        id: subscribe.message.1
        payload:
          - name: conversation.setup
            description: >-
              Sent before a conversation starts. This can be used as webhook to
              preload data relevant to the conversation.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: >-
                  Sent before a conversation starts. This can be used as webhook
                  to preload data relevant to the conversation.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.setup
                    required: false
                  - name: channel
                    type: object
                    description: The channel of the conversation.
                    required: false
                    properties: []
                  - name: direction
                    type: string
                    description: The direction of the conversation.
                    enumValues:
                      - inbound
                      - outbound
                    required: true
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-26>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-27>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-28>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-29>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-30>
            payload:
              description: >-
                Sent before a conversation starts. This can be used as webhook
                to preload data relevant to the conversation.
              properties:
                type:
                  default: conversation.setup
                  type: string
                  enum:
                    - conversation.setup
                  x-parser-schema-id: <anonymous-schema-32>
                channel:
                  description: The channel of the conversation.
                  type: object
                  properties: {}
                  x-parser-schema-id: <anonymous-schema-33>
                direction:
                  description: The direction of the conversation.
                  enum:
                    - inbound
                    - outbound
                  type: string
                  x-parser-schema-id: <anonymous-schema-34>
              required:
                - direction
              type: object
              x-parser-schema-id: <anonymous-schema-31>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-35>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: ConversationSetupEvent
        title: conversation.setup
        description: >-
          Sent before a conversation starts. This can be used as webhook to
          preload data relevant to the conversation.
        example: No examples found
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.1
      - &ref_9
        id: subscribe.message.2
        payload:
          - name: conversation.context.updated
            description: Indicates the context has been updated on the agent side.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Indicates the context has been updated on the agent side.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.context.updated
                    required: false
                  - name: data
                    type: object
                    description: Key-value pairs to merge into the conversation's context.
                    required: true
                    properties: []
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-36>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-37>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-38>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-39>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-40>
            payload:
              description: Indicates the context has been updated on the agent side.
              properties:
                type:
                  default: conversation.context.updated
                  type: string
                  enum:
                    - conversation.context.updated
                  x-parser-schema-id: <anonymous-schema-42>
                data:
                  properties: {}
                  additionalProperties:
                    type: string
                    x-parser-schema-id: <anonymous-schema-44>
                  description: Key-value pairs to merge into the conversation's context.
                  type: object
                  x-parser-schema-id: <anonymous-schema-43>
              required:
                - data
              type: object
              x-parser-schema-id: <anonymous-schema-41>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-45>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: ConversationContextUpdatedEvent
        title: conversation.context.updated
        description: Indicates the context has been updated on the agent side.
        example: No examples found
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.2
      - &ref_10
        id: subscribe.message.3
        payload:
          - name: agent.notice.sent
            description: >-
              Agent has sent a system-level notice (e.g. "This call may be
              recorded").
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: >-
                  Agent has sent a system-level notice (e.g. "This call may be
                  recorded").
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - agent.notice.sent
                    required: false
                  - name: data
                    type: object
                    description: The data to send with the event.
                    required: true
                    properties: []
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-46>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-47>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-48>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-49>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-50>
            payload:
              description: >-
                Agent has sent a system-level notice (e.g. "This call may be
                recorded").
              properties:
                type:
                  default: agent.notice.sent
                  type: string
                  enum:
                    - agent.notice.sent
                  x-parser-schema-id: <anonymous-schema-52>
                data:
                  properties: {}
                  additionalProperties:
                    type: string
                    x-parser-schema-id: <anonymous-schema-54>
                  description: The data to send with the event.
                  type: object
                  x-parser-schema-id: <anonymous-schema-53>
              required:
                - data
              type: object
              x-parser-schema-id: <anonymous-schema-51>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-55>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: AgentNoticeSentEvent
        title: agent.notice.sent
        description: >-
          Agent has sent a system-level notice (e.g. "This call may be
          recorded").
        example: No examples found
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.3
      - &ref_11
        id: subscribe.message.4
        payload:
          - name: agent.message.delta
            description: Streaming partial message content as it's being generated.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Streaming partial message content as it's being generated.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - agent.message.delta
                    required: false
                  - name: text_delta
                    type: string
                    description: The delta text of the message.
                    required: true
                  - name: generation_id
                    type: string
                    description: The ID of the generation.
                    required: true
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-56>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-57>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-58>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-59>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-60>
            payload:
              description: Streaming partial message content as it's being generated.
              properties:
                type:
                  default: agent.message.delta
                  type: string
                  enum:
                    - agent.message.delta
                  x-parser-schema-id: <anonymous-schema-62>
                text_delta:
                  description: The delta text of the message.
                  type: string
                  x-parser-schema-id: <anonymous-schema-63>
                generation_id:
                  description: The ID of the generation.
                  type: string
                  x-parser-schema-id: <anonymous-schema-64>
              required:
                - text_delta
                - generation_id
              type: object
              x-parser-schema-id: <anonymous-schema-61>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-65>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: AgentMessageDeltaEvent
        title: agent.message.delta
        description: Streaming partial message content as it's being generated.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "text_delta": "<string>",
              "generation_id": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.4
      - &ref_12
        id: subscribe.message.5
        payload:
          - name: agent.message.completed
            description: Sent when the agent finishes sending a message.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Sent when the agent finishes sending a message.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - agent.message.completed
                    required: false
                  - name: text
                    type: string
                    description: The text of the message.
                    required: true
                  - name: interrupted
                    type: boolean
                    description: Whether the generation was cut-off mid-stream.
                    required: true
                  - name: has_tool_calls
                    type: boolean
                    description: Whether this message triggered tool calls.
                    required: true
                  - name: generation_id
                    type: string
                    description: The ID of the generation.
                    required: true
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-66>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-67>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-68>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-69>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-70>
            payload:
              description: Sent when the agent finishes sending a message.
              properties:
                type:
                  default: agent.message.completed
                  type: string
                  enum:
                    - agent.message.completed
                  x-parser-schema-id: <anonymous-schema-72>
                text:
                  description: The text of the message.
                  type: string
                  x-parser-schema-id: <anonymous-schema-73>
                interrupted:
                  description: Whether the generation was cut-off mid-stream.
                  type: boolean
                  x-parser-schema-id: <anonymous-schema-74>
                has_tool_calls:
                  description: Whether this message triggered tool calls.
                  type: boolean
                  x-parser-schema-id: <anonymous-schema-75>
                generation_id:
                  description: The ID of the generation.
                  type: string
                  x-parser-schema-id: <anonymous-schema-76>
              required:
                - text
                - interrupted
                - has_tool_calls
                - generation_id
              type: object
              x-parser-schema-id: <anonymous-schema-71>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-77>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: AgentMessageCompletedEvent
        title: agent.message.completed
        description: Sent when the agent finishes sending a message.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "text": "<string>",
              "interrupted": true,
              "has_tool_calls": true,
              "generation_id": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.5
      - &ref_13
        id: subscribe.message.6
        payload:
          - name: agent.tool_call.created
            description: Sent when the agent triggers a tool call.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Sent when the agent triggers a tool call.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - agent.tool_call.created
                    required: false
                  - name: call_id
                    type: string
                    description: Unique ID for the tool call.
                    required: true
                  - name: name
                    type: string
                    description: Name of the tool being invoked.
                    required: true
                  - name: arguments
                    type: string
                    description: Raw JSON string of arguments to pass to the tool.
                    required: true
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-78>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-79>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-80>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-81>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-82>
            payload:
              description: Sent when the agent triggers a tool call.
              properties:
                type:
                  default: agent.tool_call.created
                  type: string
                  enum:
                    - agent.tool_call.created
                  x-parser-schema-id: <anonymous-schema-84>
                call_id:
                  description: Unique ID for the tool call.
                  type: string
                  x-parser-schema-id: <anonymous-schema-85>
                name:
                  description: Name of the tool being invoked.
                  type: string
                  x-parser-schema-id: <anonymous-schema-86>
                arguments:
                  description: Raw JSON string of arguments to pass to the tool.
                  type: string
                  x-parser-schema-id: <anonymous-schema-87>
              required:
                - call_id
                - name
                - arguments
              type: object
              x-parser-schema-id: <anonymous-schema-83>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-88>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: AgentToolCallCreatedEvent
        title: agent.tool_call.created
        description: Sent when the agent triggers a tool call.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "call_id": "<string>",
              "name": "<string>",
              "arguments": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.6
      - &ref_14
        id: subscribe.message.7
        payload:
          - name: agent.tool_call.returned
            description: Sent when the tool call returns a result.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Sent when the tool call returns a result.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - agent.tool_call.returned
                    required: false
                  - name: call_id
                    type: string
                    description: Unique ID for the tool call.
                    required: true
                  - name: name
                    type: string
                    description: Name of the tool being invoked.
                    required: true
                  - name: arguments
                    type: string
                    description: Raw JSON string of arguments to pass to the tool.
                    required: true
                  - name: result
                    type: string
                    description: Raw JSON string of the tool call result.
                    required: true
                  - name: error
                    type: string
                    description: Error message, if the call failed.
                    required: false
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-89>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-90>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-91>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-92>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-93>
            payload:
              description: Sent when the tool call returns a result.
              properties:
                type:
                  default: agent.tool_call.returned
                  type: string
                  enum:
                    - agent.tool_call.returned
                  x-parser-schema-id: <anonymous-schema-95>
                call_id:
                  description: Unique ID for the tool call.
                  type: string
                  x-parser-schema-id: <anonymous-schema-96>
                name:
                  description: Name of the tool being invoked.
                  type: string
                  x-parser-schema-id: <anonymous-schema-97>
                arguments:
                  description: Raw JSON string of arguments to pass to the tool.
                  type: string
                  x-parser-schema-id: <anonymous-schema-98>
                result:
                  description: Raw JSON string of the tool call result.
                  type: string
                  x-parser-schema-id: <anonymous-schema-99>
                error:
                  type: string
                  default: null
                  description: Error message, if the call failed.
                  x-parser-schema-id: <anonymous-schema-100>
              required:
                - call_id
                - name
                - arguments
                - result
              type: object
              x-parser-schema-id: <anonymous-schema-94>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-101>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: AgentToolCallReturnedEvent
        title: agent.tool_call.returned
        description: Sent when the tool call returns a result.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "call_id": "<string>",
              "name": "<string>",
              "arguments": "<string>",
              "result": "<string>",
              "error": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.7
      - &ref_15
        id: subscribe.message.8
        payload:
          - name: user.message.received
            description: Acknowledgment that the user message was received.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Acknowledgment that the user message was received.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - user.message.received
                    required: false
                  - name: text
                    type: string
                    description: The text of the message.
                    required: true
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-102>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-103>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-104>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-105>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-106>
            payload:
              description: Acknowledgment that the user message was received.
              properties:
                type:
                  default: user.message.received
                  type: string
                  enum:
                    - user.message.received
                  x-parser-schema-id: <anonymous-schema-108>
                text:
                  description: The text of the message.
                  type: string
                  x-parser-schema-id: <anonymous-schema-109>
              required:
                - text
              type: object
              x-parser-schema-id: <anonymous-schema-107>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-110>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: UserMessageReceivedEvent
        title: user.message.received
        description: Acknowledgment that the user message was received.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "text": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.8
      - &ref_16
        id: subscribe.message.9
        payload:
          - name: conversation.custom_fields.updated
            description: Sent when conversation custom fields are modified.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Sent when conversation custom fields are modified.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.custom_fields.updated
                    required: false
                  - name: key
                    type: string
                    description: The custom field key that was updated.
                    required: true
                  - name: new_value
                    type: string
                    description: The new value of the custom field.
                    required: true
                  - name: old_value
                    type: string
                    description: The previous value of the custom field, if applicable.
                    required: false
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-111>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-112>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-113>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-114>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-115>
            payload:
              description: Sent when conversation custom fields are modified.
              properties:
                type:
                  default: conversation.custom_fields.updated
                  type: string
                  enum:
                    - conversation.custom_fields.updated
                  x-parser-schema-id: <anonymous-schema-117>
                key:
                  description: The custom field key that was updated.
                  type: string
                  x-parser-schema-id: <anonymous-schema-118>
                new_value:
                  description: The new value of the custom field.
                  type: string
                  x-parser-schema-id: <anonymous-schema-119>
                old_value:
                  description: The previous value of the custom field, if applicable.
                  type: string
                  default: null
                  x-parser-schema-id: <anonymous-schema-120>
              required:
                - key
                - new_value
              type: object
              x-parser-schema-id: <anonymous-schema-116>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-121>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: ConversationCustomFieldsUpdatedEvent
        title: conversation.custom_fields.updated
        description: Sent when conversation custom fields are modified.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "key": "<string>",
              "new_value": "<string>",
              "old_value": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.9
      - &ref_17
        id: subscribe.message.10
        payload:
          - name: conversation.ended
            description: Sent when the conversation has ended.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Sent when the conversation has ended.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - conversation.ended
                    required: false
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-122>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-123>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-124>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-125>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-126>
            payload:
              description: Sent when the conversation has ended.
              properties:
                type:
                  default: conversation.ended
                  type: string
                  enum:
                    - conversation.ended
                  x-parser-schema-id: <anonymous-schema-128>
              type: object
              x-parser-schema-id: <anonymous-schema-127>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-129>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: ConversationEndedEvent
        title: conversation.ended
        description: Sent when the conversation has ended.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.10
      - &ref_18
        id: subscribe.message.11
        payload:
          - name: server.error
            description: Emitted when a server-side error occurs during event handling.
            type: object
            properties:
              - name: id
                type: string
                description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
                required: true
              - name: created_at
                type: string
                description: When the event was created.
                required: true
              - name: agent_id
                type: string
                description: >-
                  Version-specific identifier for the agent that handled the
                  conversation, e.g. `ca_8qm9JBCiTe7@v0`.
                required: true
              - name: livemode
                type: boolean
                description: Whether the conversation is in livemode.
                required: true
              - name: conversation_id
                type: string
                description: >-
                  Unique identifier for the conversation, e.g.
                  `conv_8qm9JBCiTe7`.
                required: true
              - name: payload
                type: object
                description: Emitted when a server-side error occurs during event handling.
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - server.error
                    required: false
                  - name: error
                    type: string
                    description: The error message.
                    required: true
                  - name: source_event_id
                    type: string
                    description: The ID of the client event that caused the error.
                    required: false
              - name: experimental
                type: boolean
                description: Whether this event is experimental.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Events emitted by the agent system in response to client input or
            internal agent logic.
          properties:
            id:
              description: Unique identifier for the event, e.g. `ev_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-130>
            created_at:
              description: When the event was created.
              format: date-time
              type: string
              x-parser-schema-id: <anonymous-schema-131>
            agent_id:
              description: >-
                Version-specific identifier for the agent that handled the
                conversation, e.g. `ca_8qm9JBCiTe7@v0`.
              type: string
              x-parser-schema-id: <anonymous-schema-132>
            livemode:
              description: Whether the conversation is in livemode.
              type: boolean
              x-parser-schema-id: <anonymous-schema-133>
            conversation_id:
              description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
              type: string
              x-parser-schema-id: <anonymous-schema-134>
            payload:
              description: Emitted when a server-side error occurs during event handling.
              properties:
                type:
                  default: server.error
                  type: string
                  enum:
                    - server.error
                  x-parser-schema-id: <anonymous-schema-136>
                error:
                  description: The error message.
                  type: string
                  x-parser-schema-id: <anonymous-schema-137>
                source_event_id:
                  type: string
                  default: null
                  description: The ID of the client event that caused the error.
                  x-parser-schema-id: <anonymous-schema-138>
              required:
                - error
              type: object
              x-parser-schema-id: <anonymous-schema-135>
            experimental:
              description: Whether this event is experimental.
              type: boolean
              x-parser-schema-id: <anonymous-schema-139>
          required:
            - id
            - created_at
            - agent_id
            - livemode
            - conversation_id
            - payload
            - experimental
          x-parser-schema-id: ServerErrorEvent
        title: server.error
        description: Emitted when a server-side error occurs during event handling.
        example: |-
          {
            "id": "<string>",
            "created_at": "<string>",
            "agent_id": "<string>",
            "livemode": true,
            "conversation_id": "<string>",
            "payload": {
              "type": "<string>",
              "error": "<string>",
              "source_event_id": "<string>"
            },
            "experimental": true
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message.11
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
receiveOperations:
  - *ref_2
sendMessages:
  - *ref_3
  - *ref_4
  - *ref_5
  - *ref_6
receiveMessages:
  - *ref_7
  - *ref_8
  - *ref_9
  - *ref_10
  - *ref_11
  - *ref_12
  - *ref_13
  - *ref_14
  - *ref_15
  - *ref_16
  - *ref_17
  - *ref_18
extensions:
  - id: x-parser-unique-object-id
    value: conversations/{conversation_id}/session
securitySchemes: []

````