Skip to content

docs: document tool error handling with ToolException - #5900

Merged
tomivirkki merged 1 commit into
mainfrom
docs/tool-exception
Aug 28, 2026
Merged

docs: document tool error handling with ToolException#5900
tomivirkki merged 1 commit into
mainfrom
docs/tool-exception

Conversation

@tomivirkki

Copy link
Copy Markdown
Member

Summary

  • Documents the ToolException contract introduced in feat: add ToolException for LLM-safe tool errors flow-components#9957: only its message is relayed verbatim to the LLM, while any other exception from tool code is logged and replaced with a generic error.
  • Corrects the AI-Powered Grid page, which claimed failed query probe errors are returned to the model — relaying is opt-in, requiring the DatabaseProvider implementation to throw ToolException. Adds the matching validation section for AI-Powered Chart.
  • Clarifies that vendor-annotated @Tool objects are out of this contract's scope, since LangChain4j and Spring AI apply their own error handling.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tomivirkki
tomivirkki requested a review from ugur-vaadin August 28, 2026 07:45
@github-actions

Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5900.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from cd0822f

@tomivirkki
tomivirkki merged commit 980b3a1 into main Aug 28, 2026
8 checks passed
@tomivirkki
tomivirkki deleted the docs/tool-exception branch August 28, 2026 13:54
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.

2 participants