Repository navigation
feat(observability): LLMOps five-dimension metric aggregation - #221
Merged
Zongwei9888 merged 1 commit intoSep 17, 2026
Merged
Conversation
Contributor
Author
设计说明问题:agent 运行的质量、安全、诚实、成本、延迟五个维度分散在各处日志里,没有统一聚合视图。管理者难以回答"这周 agent 系统整体健康吗"。 解法:五维聚合器——每个维度定义评分函数(0-100),最终输出综合报告。价格表通过 关键设计决策:
测试建议:构造各维度的事件样本,验证评分单调性(更多坏事件 → 更低分) |
Zongwei9888
added a commit
that referenced
this pull request
Sep 17, 2026
Repair: the module now prices tokens from the model catalog instead of an ad-hoc per-1K table, drops the always-empty quality/harm/honesty dimensions, reports unpriced calls and a per-model breakdown, and gains a CLI entry point (python -m core.observability.llmops) with tests. Contributed by raymondginger2018-sudo.
Collaborator
|
Merged into What changed and why:
The public function is now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds aggregation for the five LLMOps metrics: Quality / Harm / Honesty / Cost / Latency.
This module consumes recorded per-call records and aggregates them into the five dimensions:
judge_fn) for sampled labels; without a judge these stayNone(unmeasured) rather than fabricatedDesign
DEEPCODE_LLM_PRICESenv or caller-supplied tableFile
core/observability/llmops.py(new, 158 lines)Part of GenAI lesson 14 LLMOps family.