Skip to main content

Module tool_dispatch

Module tool_dispatch 

Source
Expand description

How a tool calls other tools of its session — through the same dispatch a model’s own tool call takes (validation, hooks, middleware, telemetry, permission), so a sub-call can do nothing its caller could not have done directly. Handed to tools that ask for it (ToolSpec::needs_dispatch); a skill’s inline command takes the same dispatch through crate::interface::inline_command::InlineCommands.

Structs§

CallableTool
A tool another tool can call by name.
CommandScope
What the sub-calls of one plugin command’s run are held to: they are that command’s, a read-only run writes nothing, and the files a write run may change are writes, globs relative to the project root.
SubCallAnswer
What a sub-call produced: the result’s text, its structured content when the tool gave one, and whether the tool called it a failure. Err is the call not running at all — unknown, not callable, refused, invalid.

Traits§

ToolDispatch