ravismash opened a new pull request, #1435:
URL: https://github.com/apache/flink-agents/pull/1435

   Linked issue: #1434
   
   ### Purpose of change
   
   With a `RowTypeInfo` output schema, the Java action filled a field the model 
left out with null and reported success. Python raises in the same case. This 
makes Java throw too, so the failure is reported as `MODEL_OUTPUT_PARSE_ERROR` 
like in Python.
   
   ### Behavioral Semantics
   
   - Field missing from the model's JSON: `IllegalArgumentException` naming the 
field, reported through the existing parser failure path.
   - Field present with an explicit null: still accepted, same as Python.
   - POJO (`Class`) output schemas are unchanged.
   
   ### Tests
   
   Added to `ChatModelActionTest`: all fields present, explicit null kept, 
missing field rejected. `mvn -pl plan -am test`: 772 plan tests pass. Spotless 
clean.
   
   ### API
   
   No public API change.
   
   ### Documentation
   
   - [ ] `doc-needed`
   - [x] `doc-not-needed`
   - [ ] `doc-included`
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   - [x] Yes
   - [ ] No
   
   Generated-by: Claude Code 2.1.330 (Claude Opus 5.5)
   


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