Agent Manager 缺少 Runtime logs / metrics / usage 回传接口 #80
Notifications
Total Time Spent: 41 hours 20 minutes
chenchen
41 hours 20 minutes
No due date set.
Dependencies
No dependencies set.
Reference: taijibaga/heicode-mananger#80
Reference in New Issue
Block a user
问题
Manager 当前 logs/metrics 只能明确标记为 control-plane / estimated。蜂群生产验收需要 Runtime 提供真实日志、指标和模型用量归属。
需要 Agent Manager 提供
GET /api/swarms/{swarm_id}/logs或通过 callback 回写日志摘要。GET /api/swarms/{swarm_id}/metrics或指标映射。manager_deployment_id、swarm_id、task_id、agent_role、model_id、correlation_id。budget.alert或timeline.updated回传预算/用量摘要。验收标准
对接文档
见
docs/integration/AgentManager蜂群Runtime接口实现要求.md第 12 节。2026-05-29 生产实测补充
本次普通 sub 任务
dep_fa4f43da9e0a/swm_f9ce3f6c90aa同时暴露 logs / metrics / usage 仍是占位或空值。生产证据
直查 Agent Manager:
GET /api/swarms/swm_f9ce3f6c90aa返回:直查日志:
GET /api/swarms/swm_f9ce3f6c90aa/logs返回:并且 deployment 已 completed,但 agents 仍显示 running,状态不一致。
需要 Agent Manager 补齐
input_tokens、output_tokens、total_tokens、model_cost_usd、model_id。2026-05-31 生产复核结果:Agent Manager 已更新普通 sub Runtime,Manager 生产入口已验证真实生成链路通过。
验证数据:
dep_1d6d66896cc6swm_03995f7c7a27gpt-5.4completed,backend Agent 状态:completedtokens_used=2682newapi_request_id=chatcmpl-DlbZce3VZnsv5DptBILFoiRYy5ZHNart_swm_03995f7c7a27_backend_1,类型code_patch结论:该工单对应能力已由 Agent Manager 修复,并通过 Heicode Manager 生产链路验证;关闭。