Skip to main content

Module tools

Module tools 

Source
Expand description

Unified tool registry combining built-in tools and MCP-discovered tools.

Structs§

ToolRegistry
Combined tool registry: native built-in tools + MCP-discovered tools.

Functions§

default_tool_policy
Default policy for a tool: read-only builtins are allowed, mutating ones ask, human-in-the-loop tools are always allowed, and anything else requires approval.
resolve_policy
Resolve the effective policy for a tool call.
session_approval_keys
The keys a session-scoped approval (“allow for this session”) is remembered under. Empty means this call must not be session-granted at all.