vishnuprakaz opened a new issue, #834:
URL: https://github.com/apache/flink-agents/issues/834

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/flink-agents/issues) and found nothing 
similar.
   
   ### Description
   
   Actions communicate by sending events via `ctx.send_event(...)`; any value an
     action returns is silently discarded by the framework. 
   
     Today this fails quietly
      if a user writes `return result` in an action, nothing happens and there 
is no
     error or warning, which is a confusing trap.
     
     `python/flink_agents/plan/actions/action.py` already carries a TODO for 
this:
           
     ### Proposed fix: 
     when an agent plan is built, emit a warning for any `@action`-
     decorated method that declares a non-`None` return type, pointing the user 
to
     `ctx.send_event(...)`. Implements the existing TODO; warning only, no 
change to
     execution behavior
   
   ### 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]

Reply via email to