ai.tools

ai.tools

Typed, allowlisted tool definitions and execution.

Classes

Name Description
Tool A typed local tool whose callable is never selected by model output.
ToolExecutionError A validated tool failed or exceeded its execution policy.
ToolRegistry Explicit allowlist for safe local tool execution.

Tool

ai.tools.Tool(function, *, name, input, output, description='', timeout=30.0)

A typed local tool whose callable is never selected by model output.

ToolExecutionError

ai.tools.ToolExecutionError()

A validated tool failed or exceeded its execution policy.

ToolRegistry

ai.tools.ToolRegistry(tools=None)

Explicit allowlist for safe local tool execution.

Functions

Name Description
tool Decorate a callable as a typed QRT tool.

tool

ai.tools.tool(name, input, output, description='', timeout=30.0)

Decorate a callable as a typed QRT tool.

Back to top