JiriOndrusek opened a new issue, #9532:
URL: https://github.com/apache/camel-quarkus/issues/9532
### Problem
A coverage review of `camel-ai-tool` (Camel 4.22.2 and Camel Quarkus 3.40.1,
checked against the component documentation) found that many features are not
tested in Camel Quarkus: of 45 features, 15 are covered, 6 only indirectly and
24 are not covered. Camel itself has two gaps (`argSchema` `file:`/`resource:`
refs and the YAML/XML DSL).
### Missing tests
- Security and extension logic: `Camel*`-prefixed arguments are not set as
headers; undeclared arguments are ignored; a Quarkus AI service without
`@CamelAiTools` gets all tools; `@CamelAiTools("")` is a build error and
missing optional dependencies give warnings; invalid JSON arguments give the
sanitized "Tool execution failed" response.
- Endpoint options: several tags in one route; description defaults to the
tool name; `number`/`boolean` parameter types and aliases;
`parameter.N.description` in the schema; null body; `argSchema` inline and by
reference, and its validation errors; `argSchema` together with `parameter.*`;
the `destructive` and `openWorld` hints; producer is not supported.
- Lifecycle: suspend/resume re-registers the tool; duplicate tool names
under the same tag are rejected; tools are registered before the consumers
start.
- DSL: ai-tool routes in YAML and XML.
- Existing tests: the wrong-tag checks only assert that one value is absent,
so they also pass when no tools are bridged; one test is named after the wrong
service.
### Not covered by the first PR (follow-up)
- `returnDirect` end to end (only `camel-openai` honours it, so it needs an
openai + ai-tool test).
- Exclusion of Camel agent requests in `CamelAiToolProvider` (a unit test of
`isCamelAgentRequest`; an integration test cannot fail with the current
`quarkus-langchain4j`).
- `argSchema` with a `file:` reference (only `classpath:` is tested).
### Done when
- [ ] The listed tests exist in `integration-tests/ai-tool`,
`integration-tests/ai-tool-langchain4j` and `extensions/ai-tool/deployment`
- [ ] The follow-up items are tested or explicitly dropped with a reason
_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]