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

   Since the interceptor was removed (`camel-quarkus 9547`), `@CamelAiTools` on 
a regular CDI bean has no effect, and nothing reports it:
   
   ```java
   @ApplicationScoped
   @CamelAiTools("support")
   class SupportFacade {
       @Inject Chat chat;
       String ask(String q) { return chat.chat(q); }
   }
   ```
   
   Before, the `support` tag applied to AI service calls made inside `ask()`. 
Now `Chat` gets every tool. The docs only describe the annotation on the AI 
service interface, so this is not a documented regression. The setting just 
stops working without any message.
   
   **Proposal:** `validateCamelAiToolsUsage` warns, or fails the build, when 
the annotated class is not a `@RegisterAiService` interface. Add a test for it.
   
   _Generated with [Claude Code](https://claude.com/claude-code) on behalf of 
@JiriOndrusek_
   


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