Skip to content

Fix tool callback example in user-controlled tool execution docs#6324

Open
uc4w6c wants to merge 1 commit into
spring-projects:mainfrom
uc4w6c:fix-user-controlled-toolcallbacks-doc
Open

Fix tool callback example in user-controlled tool execution docs#6324
uc4w6c wants to merge 1 commit into
spring-projects:mainfrom
uc4w6c:fix-user-controlled-toolcallbacks-doc

Conversation

@uc4w6c
Copy link
Copy Markdown

@uc4w6c uc4w6c commented Jun 6, 2026

Summary

This PR fixes a small documentation issue in the user-controlled tool execution example.

The streaming API example now wraps new CustomerTools() with ToolCallbacks.from(...), matching the expected toolCallbacks usage and the surrounding examples.

Changes

  • Updated .toolCallbacks(new CustomerTools()) to .toolCallbacks(ToolCallbacks.from(new CustomerTools()))

Notes

This is a documentation-only change.

Signed-off-by: Yuta Saito <uc4w6c@bma.biglobe.ne.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant