ravismash opened a new issue, #1434: URL: https://github.com/apache/flink-agents/issues/1434
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description When an agent's output schema is a `RowTypeInfo` and the model leaves out one of the fields, Java and Python behave differently. - Java (`ChatModelAction.generateStructuredOutput`, `plan/src/main/java/org/apache/flink/agents/plan/actions/ChatModelAction.java:319-321`) sets the missing field to null and reports success. The row goes downstream as if the model answered it. - Python (`_generate_structured_output`, `python/flink_agents/plan/actions/chat_model_action.py:497`) raises `KeyError`, so the failure is reported as `MODEL_OUTPUT_PARSE_ERROR`. Expected: Java fails the same way as Python. A field the model sets to null explicitly can still be accepted. ### How to reproduce Output schema RowTypeInfo(STRING name, INT age), model returns {"name":"Ada"}. Java gives Row(name=Ada, age=null) with no error. Python raises KeyError: 'age'. ### Version and environment Version and environment main at ace0f45 (2026-11-20). Are you willing to submit a PR ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- 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]
