Module Values.MessageSource

A message in a conversation, either from the user or the assistant.

Sourcetype nonrec t = {
  1. userMessage : UserMessage.t option;
    (*

    A message from the user.

    *)
  2. assistantMessage : AssistantMessage.t option;
    (*

    A message from the assistant.

    *)
}
Sourceval make : ?userMessage:??? -> ?assistantMessage:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of String_.t | `Structure of 'a 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