withToolCallInspectors

open override fun withToolCallInspectors(vararg inspectors: ToolCallInspector): PromptRunner

Add tool call inspectors for observing individual tool executions. Unlike withToolLoopInspectors, these receive only tool-level context without full conversation history or iteration state.

Works in both streaming and non-streaming modes.

Return

PromptRunner instance with the added inspectors

Parameters

inspectors

the tool call inspectors to add