Skip to main content

Module plugin_call

Module plugin_call 

Source
Expand description

A host’s call of a tool object outside any turn, through the session’s whole tool pipeline — permission, PreToolUse, tool.around, the call, PostToolUse, telemetry — the way the model’s calls go, beside a turn that may be running. The tool is handed over, so it need not be one the model can call.

The call itself is the host’s approval: what the session would ask about runs, what its rules deny or its mode refuses does not. Nobody is asked anything, neither about it nor about the calls it makes. permission_rules hold after the session’s own for this call and the calls it makes: a deny refuses in any mode, an allow answers only what the mode would ask.

Structs§

HostCallOutcome
outcome Err: no answer — refused, invalid, failed, the session gone. by_middleware: the answer is not the tool’s own — a tool.around gave or changed it, or a tool.result rewrote it. stopped: the host or the session’s end told the call to stop.

Traits§

HostToolRunner