JiriOndrusek opened a new issue, #9545:
URL: https://github.com/apache/camel-quarkus/issues/9545

   Follow-up of #9532 and #9541. The logic of `camel-ai-tool` is unit tested in 
Camel; these are Camel Quarkus specific gaps.
   
   1. Camel agent exclusion in `CamelAiToolProvider`: `isCamelAgentRequest` is 
live, not dead code. `AiAgentWithMemoryService` has `@UserMessage`, so it is an 
implied `@RegisterAiService` bean and receives the CDI `ToolProvider`. With the 
guard disabled, a Camel agent with `tags=weatherTag` was offered all tools plus 
a duplicate. Add an end-to-end test in `ai-tool-langchain4j` (a Camel 
`langchain4j-agent` route with tags and a scripted chat model: it must see only 
its tagged tools), a unit test of `isCamelAgentRequest` (`ToolProviderRequest` 
and `InvocationContext` builders are public), and a test that the two 
interface-name constants still resolve with `Class.forName`.
   2. A nested `argSchema` (objects, arrays, enum, loaded with `classpath:`) 
must reach the model intact through the LangChain4j bridge. It does today in 
JVM and native mode (checked with a scratch test); add it as a regression test.
   3. Optional: an AI service called from a `StartupEvent` observer sees the 
registered tools.
   4. Docs: MCP hints and `title` are not passed to LangChain4j AI services 
(`ToolSpecification.metadata()` is empty). A `classpath:` `argSchema` needs 
`quarkus.native.resources.includes` in native mode.


-- 
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]

Reply via email to