zbendhiba opened a new pull request, #24862:
URL: https://github.com/apache/camel/pull/24862
…component
# Description
Step 3: Wire camel-spring-ai-chat producer to discover tools from
AiToolRegistry
## Summary
Migrate the `camel-spring-ai-chat` producer from `camel-spring-ai-tools`
(`CamelToolExecutorCache`) to the unified `camel-ai-tool` module
(`AiToolRegistry`).
- **Bridge adapter**: new `AiToolSpecToSpringAi` converts `AiToolSpec` →
Spring AI `ToolCallback`, with explicit handling of all `AiToolResult` subtypes
and WARN logging on execution errors
- **Tool deduplication**: uses `LinkedHashSet` to prevent duplicate tools
when tags overlap
- **Dependency swap**: `camel-spring-ai-tools` → `camel-ai-tool` in pom.xml
- **Tests**: migrated to `AiToolRegistry`, replaced `Thread.sleep()` with
Awaitility
- **Docs**: updated component docs and upgrade guide with migration
instructions
No changes to other modules.
## Roadmap
- [x] Step 1: Create the new `camel-ai-tool` module -
https://github.com/apache/camel/pull/24473
- [ ] Step 2: Wire `camel-langchain4j-agent` producer to `AiToolRegistry`
- [x] **Step 3 (this PR): Wire `camel-spring-ai-chat` producer to
`AiToolRegistry`**
- [ ] Step 4: Wire `camel-langchain4j-tools` producer to `AiToolRegistry`
- [ ] Step 5: Deprecate `camel-langchain4j-tools` consumer, remove
`camel-spring-ai-tools`
- [ ] Step 6: Add tool support to `camel-openai`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]