Liking cljdoc? Tell your friends :D

hyperphor.ellum.tools


dispatchclj

(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.
sourceraw docstring

dispatch-allclj

(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.
sourceraw docstring

find-toolclj

(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.
sourceraw docstring

make-toolclj

(make-tool name description parameters fn)

Create a tool definition map.

Create a tool definition map.
sourceraw docstring

result->anthropic-messageclj

(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.
sourceraw docstring

result->openai-messageclj

(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.
sourceraw docstring

results->anthropic-user-messageclj

(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.
sourceraw docstring

results->messagesclj

(results->messages provider results)

Convert tool results to messages suitable for the given provider.

Convert tool results to messages suitable for the given provider.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close