Search before asking
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?
Search before asking
Description
Actions communicate by sending events via
ctx.send_event(...); any value anaction returns is silently discarded by the framework.
Today this fails quietly
if a user writes
return resultin an action, nothing happens and there is noerror or warning, which is a confusing trap.
python/flink_agents/plan/actions/action.pyalready 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-
Nonereturn type, pointing the user toctx.send_event(...). Implements the existing TODO; warning only, no change toexecution behavior
Are you willing to submit a PR?