Module Values.MessageSource

A message input or response from a model. For more information, see Create a prompt using Prompt management.

Sourcetype nonrec t = {
  1. role : ConversationRole.t;
    (*

    The role that the message belongs to.

    *)
  2. content : ContentBlocks.t;
    (*

    The content in the message.

    *)
}
Sourceval context_ : string
Sourceval make : role:ConversationRole.t -> content:ContentBlocks.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string ]) 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