package chatoyant
Module Chatoyant_core.MessageSource
Provider-neutral chat messages.
Source
type t = {role : role;content : string;name : string option;tool_call_id : string option;tool_result_error : bool option;tool_calls : tool_call list;metadata : (string * Chatoyant_runtime.Json.t) list;
}Source
val make :
?name:string ->
?tool_call_id:string ->
?tool_result_error:bool ->
?tool_calls:tool_call list ->
?metadata:(string * Chatoyant_runtime.Json.t) list ->
role ->
string ->
tSource
val assistant_with_tool_calls :
?content:string ->
Chatoyant_provider.Provider.tool_call list ->
t