fix(agent): use output parameter when invoking onToolResult instead of toolCall.result
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-03-06 - 3.0.2 - fix(agent)
|
||||
use output parameter when invoking onToolResult instead of toolCall.result
|
||||
|
||||
- Replace (toolCall as any).result with the explicit output parameter when calling options.onToolResult.
|
||||
- Prevents undefined/misread results by aligning the callback with the tool runner's output signature.
|
||||
|
||||
## 2026-03-06 - 3.0.1 - fix(readme)
|
||||
adjust ASCII art in README to fix box widths and spacing in agent diagram
|
||||
|
||||
|
||||
Reference in New Issue
Block a user