atiaomar1978-hub opened a new pull request, #26055: URL: https://github.com/apache/camel/pull/26055
## Summary _Auto-generated by Cursor Agent on behalf of atiaomar1978-hub_ Implements [CAMEL-24566](https://issues.apache.org/jira/browse/CAMEL-24566): Camel JBang auto-discovers GenAI-related dependencies when running or exporting routes. ## Changes - **`GenAiDependencyDiscovery`** — scans YAML, XML, and Java route sources for GenAI component URIs and LangChain4j provider packages - **`Run.java`** — adds discovered dependencies before launch - **`ExportBaseCommand.resolveDependencies()`** — same discovery for export, `dependency list`, and `dependency update --scan-routes` - **`camel-main-known-dependencies.properties`** — package-level LangChain4j provider class-to-JAR mappings for runtime download ## Behavior | Trigger | Dependency added | |---------|------------------| | Route uses GenAI scheme (`langchain4j-chat:`, `openai:`, etc.) | `camel:<scheme>` | | Route/Java references LangChain4j provider package | `mvn:dev.langchain4j:langchain4j-ollama:…` etc. | | GenAI route or provider + `--observe` or `camel.aiObservability.enabled=true` | `camel:ai-observability` (catalog ≥ 4.23) | `camel.aiObservability.enabled=false` opts out. Observability is not added by default without `--observe` or an explicit property. ## Tests - `GenAiDependencyDiscoveryTest` — 15 unit tests including false-positive guards and opt-in observability - `ExportTest.shouldExportGenAiRouteWithObservability` — export integration with `--observe` ## Related - JIRA: https://issues.apache.org/jira/browse/CAMEL-24566 -- 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]
