Type Alias: TToolVisibleWhenHandler
TToolVisibleWhenHandler = (
args) =>boolean
Defined in: contracts/types.ts:336
The tool's own rule for being offered in a step, evaluated by ToolPolicy.narrowForStep before every model call (D89).
Sync: it runs on every step, on data the loop already has; a look-up belongs in execute or in a policy predicate.
Parameters
args
executed
string[]
Names of the tools executed so far in this run: a result that was neither rejected nor failed (D76).
stepIndex
number
0 for the first model call of the run.
Returns
boolean