cli: add missing agent action parameters to argument extraction
Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

- Add agent, message, to, and content parameters to handle_agent_action kwargs extraction
- Fixes agent communication commands that require these parameters (send, receive, broadcast)
This commit is contained in:
aitbc
2026-04-10 13:31:14 +02:00
parent 084dcdef31
commit 748264e44d

View File

@@ -637,7 +637,7 @@ def run_cli(argv, core):
def handle_agent_action(args):
kwargs = {}
for name in ("name", "description", "verification", "max_execution_time", "max_cost_budget", "input_data", "wallet", "priority", "execution_id", "status"):
for name in ("name", "description", "verification", "max_execution_time", "max_cost_budget", "input_data", "wallet", "priority", "execution_id", "status", "agent", "message", "to", "content"):
value = getattr(args, name, None)
if value not in (None, "", False):
kwargs[name] = value