ToolCall
represents a tool invocation from the model.
id: the provider-assigned call ID (used to correlate results back). Empty for Gemini, which doesn't use call IDs.name: the tool name the model is callingarguments: the JSON-encoded argument object as a string
arguments
(Fn [(Ref ToolCall a)] (Ref String a))
gets the arguments property of a ToolCall.
set-arguments
(Fn [ToolCall, String] ToolCall)
sets the arguments property of a ToolCall.
set-arguments!
(Fn [(Ref ToolCall a), String] ())
sets the arguments property of a ToolCall in place.
set-name!
(Fn [(Ref ToolCall a), String] ())
sets the name property of a ToolCall in place.
update-arguments
(Fn [ToolCall, (Ref (Fn [String] String a) b)] ToolCall)
updates the arguments property of a ToolCall using a function f.
update-id
(Fn [ToolCall, (Ref (Fn [String] String a) b)] ToolCall)
updates the id property of a ToolCall using a function f.
update-name
(Fn [ToolCall, (Ref (Fn [String] String a) b)] ToolCall)
updates the name property of a ToolCall using a function f.