Integrate agent coordinator API calls into CLI for agent registration, discovery, and task distribution stats
- Add handle_ai_distribution_stats() to query task distribution statistics from coordinator
- Update handle_agent_sdk_action() register to call /agents/register endpoint with full registration data
- Update handle_agent_sdk_action() list to call /agents/discover endpoint with filtering
- Update handle_agent_sdk_action() status to call /agents/{agent_id} endpoint
- Add handle_agent_sdk_action() update-status to call /agents/{agent_id}/status endpoint
- Add CLI
This commit is contained in:
@@ -538,6 +538,9 @@ def run_cli(argv, core):
|
||||
def handle_ai_stats(args):
|
||||
ai_handlers.handle_ai_stats(args, default_rpc_url, output_format, render_mapping)
|
||||
|
||||
def handle_ai_distribution_stats(args):
|
||||
ai_handlers.handle_ai_distribution_stats(args, default_coordinator_url, output_format, render_mapping)
|
||||
|
||||
def handle_ai_service_list(args):
|
||||
ai_handlers.handle_ai_service_list(args, ai_operations, render_mapping)
|
||||
|
||||
@@ -726,6 +729,7 @@ def run_cli(argv, core):
|
||||
"handle_ai_job": handle_ai_job,
|
||||
"handle_ai_cancel": handle_ai_cancel,
|
||||
"handle_ai_stats": handle_ai_stats,
|
||||
"handle_ai_distribution_stats": handle_ai_distribution_stats,
|
||||
"handle_ai_service_list": handle_ai_service_list,
|
||||
"handle_ai_service_status": handle_ai_service_status,
|
||||
"handle_ai_service_test": handle_ai_service_test,
|
||||
|
||||
Reference in New Issue
Block a user