Skip to main content

Module tools

Module tools 

Source
Expand description

Tool hosting and approval.

The runtime never executes a tool itself. It resolves the call, re-checks the artifact’s policy, and hands the invocation to a ToolHost the operator supplied. The default host denies everything, so a tool runs only because somebody chose to provide it.

Structs§

ApprovalRequest
ConsultRequest
A question the program wrote, on its way to a person.
DenyAllTools
Refuses every tool. The default, so nothing runs by accident.
ScriptedAnswers
Answers questions from a fixed list, then refuses. Test scaffolding.
ScriptedApprovals
Answers from a fixed list, then denies. Test scaffolding.
StaticToolHost
Serves tools from an in-process table. Test scaffolding, and the basis for the MCP host that replaces it.
ToolInvocation
One resolved tool call.

Enums§

ConsultError
Why a question could not be answered.
HumanChannel
How this run reaches a person, if it can.
ToolError

Traits§

Interlocutor
A person, from the run’s side of the channel.
ToolHost
Something that can execute a tool call.