Skip to main content

Module callers

Module callers 

Source
Expand description

Caller restrictions: which callers (the model directly, or other tools) may trigger a tool, and how caller tools receive their callees.

Structs§

PreparedToolCallers
Tool sets derived from a caller configuration.

Enums§

ToolCaller
Something that may trigger a tool call.
ToolCallerDefinition
How a caller tool reaches its callees.

Functions§

prepare_tools_for_callers
Applies a caller configuration: callees of provider callers get their provider options prepared, callees of local callers are bound into the caller and hidden from the model, and tools without a direct or provider caller are removed from the model tool set.
validate_tool_callers
Checks a caller configuration against the tool set.

Type Aliases§

LocalBindFn
Binds callees to a caller tool.
PrepareProviderOptionsFn
Adjusts a callee’s provider options so the provider routes its calls through the caller tool.
ToolCallers
Allowed callers per tool. Tools not listed keep the default (direct calls only).