AS AgentScopeAPI 手册 / API Reference
评估与追踪Evaluation & tracing · 单元Unit 12

可观测性与生产事故:从日志到定位Observability and production incidents: from logs to root cause

线上问题不是“模型变笨了”,而是链路某一段缺信息。学完本单元,你能用 trace、hook、事件和渠道回调指标定位模型、工具、状态和平台层故障。Production issues are rarely 'the model got dumber'; some segment lacks information. After this unit you can use traces, hooks, events and channel metrics to locate model, tool, state and platform failures.

10 道题questions 5 张概念卡concept cards 1 个相关事故related incidents

学习目标Learning goals

  • 用 trace id 串联模型、工具与子智能体Link models, tools and subagents with a trace id
  • 选择 Hook、事件或中间件做观测Choose hooks, events or middleware for observability
  • 处理渠道回调验签、去重与快速 ACKHandle channel callback signatures, deduplication and fast ACK

概念闪卡Concept cards

点击卡片翻面查看解释。Click a card to flip it and reveal the explanation.

关键 APIKey APIs

点击进入对应的 Python 或 Java 参考页。Open the exact Python or Java reference for each type.

问题巩固Check yourself

完成 10 道题;答错会自动进入错题本。Answer all ten questions. Wrong answers are added to your wrong-answer book automatically.

01Python 中用于追踪回复、模型调用和工具执行的中间件是?Which Python middleware traces replies, model calls and tool execution?
02Java 中扩展生命周期行为的接口是?Which Java interface extends lifecycle behavior?
03Java 中区分推理、行动、总结等阶段的枚举是?Which Java enum distinguishes reasoning, acting and summary stages?
04Python 中模型调用开始的事件是?Which Python event marks the start of a model call?
05一次请求的 trace id 应该覆盖哪些范围?What should a request trace id span?
06评测集应该覆盖哪些输入?Which inputs should an evaluation set cover?
07线上抽样评估相比一次性离线评测的优势是?Why is online sampled evaluation better than a one-off offline run?
08渠道回调的正确处理顺序是?What is the correct order for channel callbacks?
09Java 官方钉钉渠道扩展构件是?Which official Java extension integrates DingTalk?
10只记录最终答案的最大问题是什么?What is the biggest problem with logging only the final answer?

接着看的生产事故Production incidents to read next

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.