Skip to main content

Module tools

Module tools 

Source
Expand description

Translation between OpenAI tool/function descriptors and SIM callables.

Structs§

OpenAiTool
A single OpenAI function tool bound to a SIM callable.
OpenAiToolCall
A tool invocation requested by the model: an id, tool name, and JSON arguments.
OpenAiToolRegistry
Collection of OpenAiTool entries keyed by OpenAI tool name.
OpenAiToolResult
The outcome of an OpenAiToolCall: a status symbol and result payload.

Functions§

openai_name_to_symbol
Converts an OpenAI tool name into a SIM Symbol, splitting on the first _ into a namespace and local name and replacing remaining _ with -.
symbol_from_text
Parses a SIM symbol from text, treating a namespace/name form as a qualified symbol; errors on empty or malformed input.