Skip to content
docsv0.19.1

ToolCallRecorder

Told AFTER a tool call, with what the tool answered. A {@see ToolCallGate} decides before; it never sees the outcome. Whoever keeps a record of what was executed — a session ledger, an audit — implements this and is told once per call, success or failure, with the rendered result and whether it succeeded.

ToolCallRecorder::recorded()

abstract public function recorded(string $tool, array $arguments, string $result, bool $ok): void

Told once per call: the tool, its arguments, the rendered result and whether it succeeded.

Parameters

Parameters of recorded()
NameTypeDescription
$toolstring
$argumentsarray<string, mixed>
$resultstring
$okbool