跳转至

终端指标运行手册

本运行手册定义了如何解读 CLI 输出的交互式终端分析数据。

事件分组

  • 交互式终端行为:terminal_actions_planned、terminal_actions_executed、terminal_turn_summarized
  • Agent 循环可靠性:react_turn_completed、$ai_generation
  • Gateway 可靠性:gateway_turn_started、gateway_turn_completed、gateway_turn_failed

核心 KPI

  • terminal_action_execution_success_rate:成功的确定性动作执行
  • terminal_fallback_rate:需要 LLM 回退的轮次占比

运维指导

  • terminal_fallback_rate 高而 planned_count 低,说明确定性动作覆盖不足;应先改进动作识别器,而不是调整 LLM 提示词。
  • planned_count 高但执行成功率低,说明可能存在命令执行可靠性问题(shell 失败、缺少依赖、超时阈值设置不当)。

数据契约的事实来源

  • 事件枚举:infrastructure/analytics/events.py
  • 采集辅助函数与 KPI 查询规范:infrastructure/analytics/capture.py
  • 事件属性构建器:infrastructure/analytics/event_properties.py
  • Provider 类型约束与类型转换:infrastructure/analytics/provider.py

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 op/opensre