addu390 opened a new pull request, #561: URL: https://github.com/apache/flink-agents/pull/561
Linked issue: #424 ### Purpose of change Add unified event support. Users can create events with a `type` string and `attributes` map instead of defining subclasses. Enables string-based event routing and JSON-based cross-language transport. Fully backward compatible with existing subclassed events. ### Tests New unit tests in Java (`EventTest`, `EventLogRecordJsonSerdeTest`) and Python (`test_event`, `test_decorators`, `test_agent_plan`, `test_local_execution_environment`) covering unified event creation, serialization, routing, and backward compatibility. ### API Yes. `Event` class (Java/Python) gains `type`, `attributes`, `getType()`/`get_type()`. `@Action` annotation gains `listenEventTypes()`. `@action` decorator accepts string identifiers. `RunnerContext.send_event()` accepts string identifier with kwargs. More details about the design in the issue #424 ### Documentation - [x] `doc-needed` - [ ] `doc-not-needed` - [ ] `doc-included` -- 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]
