Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Mi1chstraBev1.0.0Apache-2.0In 1 marketplace
Skills for adding DeepEval evaluations, tracing, datasets, Confident AI reports, and iterative improvement loops to AI applications.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
基于 DeepEval 扩展的 Agent 工具调用可靠性评测 Pipeline,将 agent 失败从“结果不好”拆解为可定位的工程原因。
Agent 系统的失败往往不是单纯的“最终答案不好”,而是可能出在工具选择、参数、执行超时、重试、fallback 或工具成功后的最终回答组织。DeepEval 原有 ToolCorrectnessMetric 能评估工具选择和参数正确性,但不覆盖 runtime reliability 和失败阶段归因。本项目补充 deterministic 评测 pipeline,用可复现指标和 benchmark 报告量化 AgentScheduler-Swarm 接入前后的可靠性改善。
DeepEval 原有 ToolCorrectnessMetric 评估工具选择和参数是否正确,但不覆盖:
timeout、retry、fallbackToolCallingReliabilityMetric 是 deterministic metric,不依赖 LLM-as-judge,结果稳定可复现。
统计指标:
tool_selection_accuracyargument_match_rateexecution_success_ratetimeout_rateretry_ratefallback_ratefinal_task_success_rateNO_TOOL_CALLEDWRONG_TOOLWRONG_ARGUMENTSTOOL_TIMEOUTTOOL_EXECUTION_FAILEDFALLBACK_USEDFALLBACK_FAILEDFINAL_ANSWER_FAILED_AFTER_TOOL_SUCCESS注意:TOOL_TIMEOUT 记录 root cause(发生了什么),与“最终导致任务失败的 timeout 数量”是两个维度,分开统计才能看清系统真实损失。
运行 50 组 deterministic mock benchmark 并生成 examples/agent_tool_reliability/report.md:
python examples/agent_tool_reliability/run.py
运行 metric 单测:
pytest tests/test_metrics/test_tool_calling_reliability_metric.py -q
from deepeval.metrics import ToolCallingReliabilityMetric
from deepeval.test_case import LLMTestCase, ToolCall
metric = ToolCallingReliabilityMetric()
test_case = LLMTestCase(
input="帮我查北京到上海最便宜的航班",
actual_output=response.messages[-1]["content"],
expected_tools=[
ToolCall(
name="search_flights",
input_parameters={"from": "北京", "to": "上海"},
)
],
tools_called=response.tools_called,
metadata={"tool_traces": response.tool_traces},
)
metric.measure(test_case)
print(metric.score)
print(metric.reason)
50 组 deterministic mock benchmark,覆盖 no tool、wrong tool、wrong arguments、timeout、execution failed、fallback recovered。
| 指标 | Baseline | Enhanced |
|---|---|---|
task_success_rate | 68.0% | 92.0% |
tool_execution_success | 76.0% | 92.0% |
timeout_failures | 8 | 3 |
fallback_recovered | 0 | 5 |
avg_latency_ms | 507 | 483 |
Enhanced 版本为接入 AgentScheduler-Swarm 调度层后的结果。
平均延迟下降的原因:baseline 存在大量等到完整 timeout 才失败的长尾请求,enhanced 的 timeout 截断机制将这些 1000ms 级别的失败请求替换为更短路径的 fallback 成功请求,尾延迟得到控制。
| 维度 | ToolCorrectnessMetric | ToolCallingReliabilityMetric |
|---|---|---|
| 评估重点 | 选择和参数正确性 | Runtime reliability |
| 是否覆盖超时 | 否 | 是 |
| 是否覆盖重试 | 否 | 是 |
| 是否覆盖降级 | 否 | 是 |
| 失败归因 | 否 | 8 类,定位到具体阶段 |
| judge 方式 | LLM-as-judge | Deterministic 规则 |
pytest tests/test_metrics/test_tool_calling_reliability_metric.py -q
# 8 passed
本项目的 Enhanced benchmark 数据来自接入 Mi1chstraBe/swarm-agent-scheduler 调度层后的结果,两个项目构成完整的"建系统 → 评估系统"闭环。
Documentation | Metrics and Features | Getting Started | Integrations | Confident AI
npx claudepluginhub mi1chstrabe/deepeval-agent-reliability --plugin deepevalPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.