Skip to content

fix: #3512 type tool-end hook results as object#3518

Merged
seratch merged 1 commit into
mainfrom
pr-3513-object-tool-result
May 28, 2026
Merged

fix: #3512 type tool-end hook results as object#3518
seratch merged 1 commit into
mainfrom
pr-3513-object-tool-result

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented May 28, 2026

This pull request fixes tool-end hook result typing so run-level and agent-level hooks accept arbitrary function tool return values without weakening hook implementations with Any.

It updates RunHooksBase.on_tool_end and AgentHooksBase.on_tool_end to use object, documents that simple outputs are typically strings while function tools may return structured output objects or stringifyable values, and aligns tests and examples with the revised public hook signature.

This pull request resolves #3512.

@seratch seratch added this to the 0.17.x milestone May 28, 2026
@seratch seratch merged commit 9211356 into main May 28, 2026
9 checks passed
@seratch seratch deleted the pr-3513-object-tool-result branch May 28, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RunHooksBase on_tool_end result type error

1 participant