oscerd opened a new pull request, #23384:
URL: https://github.com/apache/camel/pull/23384
## Summary
Drop the `route` field from `RouteContextResult` ([CAMEL-23474][jira]). The
caller just sent the
route as input — sending it back wastes LLM context-window tokens,
especially for multi-line YAML
routes. Part of the ongoing `camel-jbang-mcp` token-reduction effort
(sibling tickets:
CAMEL-23475, CAMEL-23476, CAMEL-23472).
## Changes
* `ExplainTools.RouteContextResult` no longer carries a `route` field; it is
now
`(format, components, eips, summary)`.
* `ExplainTools.camel_route_context` constructor call updated accordingly.
* New `ExplainToolsTest` covering:
* The result record component layout (reflective check).
* The serialized JSON no longer contains a distinctive marker from the
input route.
* Blank-route validation still throws.
* Known component (timer) is still extracted.
* Upgrade-guide entry added under `camel-jbang-mcp` in
`camel-4x-upgrade-guide-4_21.adoc`.
## Test plan
- [x] `mvn -DskipTests install` in `dsl/camel-jbang/camel-jbang-mcp`
(formats + builds)
- [x] `mvn test` in `dsl/camel-jbang/camel-jbang-mcp` — 253 tests pass,
including 3 new ones
- [x] `mvn clean install -DskipTests` from repo root — full reactor build
green, no uncommitted
regenerated artifacts
[jira]: https://issues.apache.org/jira/browse/CAMEL-23474
---
_Claude Code on behalf of Andrea Cosentino_
--
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]