Std.Ai.Tool
Types
type Tool
Values
checkArguments : List Tool -> String -> String -> Result Error ()
Check the arguments the model gave the tool named `nm`, without running it:
describe : Tool -> String
A tool's description.
instructions : List Tool -> String
The tool-use instructions appended to the agent's system prompt: the tool
name : Tool -> String
A tool's name.
parameters : Tool -> JsonE.Value
The JSON Schema of a tool's arguments: its codec's schema for a `typed`
run : List Tool -> String -> String -> Task Error String
Run the tool named `nm` from `tools` with `args`. Fails with a classified
tool : String -> String -> (String -> Task Error String) -> Tool
Define a tool: a stable `name`, a `description` the model reads, and an
typed : String -> String -> Codec a -> (a -> Task Error String) -> Tool
Define a tool with typed arguments: the model is sent `codec`'s JSON