|
Download testing/agent_evaluation/integrations/README.md from yuhanqin/ut-evaluation: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/integrations/README.md
- Command line
-
hf download hf://datasets/yuhanqin/ut-evaluation/testing/agent_evaluation/integrations/README.md
-
curl -L -o README.md https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/integrations/README.md
1.48 kB
| # Integration Adapters | |
| 生产 CLI 是 composition root,domain 只依赖 [ports.py](../ports.py) 的五个接口: | |
| | 接口 | 当前实现 | 职责 | | |
| | --- | --- | --- | | |
| | AgentAdapter | opencode/ | 无头、interactive、export 返回同一个 TaskArtifact | | |
| | AgentAdapter | simulator/ | 仅用于单元/fake 测试,不是真实验收 | | |
| | DatasetLoader | ../datasets/loader.py | 验证 canonical cases/manifest | | |
| | ExperimentBackend | ../backend/experiment_backend.py | 执行一次任务和各规则,保存原始 ScoreRecord | | |
| | TraceStore | ../backend/trace_store.py | 原生 spans 读取、稳定化与缓存 | | |
| | LLMCompletionBackend | openai/ | 共享结构化模型调用 | | |
| [Native integration](../backend/README.md) 内部用 SQLite 存储和 OTLP/HTTP collector,不需要 | |
| 外部 observability SDK。`ExperimentBackend` 只公开 run;记录编码、annotation 关联和查询都是内部 | |
| 实现。`annotate` 默认关闭,不改变正式 evaluations;backend metadata 的 ui_url、warnings | |
| 由 artifact/renderer/CLI 统一消费。 | |
| 新增 Agent/provider 时,实现一个已有接口,返回现有领域对象,在 CLI 接线,补正常/异常/ | |
| 缺失证据测试;不把 vendor import 引入 evaluator 或 loop。新增存储后端仍实现 run/read, | |
| 不为缓存、编码、annotation 再添加 registry 或 facade。Renderer 只消费领域结果。 | |
| Dataset source loader 在 ../datasets/sources/,属于 build,不是 runtime adapter。 | |