Repository navigation
docs: register AI tool objects with the AI framework - #6710
tomivirkki wants to merge 4 commits into
Conversation
The withTools() method of the AI orchestrator is deprecated. The AI pages now register tool objects with Spring AI or LangChain4j instead, and the testing guide adds the chat's tool through a controller. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The tool objects of a request are deprecated together with withTools(), so the custom provider section no longer lists them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Preview DeploymentThis PR has been deployed for preview. URL: https://docs-preview-pr-6710.fly.dev Changed pagesAdded content is highlighted in green; removed content is marked in red on each page.
Built from 21a802e |
vaadin-review-bot
left a comment
There was a problem hiding this comment.
Reviewed the changes — left 4 comments.
| Finding | |
|---|---|
| The LangChain4j customizer constructor doesn't exist in the flow-components source | |
withTools() is called deprecated, but it isn't deprecated in the source yet |
|
| The MCP note on LLM Providers now contradicts the new AI-service description | |
| 💬 | "Configure the error handling of the framework" gives the reader nothing to act on |
|
|
||
| Every conversation that runs through the same [classname]`ChatClient` or provider calls the same tool objects. When a tool works with the state of one view, such as its components, create the client or the provider for that view. | ||
|
|
||
| [methodname]`withTools()` on the orchestrator builder, and after [methodname]`reconnect()`, takes the same tool objects, but it's deprecated. Register the tool objects with the AI framework instead. |
There was a problem hiding this comment.
withTools() is called deprecated, but it isn't deprecated in the source yet
[methodname]
withTools()on the orchestrator builder, and after [methodname]reconnect(), takes the same tool objects, but it's deprecated.
AIOrchestrator.Builder.withTools(), Reconnector.withTools() and LLMProvider.LLMRequest.tools() carry no @Deprecated annotation in flow-components main. The whole PR rests on vaadin/flow-components#10736, which hasn't merged. Hold the docs change until it does, or the page tells readers to migrate away from an API that the IDE still shows as current.
tool-calling.adoc:56 · accuracy
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Summary
withTools()on the AI orchestrator andLLMRequest.tools(). The AI pages now register tool objects with Spring AI or LangChain4j instead, and no page uses the deprecated methods.