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

   ### Purpose of change
   
   * Action signatures are fixed (Event, RunnerContext), but the Python API 
forced callers to spell out parameter_types when declaring a Java action, while 
the YAML API auto-fills them. Add JavaFunction.for_action() to fill the fixed 
signature, share the ACTION_PARAMETER_TYPES constant with the YAML loader, and 
simplify the cross-language example. Tools keep explicit parameter_types since 
their signatures vary.
   * The cross-language YAML e2e only covered Java resources/tools. Cover the 
action path: a basic YAML-declared Java action (multiplyByTwo, no 
parameter_types written — guards the loader auto-fill), plus orchestration 
actions in the other language bridged by the host-native built-in chat loop 
with a cross-language tool — Python host + Java actions and Java host + Python 
actions. Reuses existing handlers; only YAML + tests are new. Ollama/test-jar 
skips as before.
   
   
   
   ### Tests
   
   <!-- How is this change verified? -->
   
   ### API
   
   <!-- Does this change touches any public APIs? -->
   
   ### Documentation
   
   <!-- Do not remove this section. Check the proper box only. -->
   
   - [ ] `doc-needed` <!-- Your PR changes impact docs -->
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-included` <!-- Your PR already contains the necessary 
documentation updates -->
   


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