CAMEL-23397: Support route tool annotations (returnDirect) in camel-o… - #26134
Draft
mcarlett wants to merge 1 commit into
Draft
CAMEL-23397: Support route tool annotations (returnDirect) in camel-o…#26134mcarlett wants to merge 1 commit into
mcarlett wants to merge 1 commit into
Conversation
…penai agentic loop Adds parity between MCP tools and route-based ai-tool tools in the camel-openai agentic loop. camel-ai-tool gains a returnDirect annotation/configuration field (with a 5-arg compatibility constructor preserving 4.22.0 binary compatibility), camel-mcp-server publishes it via VertxMcpServerEngine, and camel-openai adds a new `tags` endpoint option to discover route tools from the shared AiToolRegistry, execute them through AiToolExecutor, and honour returnDirect to short-circuit the agentic loop. Route tools are refreshed dynamically as the registry changes, and manual tool-execution loops support tags-only route tools. Closes apache#25497 Co-authored-by: Omar Atie <atiaomar1978-hub@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit 2c3b65a)
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 17 tested, 26 compile-only — current: 14 all testedMaveniverse Scalpel detected 43 affected modules (current approach: 14).
|
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.
…penai agentic loop
Adds parity between MCP tools and route-based ai-tool tools in the camel-openai agentic loop. camel-ai-tool gains a returnDirect annotation/configuration field (with a 5-arg compatibility constructor preserving 4.22.0 binary compatibility), camel-mcp-server publishes it via VertxMcpServerEngine, and camel-openai adds a new
tagsendpoint option to discover route tools from the shared AiToolRegistry, execute them through AiToolExecutor, and honour returnDirect to short-circuit the agentic loop. Route tools are refreshed dynamically as the registry changes, and manual tool-execution loops support tags-only route tools.Closes #25497
(cherry picked from commit 2c3b65a)