Repository navigation
feat: add controller support to AI orchestrator - #8953
Merged
Merged
Conversation
Enable controller-based feature composition for AIOrchestrator. Controllers provide framework-agnostic tools via LLMProvider.ToolDefinition and receive post-request callbacks, allowing feature modules to extend orchestrator behavior without subclassing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Controllers typically hold non-serializable references (Spring beans, DB connections, etc.) so they should not be serialized with the orchestrator. They are now restored via reconnect().withControllers(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…nsistently Log a warning when multiple tools share the same name to prevent silent last-writer-wins behavior. Make Spring AI provider catch tool execution exceptions consistently with LangChain4j. Document the error contract on ToolDefinition.execute(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ugur-vaadin
reviewed
Mar 19, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
ugur-vaadin
approved these changes
Mar 19, 2026
Collaborator
|
This ticket/PR has been released with Vaadin 25.2.0-alpha2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
AIControllerinterface that allows extending the AI orchestrator with framework-agnostic tools and request lifecycle hooksLLMProvider.ToolSpecinterface for defining tools programmatically without depending on LangChain4j or Spring AI annotationsLLMProvider.LLMRequestviaexplicitTools()ToolSpecexecution in bothLangChain4JLLMProviderandSpringAILLMProviderAIControllertransient to avoid serialization failures, with restoration viareconnect().withControllers()Fixes https://github.com/orgs/vaadin/projects/103/views/3?pane=issue&itemId=165657853
Type of change
Feature