Module Values.SendMessageEventsSource

Event stream for chat message responses using the content block model. Events follow a lifecycle: responseCreated -> responseInProgress -> (contentBlockStart/contentBlockDelta/contentBlockStop events) -> responseCompleted|responseFailed SendMessage always uses content block mode — legacy per-field events (outputTextDelta, functionCallArgumentsDelta, etc.) are not emitted.

Sourcetype nonrec t = {
  1. responseCreated : SendMessageResponseCreatedEvent.t option;
    (*

    Emitted when the response is created

    *)
  2. responseInProgress : SendMessageResponseInProgressEvent.t option;
    (*

    Emitted while the response is being generated

    *)
  3. responseCompleted : SendMessageResponseCompletedEvent.t option;
    (*

    Emitted when the response completes successfully

    *)
  4. responseFailed : SendMessageResponseFailedEvent.t option;
    (*

    Emitted when the response fails

    *)
  5. summary : SendMessageSummaryEvent.t option;
    (*

    Emitted to provide a summary of agent actions

    *)
  6. heartbeat : SendMessageHeartbeatEvent.t option;
    (*

    Heartbeat event sent periodically to keep the connection alive during idle periods

    *)
  7. contentBlockStart : SendMessageContentBlockStartEvent.t option;
    (*

    Emitted when a new content block starts

    *)
  8. contentBlockDelta : SendMessageContentBlockDeltaEvent.t option;
    (*

    Emitted for each incremental content delta within a content block

    *)
  9. contentBlockStop : SendMessageContentBlockStopEvent.t option;
    (*

    Emitted when a content block is complete

    *)
}
Sourceval make : ?responseCreated:??? -> ?responseInProgress:??? -> ?responseCompleted:??? -> ?responseFailed:??? -> ?summary:??? -> ?heartbeat:??? -> ?contentBlockStart:??? -> ?contentBlockDelta:??? -> ?contentBlockStop:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Boolean of Boolean.t | `Integer of Integer.t | `String of String_.t | `Structure of (string * [> `Integer of Integer.t | `Structure of (string * [> `String of String_.t ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t