Module Values.ChatPromptTemplateConfigurationSource

Contains configurations to use a prompt in a conversational format. For more information, see Create a prompt using Prompt management.

Sourcetype nonrec t = {
  1. messages : Messages.t;
    (*

    Contains messages in the chat for the prompt.

    *)
  2. system : SystemContentBlocks.t option;
    (*

    Contains system prompts to provide context to the model or to describe how it should behave.

    *)
  3. inputVariables : PromptInputVariablesList.t option;
    (*

    An array of the variables in the prompt template.

    *)
  4. toolConfiguration : ToolConfiguration.t option;
    (*

    Configuration information for the tools that the model can use when generating a response.

    *)
}
Sourceval context_ : string
Sourceval make : ?system:??? -> ?inputVariables:??? -> ?toolConfiguration:??? -> messages:Messages.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of NonEmptyString.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of ToolName.t | `Structure of (string * [> `Structure of 'a list ]) list ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `String of ToolName.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