Skip to main content

Module tools

Module tools 

Source

Structs§

PreparedToolCall
Runtime-prepared executable tool call.
StaticToolProvider
Author a fixed-tool provider without hand-rolling tool_manifests / resolve_contract: supply the ToolDefinitions once and an StaticToolExecute for behavior. A ToolProvider that serves a fixed set of ToolDefinitions from a cache, delegating execution to an StaticToolExecute.
ToolAgentSurface
ToolAvailabilityConfig
ToolCall
Per-call inputs handed to ToolProvider::execute.
ToolCallOutput
ToolCallRecord
ToolContext
Per-call environment for ToolProvider::execute. Fields are sealed so the runtime can add capabilities without breaking tool authors.
ToolContract
Heavy tool contract resolved only when a prompt or call needs schemas/docs.
ToolDefinition
Static authoring helper for tools.
ToolHostEventControl
ToolManifest
Tool metadata exposed to prompts, catalogs, UI, and availability checks. The optional compact contract is the catalog-facing projection of the resolved contract; full schemas stay in ToolContract.
ToolPrepareCall
Inputs handed to ToolProvider::prepare_tool_call.
ToolPrepareContext
ToolRestoreReport
Outcome of ToolRegistry::restore_state: the adopted generation plus the names of persisted tools that no registered source currently resolves. Hosts should surface a non-empty orphaned list to the user — the session opened, but those tools are Off until their source returns.
ToolResult
ToolSourceHandle
ToolState
ToolStateEntry

Enums§

ToolActivation
ToolArgumentProjectionPolicy
ToolAvailability
ToolOutputContract
ToolScheduling
How a tool’s invocations should be scheduled relative to other tools in the same batch of model-produced tool calls.

Traits§

StaticToolExecute
Author a fixed-tool provider without hand-rolling tool_manifests / resolve_contract: supply the ToolDefinitions once and an StaticToolExecute for behavior. Per-call execution behavior for a StaticToolProvider.
ToolProvider
Trait for providing tools to the sandbox. Implement this per-project.