(dispatch tools tool-call)Execute a tool call against a tool collection. tool-call is {:name "fn-name" :arguments {map-of-args} :id "call-id"} Returns {:id :name :result} where result is the tool's return value.
Execute a tool call against a tool collection.
tool-call is {:name "fn-name" :arguments {map-of-args} :id "call-id"}
Returns {:id :name :result} where result is the tool's return value.(dispatch-all tools tool-calls)Execute all tool calls in a response, returning a seq of result maps.
Execute all tool calls in a response, returning a seq of result maps.
(find-tool tools name)Look up a tool by name from a collection of tool definitions.
Look up a tool by name from a collection of tool definitions.
(make-tool name description parameters fn)Create a tool definition map.
Create a tool definition map.
(result->anthropic-message {:keys [id result]})Convert a tool result to an Anthropic tool_result message for use in conversation history.
Convert a tool result to an Anthropic tool_result message for use in conversation history.
(result->openai-message {:keys [id result]})Convert a tool result to an OpenAI tool message for use in conversation history.
Convert a tool result to an OpenAI tool message for use in conversation history.
(results->anthropic-user-message results)Pack multiple tool results into a single Anthropic user message.
Pack multiple tool results into a single Anthropic user message.
(results->messages provider results)Convert tool results to messages suitable for the given provider.
Convert tool results to messages suitable for the given provider.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |