Module Values.SendMessageRequestSource

Request structure for sending a chat message

Sourcetype nonrec t = {
  1. agentSpaceId : AgentSpaceId.t;
    (*

    The agent space identifier

    *)
  2. executionId : ResourceId.t;
    (*

    The execution identifier for the chat session

    *)
  3. content : MessageContent.t;
    (*

    The user message content

    *)
  4. context : SendMessageContext.t option;
    (*

    Optional context for the message

    *)
  5. userId : ResourceId.t option;
    (*

    User identifier. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.

    *)
}
Sourceval context_ : string
Sourceval make : ?context:??? -> ?userId:??? -> agentSpaceId:AgentSpaceId.t -> executionId:ResourceId.t -> content:MessageContent.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of AgentSpaceId.t | `Structure of (string * [> `String of String_.t ]) 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