executor property

ToolExecutor get executor

A ToolExecutor that validates arguments against the tool's schema and dispatches to the tool's AgentTool.execute.

Failure contract (pi semantics): an unknown tool throws ToolNotFoundException, invalid arguments throw ToolValidationException — and the tool is not executed. The loop converts these throws into error ToolResultMessages, so nothing escapes the loop as an exception.

Implementation

ToolExecutor get executor => _execute;