ToolDef
defines a tool the model can call.
name: the tool name the model uses to invoke itdescription: natural-language description the model seesparameters: a JSON Schema describing the tool's arguments
description
(Fn [(Ref ToolDef a)] (Ref String a))
gets the description property of a ToolDef.
parameters
(Fn [(Ref ToolDef a)] (Ref JSON a))
gets the parameters property of a ToolDef.
set-description
(Fn [ToolDef, String] ToolDef)
sets the description property of a ToolDef.
set-description!
(Fn [(Ref ToolDef a), String] ())
sets the description property of a ToolDef in place.
set-name!
(Fn [(Ref ToolDef a), String] ())
sets the name property of a ToolDef in place.
set-parameters!
(Fn [(Ref ToolDef a), JSON] ())
sets the parameters property of a ToolDef in place.
update-description
(Fn [ToolDef, (Ref (Fn [String] String a) b)] ToolDef)
updates the description property of a ToolDef using a function f.
update-name
(Fn [ToolDef, (Ref (Fn [String] String a) b)] ToolDef)
updates the name property of a ToolDef using a function f.
update-parameters
(Fn [ToolDef, (Ref (Fn [JSON] JSON a) b)] ToolDef)
updates the parameters property of a ToolDef using a function f.