atiaomar1978-hub commented on PR #25497:
URL: https://github.com/apache/camel/pull/25497#issuecomment-5399114978
Addressed the follow-up review from @davsclaus in commit $(git rev-parse
--short HEAD).
**Fix:** Route tool execution now creates exchanges via
`spec.getConsumer().createExchange(false)` instead of
`Endpoint.createExchange()`, matching the symmetric `releaseExchange()` path
and avoiding `ClassCastException` when `camel.main.exchangeFactory=pooled` is
configured.
**Tests run locally (all passing):**
```
./mvnw -pl
components/camel-ai/camel-ai-tool,components/camel-ai/camel-openai -am test \
-Dtest=AiToolAnnotationsTest,OpenAIRouteToolSupportTest,OpenAIRouteToolReturnDirectTest,McpToolCallExecutorTest,OpenAIProducerMcpMockTest,OpenAIEndpointMcpToolRefreshTest
```
_AI-generated on behalf of atiaomar1978-hub_
--
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]