luigidemasi opened a new pull request, #26813:
URL: https://github.com/apache/camel/pull/26813

   # Description
   
   Implements [CAMEL-24977](https://issues.apache.org/jira/browse/CAMEL-24977) 
with `camel-semantic`: provider-independent question/result types, an adapter 
SPI, and a language for named boolean, category and score evaluations. YAML 
routes can declare `semantic.question` definitions, select message state with 
Simple, and reference questions through the existing language 
expression/predicate contracts.
   
   The TypeSafe AI component advertises an adapter that reuses its configured 
transport. Adapter discovery and explicit bean/class selection validate 
ownership, lifecycle and capabilities without inference during setup. Boolean 
policy distinguishes uncertainty from operational failures; optional 
probabilities and confidence remain separate from the selected value.
   
   Core Choice now supports `.choice(expression).when("value")`, evaluating the 
selector once per entry. Literal matching, null/unmatched values, 
nested/repeated evaluations, error handling and precondition restrictions are 
documented and tested. XML, YAML, Java export, schemas, JMX and generated 
catalog artifacts support the new model. XML schemas permit a value-only 
branch; route startup validates whether each branch requires a predicate or a 
literal. A default `PropertyConfigurer.configureRaw` hook lets the semantic 
language retain adapter reference text for type checking and lifecycle 
ownership before Camel's normal reference resolution.
   
   Examples and deterministic tests cover Choice, Filter, Validate, metadata 
assignment, aggregation, destination mappings, loops and sorting. Documentation 
explains Camel Main/JBang properties, explicit embedded/Spring Boot 
configuration, and resource reload behavior.
   
   # Validation
   
   - Choice tests: 58 passed; property binding tests: 68 passed.
   - Semantic language, lifecycle, configuration and EIP tests: 20 passed.
   - TypeSafe AI module: 132 passed, including adapter tests against a local 
HTTP fixture.
   - Java DSL export/compilation: 130 passed; XML selector round trips: 2 
passed; Choice JMX: 2 passed.
   - YAML DSL common/deserializer/route tests: 427 passed; YAML validator 
tests: 155 passed.
   - Catalog XML schema tests: 5 passed, including literal branches against 
both Spring XML and XML IO schemas.
   - Full 694-module reactor: `mvnd -B -ntp -T1 clean install -DskipTests` 
passed, including formatting and generated artifacts.
   
   # Target
   
   - [x] Targets `apache/camel:main`.
   
   # Tracking
   
   - [x] [CAMEL-24977](https://issues.apache.org/jira/browse/CAMEL-24977) 
tracks the change.
   
   # Apache Camel coding standards and style
   
   - [x] The commit has a meaningful subject and body.
   - [x] Ran the full root build with `mvnd clean install -DskipTests`; 
included relevant generated artifacts and formatting changes.
   
   # AI-assisted contributions
   
   - [x] The commit includes AI co-authorship attribution and the operator's 
sign-off and signature.
   
   Generated by Codex via /oss-fix-issue on behalf of 
[luigidemasi](https://github.com/luigidemasi).
   


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