Module Values.MessageDataSource

The message data.

Sourcetype nonrec t = {
  1. text : TextMessage.t option;
    (*

    The message data in text type.

    *)
  2. toolUseResult : ToolUseResultData.t option;
    (*

    The result of tool usage in the message.

    *)
}
Sourceval make : ?text:??? -> ?toolUseResult:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `String of Uuid.t | `Structure of (string * [> `Integer of CitationSpanOffset.t ]) list ]) list ] list | `String of TextMessageValueString.t | `Structure of (string * [> `Boolean of Boolean.t ]) 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