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

   Linked issue: #622
   
   ### Purpose of change
   
   Add symmetrical cross-language action support so a Java agent can declare a 
Python-bodied action via `@Action(target=@PythonFunction(...))` and a Python 
agent can declare a Java-bodied action via `@action(target=JavaFunction(...))`. 
Aligns built-in event SerDe (`Event`, `ChatMessage`, `MessageRole`, 
`ToolResponse`, `Document`) so events round-trip across the Java<->Python wire.
   
   ### Tests
   
   - Plan-compile and JSON-shape tests on both sides 
(`AgentPlanCrossLanguageTest`, `test_agent_plan_cross_language`).
   - Event snapshot round-trip tests against shared fixtures under 
`e2e-test/cross-language-event-snapshots/{java,python}/`.
   - Runtime dispatch tests (`CrossLanguageActionRuntimeTest`, 
`test_local_runner_cross_language`).
   - Flink mini-cluster e2e: `JavaAgentWithPythonActionTest` and 
`python_agent_with_java_action_test`.
   
   ### API
   
   Yes:
   - Java: `@Action.target()` field, new `@PythonFunction` annotation.
   - Python: `@action(target=...)` kwarg.
   
   ### Documentation
   
   - [x] `doc-not-needed`


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