agent_evaluator 0.9.2__tar.gz → 0.9.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/.gitignore +4 -0
  2. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/PKG-INFO +84 -110
  3. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/README.md +76 -105
  4. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/__init__.py +4 -3
  5. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/gate.py +24 -3
  6. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/trend.py +9 -5
  7. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/layer2.py +5 -1
  8. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/monitor.py +196 -36
  9. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/decorators.py +58 -30
  10. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/helpers/taskresult_helpers.py +116 -44
  11. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/integrations/llm_judge.py +7 -1
  12. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/quick_eval.py +320 -23
  13. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/reporting/comprehensive_report.py +582 -87
  14. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/templates/dashboard2.html.j2 +201 -184
  15. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/templates/slides.html.j2 +79 -51
  16. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/pyproject.toml +12 -9
  17. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/LICENSE +0 -0
  18. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/alerts/__init__.py +0 -0
  19. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/alerts/engine.py +0 -0
  20. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/alerts/handlers.py +0 -0
  21. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/anomaly/__init__.py +0 -0
  22. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/anomaly/detector.py +0 -0
  23. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/__init__.py +0 -0
  24. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/_utils.py +0 -0
  25. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/dataset.py +0 -0
  26. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/main.py +0 -0
  27. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cli/monitor.py +0 -0
  28. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/config.py +0 -0
  29. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/__init__.py +0 -0
  30. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/agent_evaluator.py +0 -0
  31. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/hybrid_monitor.py +0 -0
  32. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/monitor_context.py +0 -0
  33. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/otel/__init__.py +0 -0
  34. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/otel/metrics.py +0 -0
  35. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/otel/provider.py +0 -0
  36. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/__init__.py +0 -0
  37. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/base.py +0 -0
  38. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/conversation.py +0 -0
  39. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/feedback.py +0 -0
  40. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/layer1.py +0 -0
  41. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/core/trackers/security.py +0 -0
  42. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cost/__init__.py +0 -0
  43. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/cost/policy.py +0 -0
  44. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/datasets/__init__.py +0 -0
  45. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/datasets/builder.py +0 -0
  46. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/datasets/korean_rag_dataset_generator.py +0 -0
  47. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/datasets/korean_rag_evaluator.py +0 -0
  48. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/examples/__init__.py +0 -0
  49. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/examples/example_runner.py +0 -0
  50. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/exceptions.py +0 -0
  51. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/helpers/__init__.py +0 -0
  52. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/integrations/__init__.py +0 -0
  53. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/integrations/dspy_integration.py +0 -0
  54. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/integrations/framework_integrations.py +0 -0
  55. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/integrations/metric_adapters.py +0 -0
  56. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/integrations/pydanticai_integration.py +0 -0
  57. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/py.typed +0 -0
  58. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/reporting/__init__.py +0 -0
  59. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/__init__.py +0 -0
  60. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/cache.py +0 -0
  61. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/loader.py +0 -0
  62. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/__init__.py +0 -0
  63. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/_utils.py +0 -0
  64. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/alerts.py +0 -0
  65. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/anomaly.py +0 -0
  66. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/config.py +0 -0
  67. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/conversation.py +0 -0
  68. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/cost.py +0 -0
  69. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/data.py +0 -0
  70. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/export.py +0 -0
  71. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/feedback.py +0 -0
  72. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/golden.py +0 -0
  73. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/stream.py +0 -0
  74. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/transparency.py +0 -0
  75. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/routers/webhook.py +0 -0
  76. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/server.py +0 -0
  77. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/templates/dashboard.html.j2 +0 -0
  78. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/templates/sdk_docs.html.j2 +0 -0
  79. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/serve/watcher.py +0 -0
  80. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/streaming/__init__.py +0 -0
  81. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/streaming/evaluator.py +0 -0
  82. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/streaming/middleware.py +0 -0
  83. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/utils/__init__.py +0 -0
  84. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/utils/dashboard_integration.py +0 -0
  85. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/utils/data_registry.py +0 -0
  86. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/utils/path_helpers.py +0 -0
  87. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/utils/text_similarity.py +0 -0
  88. {agent_evaluator-0.9.2 → agent_evaluator-0.9.4}/agent_evaluator/utils/transparency_manager.py +0 -0
@@ -76,6 +76,10 @@ docs/_build/
76
76
  # Generated evaluation results
77
77
  results/
78
78
 
79
+ # 임시 검증 및 디버그 파일
80
+ resultsch21_trend.json
81
+ Evaluator_Examples/Test.py
82
+
79
83
  # Golden datasets — 생성 파일만 무시, 정적 시나리오 파일은 추적
80
84
  data/golden_datasets/*
81
85
  !data/golden_datasets/agentic_tool_selection.json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-evaluator
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: Production-ready evaluation framework for AI agents — 58 metrics (25 native + 33 Harness Config) across 7 evaluation gates: goal achievement, behavioral integrity, reliability, performance, security, multi-agent coordination, and observability
5
5
  Project-URL: Homepage, https://github.com/bullpeng72/Agent-Evaluator
6
6
  Project-URL: Repository, https://github.com/bullpeng72/Agent-Evaluator
@@ -53,16 +53,18 @@ Requires-Dist: dspy-ai>=2.0.0; extra == 'dspy'
53
53
  Provides-Extra: eval
54
54
  Requires-Dist: datasets<6.0.0,>=4.0.0; extra == 'eval'
55
55
  Requires-Dist: deepeval<4.0.0,>=3.0.0; extra == 'eval'
56
+ Requires-Dist: kiwipiepy>=0.17.0; extra == 'eval'
56
57
  Requires-Dist: langchain-openai<2.0.0,>=1.0.0; extra == 'eval'
57
58
  Requires-Dist: langchain<3.0.0,>=1.0.0; extra == 'eval'
58
59
  Requires-Dist: ragas<2.0.0,>=0.4.0; extra == 'eval'
59
60
  Provides-Extra: examples
60
61
  Requires-Dist: anthropic<1.0.0,>=0.20.0; extra == 'examples'
61
- Requires-Dist: arize-phoenix<14.7.0,>=14.0.0; extra == 'examples'
62
+ Requires-Dist: arize-phoenix>=15.4.0; extra == 'examples'
62
63
  Requires-Dist: datasets<6.0.0,>=4.0.0; extra == 'examples'
63
64
  Requires-Dist: deepeval<4.0.0,>=3.0.0; extra == 'examples'
64
65
  Requires-Dist: fastapi<1.0.0,>=0.110.0; extra == 'examples'
65
66
  Requires-Dist: jinja2<4.0.0,>=3.1.0; extra == 'examples'
67
+ Requires-Dist: kiwipiepy>=0.17.0; extra == 'examples'
66
68
  Requires-Dist: langchain-openai<2.0.0,>=1.0.0; extra == 'examples'
67
69
  Requires-Dist: langchain<3.0.0,>=1.0.0; extra == 'examples'
68
70
  Requires-Dist: openai<3.0.0,>=2.0.0; extra == 'examples'
@@ -77,7 +79,7 @@ Requires-Dist: openpyxl>=3.1.0; extra == 'export'
77
79
  Requires-Dist: pyarrow>=10.0.0; extra == 'export'
78
80
  Provides-Extra: full
79
81
  Requires-Dist: anthropic<1.0.0,>=0.20.0; extra == 'full'
80
- Requires-Dist: arize-phoenix<14.7.0,>=14.0.0; extra == 'full'
82
+ Requires-Dist: arize-phoenix>=15.4.0; extra == 'full'
81
83
  Requires-Dist: autogen-agentchat<1.0.0,>=0.4.0; extra == 'full'
82
84
  Requires-Dist: autogen-core<1.0.0,>=0.4.0; extra == 'full'
83
85
  Requires-Dist: crewai<2.0.0,>=1.0.0; extra == 'full'
@@ -113,7 +115,7 @@ Requires-Dist: openai<3.0.0,>=2.0.0; extra == 'llm'
113
115
  Provides-Extra: mlflow
114
116
  Requires-Dist: mlflow>=2.0.0; extra == 'mlflow'
115
117
  Provides-Extra: otel
116
- Requires-Dist: arize-phoenix<14.7.0,>=14.0.0; extra == 'otel'
118
+ Requires-Dist: arize-phoenix>=15.4.0; extra == 'otel'
117
119
  Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.20.0; extra == 'otel'
118
120
  Requires-Dist: opentelemetry-sdk<2.0.0,>=1.20.0; extra == 'otel'
119
121
  Provides-Extra: pdf
@@ -122,9 +124,10 @@ Provides-Extra: pydanticai
122
124
  Requires-Dist: pydantic-ai<2.0.0,>=1.0.0; extra == 'pydanticai'
123
125
  Provides-Extra: sdk
124
126
  Requires-Dist: anthropic<1.0.0,>=0.20.0; extra == 'sdk'
125
- Requires-Dist: arize-phoenix<14.7.0,>=14.0.0; extra == 'sdk'
127
+ Requires-Dist: arize-phoenix>=15.4.0; extra == 'sdk'
126
128
  Requires-Dist: fastapi<1.0.0,>=0.110.0; extra == 'sdk'
127
129
  Requires-Dist: jinja2<4.0.0,>=3.1.0; extra == 'sdk'
130
+ Requires-Dist: kiwipiepy>=0.17.0; extra == 'sdk'
128
131
  Requires-Dist: openai<3.0.0,>=2.0.0; extra == 'sdk'
129
132
  Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.20.0; extra == 'sdk'
130
133
  Requires-Dist: opentelemetry-sdk<2.0.0,>=1.20.0; extra == 'sdk'
@@ -147,7 +150,7 @@ Description-Content-Type: text/markdown
147
150
  [![PyPI version](https://img.shields.io/pypi/v/agent-evaluator.svg)](https://pypi.org/project/agent-evaluator/)
148
151
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)
149
152
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
150
- [![Version](https://img.shields.io/badge/version-0.9.2-green.svg)](https://github.com/bullpeng72/Agent-Evaluator)
153
+ [![Version](https://img.shields.io/badge/version-0.9.4-green.svg)](https://github.com/bullpeng72/Agent-Evaluator)
151
154
 
152
155
  **Harness Engineering evaluation SDK that judges AI agent deployment readiness through 7 Gates**
153
156
 
@@ -193,7 +196,7 @@ monitor.save_to_file("eval") # eval.json + eval.html — includes Gate A–G j
193
196
  |------|------|-------------------|----------------------|
194
197
  | **A** 🟢 | **Goal Achievement** | Instruction compliance · goal alignment · plan consistency · context retention | InstructionConfig · GoalAlignmentConfig · PlanConfig · SubtaskConfig · ContextRetentionConfig · KnowledgeRetentionConfig **(6)** |
195
198
  | **B** 🔵 | **Behavioral Integrity** | Loop detection · scope deviation · tool safety · state consistency · deadlock detection | LoopDetectionConfig · ScopeConfig · ToolParameterSafetyConfig · ContextWindowConfig · StateConsistencyConfig · DeadlockConfig **(6)** |
196
- | **C** 🟡 | **Reliability** | Reproducibility · error recovery rate · quality floor · idempotency | ReproducibilityConfig · FaultToleranceConfig · GracefulDegradationConfig · RetryConsistencyConfig · IdempotencyConfig **(5)** |
199
+ | **C** 🟡 | **Reliability** | Reproducibility · error recovery rate · hallucination faithfulness · quality floor · idempotency | ReproducibilityConfig · FaultToleranceConfig · GracefulDegradationConfig · RetryConsistencyConfig · IdempotencyConfig **(5)** |
197
200
  | **D** 🔵 | **Performance Contract** | SLA compliance · token efficiency · TTFT variability · cost predictability | SLAConfig · EfficiencyConfig · ResourceBudgetConfig · TTFTVariabilityConfig · CostPredictabilityConfig **(5)** |
198
201
  | **E** 🔴 | **Security Boundary** | Threat severity · compliance · threat response behavior | ThreatSeverityConfig · ComplianceConfig · ThreatResponseConfig **(3)** |
199
202
  | **F** 🟣 | **Multi-Agent Coordination** | Inter-agent consensus · information propagation accuracy · role compliance · conflict resolution | ConsensusConfig · PropagationConfig · AgentRoleConfig · ConflictResolutionConfig **(4)** |
@@ -272,11 +275,17 @@ Caller
272
275
  ## Installation
273
276
 
274
277
  ```bash
275
- # Base install — includes LLMJudge · dashboard · OTEL monitoring · PDF (sdk built-in)
278
+ # Base install — LLMJudge engine (openai + anthropic) · core metrics only
276
279
  pip install agent-evaluator
277
280
 
281
+ # ── SDK features (dashboard · OTEL monitoring · PDF) ────────────────────────
282
+ pip install "agent-evaluator[serve]" # agent-eval dashboard (FastAPI + uvicorn)
283
+ pip install "agent-evaluator[otel]" # agent-eval monitor (Phoenix + OTEL)
284
+ pip install "agent-evaluator[pdf]" # Korean RAG PDF processing
285
+ pip install "agent-evaluator[sdk]" # serve + otel + pdf bundle (recommended)
286
+
278
287
  # ── Running Evaluator_Examples/ ─────────────────────────────────────────────
279
- pip install "agent-evaluator[examples]" # all examples runnable (base + eval)
288
+ pip install "agent-evaluator[examples]" # all examples runnable (sdk + eval)
280
289
 
281
290
  # ── Framework extensions (when your agent code needs them) ──────────────────
282
291
  # agent-evaluator itself works fully without these packages (duck typing)
@@ -289,6 +298,10 @@ pip install "agent-evaluator[autogen]" # AutoGen ≥0.3 (heavy)
289
298
 
290
299
  # ── Convenience bundles ──────────────────────────────────────────────────────
291
300
  pip install "agent-evaluator[full]" # All (⚠️ includes crewai/autogen, 10+ min)
301
+
302
+ # ── pipx global install ──────────────────────────────────────────────────────
303
+ # zsh requires quotes around extras
304
+ pipx install 'agent-evaluator[sdk]' # dashboard + monitor + PDF all available
292
305
  ```
293
306
 
294
307
  ---
@@ -1202,17 +1215,17 @@ def rag_agent(question, context="", ground_truth=""): ...
1202
1215
 
1203
1216
  ### Harness Engineering — 33 Configs, 7 Gate Groups (A–G)
1204
1217
 
1205
- Pass Harness Configs as `@agent_eval` decorator parameters and `PerformanceMonitor` auto-aggregates them. Visualize group-level pass/warn/fail in the dashboard **Harness Gate** tab.
1218
+ Pass Harness Configs as `@agent_eval` decorator parameters and `PerformanceMonitor` auto-aggregates them. Visualize gate-level pass/warn/fail in the dashboard **Harness Gate** tab.
1206
1219
 
1207
1220
  ```python
1208
1221
  from agent_evaluator import (
1209
- InstructionConfig, GoalAlignmentConfig, PlanConfig, # Group A
1210
- LoopDetectionConfig, StateConsistencyConfig, # Group B
1211
- FaultToleranceConfig, GracefulDegradationConfig, # Group C
1212
- SLAConfig, EfficiencyConfig, # Group D
1213
- ThreatSeverityConfig, ComplianceConfig, # Group E
1214
- ConsensusConfig, AgentRoleConfig, # Group F
1215
- ExplainabilityConfig, ObservabilityConfig, # Group G
1222
+ InstructionConfig, GoalAlignmentConfig, PlanConfig, # Gate A
1223
+ LoopDetectionConfig, StateConsistencyConfig, # Gate B
1224
+ FaultToleranceConfig, GracefulDegradationConfig, # Gate C
1225
+ SLAConfig, EfficiencyConfig, # Gate D
1226
+ ThreatSeverityConfig, ComplianceConfig, # Gate E
1227
+ ConsensusConfig, AgentRoleConfig, # Gate F
1228
+ ExplainabilityConfig, ObservabilityConfig, # Gate G
1216
1229
  )
1217
1230
 
1218
1231
  @agent_eval(monitor, task_type="qa",
@@ -1410,7 +1423,7 @@ eval.save() # results/quickeval.json + .html
1410
1423
  ```
1411
1424
 
1412
1425
  ```bash
1413
- # Dashboard is included in base install
1426
+ # Requires [serve] extra: pip install "agent-evaluator[serve]" or "agent-evaluator[sdk]"
1414
1427
  agent-eval dashboard results/ --watch # auto-refresh on file change
1415
1428
  ```
1416
1429
 
@@ -1425,7 +1438,7 @@ agent-eval dashboard results/ --watch # auto-refresh on file change
1425
1438
  `setup_otel()` must be called **before creating PerformanceMonitor**. All subsequent `record_task()` calls will automatically emit OTLP spans.
1426
1439
 
1427
1440
  ```bash
1428
- # Terminal 1 — start Phoenix server (OTEL is included in base install)
1441
+ # Requires [otel] extra: pip install "agent-evaluator[otel]" or "agent-evaluator[sdk]"
1429
1442
  agent-eval monitor # http://localhost:6006
1430
1443
  ```
1431
1444
 
@@ -1581,13 +1594,13 @@ agent-evaluator/
1581
1594
  │ │ │ ├── monitor.py # PerformanceMonitor (orchestrator)
1582
1595
  │ │ │ ├── conversation.py # ConversationSession · ConversationMetrics
1583
1596
  │ │ │ └── feedback.py # ImplicitFeedbackTracker
1584
- │ │ ├── otel/ # OpenTelemetry integration (included in base install)
1597
+ │ │ ├── otel/ # OpenTelemetry integration ([otel] extra)
1585
1598
  │ │ ├── hybrid_monitor.py # HybridPerformanceMonitor
1586
1599
  │ │ └── monitor_context.py # evaluation_session · async_evaluation_session
1587
1600
  │ ├── integrations/
1588
1601
  │ │ ├── llm_judge.py # LLMJudge
1589
1602
  │ │ └── metric_adapters.py # DeepEval · Ragas adapters
1590
- │ ├── serve/ # FastAPI dashboard (included in base install)
1603
+ │ ├── serve/ # FastAPI dashboard ([serve] extra)
1591
1604
  │ ├── cli/ # agent-eval CLI
1592
1605
  │ ├── alerts/ # AlertEngine · SimpleTaskAlertRule
1593
1606
  │ ├── anomaly/ # AnomalyDetector
@@ -1595,7 +1608,7 @@ agent-evaluator/
1595
1608
  │ └── datasets/ # GoldenSetBuilder
1596
1609
  │
1597
1610
  ├── Evaluator_Examples/ # 26 example files (ch01~ch26, legacy 11 preserved in .deprecated/)
1598
- ├── tests/ # 2,465+ test functions, 51 files
1611
+ ├── tests/ # 2,465+ test functions, 53 files
1599
1612
  └── pyproject.toml
1600
1613
  ```
1601
1614
 
@@ -1610,29 +1623,37 @@ agent-evaluator/
1610
1623
  | `numpy` | ≥1.20.0, <3.0.0 | Numerical computation |
1611
1624
  | `pandas` | ≥1.3.0, <4.0.0 | Metric aggregation |
1612
1625
  | `python-dotenv` | ≥0.19.0, <2.0.0 | Environment variable management |
1613
- | `openai` | ≥1.0.0, <3.0.0 | LLMJudge engine |
1626
+ | `openai` | ≥2.0.0, <3.0.0 | LLMJudge engine |
1614
1627
  | `anthropic` | ≥0.20.0, <1.0.0 | LLMJudge engine |
1615
- | `fastapi` | ≥0.110.0, <1.0.0 | Web dashboard |
1616
- | `uvicorn[standard]` | ≥0.29.0, <1.0.0 | Web dashboard |
1617
- | `jinja2` | ≥3.1.0, <4.0.0 | Web dashboard |
1618
- | `python-multipart` | ≥0.0.9, <1.0.0 | Web dashboard |
1619
- | `opentelemetry-sdk` | ≥1.20.0, <2.0.0 | OTEL monitoring |
1620
- | `opentelemetry-exporter-otlp-proto-http` | ≥1.20.0, <2.0.0 | OTEL monitoring |
1621
- | `arize-phoenix` | ≥7.0.0 | Phoenix real-time monitoring |
1622
- | `pdfplumber` | ≥0.10.0, <1.0.0 | Korean RAG PDF processing |
1628
+
1629
+ **SDK extras** (`pip install "agent-evaluator[sdk]"` — recommended for full CLI use)
1630
+
1631
+ | Extra | Package | Version Range | Purpose |
1632
+ |-------|---------|--------------|---------|
1633
+ | `[serve]` | `fastapi` | ≥0.110.0, <1.0.0 | `agent-eval dashboard` |
1634
+ | `[serve]` | `uvicorn[standard]` | ≥0.29.0, <1.0.0 | `agent-eval dashboard` |
1635
+ | `[serve]` | `jinja2` | ≥3.1.0, <4.0.0 | `agent-eval dashboard` |
1636
+ | `[serve]` | `python-multipart` | ≥0.0.9, <1.0.0 | `agent-eval dashboard` |
1637
+ | `[otel]` | `opentelemetry-sdk` | ≥1.20.0, <2.0.0 | `agent-eval monitor` |
1638
+ | `[otel]` | `opentelemetry-exporter-otlp-proto-http` | ≥1.20.0, <2.0.0 | `agent-eval monitor` |
1639
+ | `[otel]` | `arize-phoenix` | ≥15.4.0 | Phoenix real-time monitoring² |
1640
+ | `[pdf]` | `pdfplumber` | ≥0.10.0, <1.0.0 | Korean RAG PDF processing |
1641
+ | **`[sdk]`** | serve + otel + pdf | — | **All CLI features (recommended)** |
1642
+
1643
+ ² `arize-phoenix` pinned to `>=15.4.0` — v15.4.0 removed the pydantic-ai metapackage dependency (170+ packages).
1623
1644
 
1624
1645
  **Optional extras** (see [## Installation](#installation) for install commands)
1625
1646
 
1626
1647
  | Extra | Key Packages | Install Time | Notes |
1627
1648
  |-------|-------------|-------------|-------|
1628
- | `[examples]` | base + eval | heavy | Examples 01–06: base only · 07: eval additionally required |
1649
+ | `[examples]` | sdk + eval | heavy | Examples 01–06: base only · 07: eval additionally required |
1629
1650
  | `[eval]` | deepeval ≥3.0, <4.0 · ragas ≥0.4, <2.0 · datasets ≥4.0, <6.0 | heavy | DeepEval/Ragas external evaluation |
1630
1651
  | `[langchain]` | langchain ≥1.0, langgraph ≥1.0 | medium | For user LangChain agent code¹ |
1631
1652
  | `[dspy]` | dspy-ai ≥2.0 | medium | For user DSPy agent code¹ |
1632
1653
  | `[pydanticai]` | pydantic-ai ≥1.0, <2.0 | fast | For user PydanticAI agent code¹ |
1633
1654
  | `[crewai]` | crewai ≥1.0, <2.0 | heavy (isolated) | For user CrewAI agent code¹ |
1634
1655
  | `[autogen]` | pyautogen ≥0.3, autogen-agentchat ≥0.4 | heavy (isolated) | For user AutoGen agent code¹ |
1635
- | `[full]` | base + eval + langchain + dspy + pydanticai + crewai + autogen | very heavy | ⚠️ 10+ min, for full CI compatibility testing |
1656
+ | `[full]` | sdk + eval + langchain + dspy + pydanticai + crewai + autogen | very heavy | ⚠️ 10+ min, for full CI compatibility testing |
1636
1657
  | `[dev]` | pytest · pytest-cov · ruff · mypy · build · twine | fast | Development environment |
1637
1658
 
1638
1659
  ¹ agent-evaluator itself works fully without these packages (duck typing). Install only when your agent code directly imports the framework.
@@ -1656,96 +1677,49 @@ mypy agent_evaluator/ # type check
1656
1677
 
1657
1678
  ## Changelog
1658
1679
 
1659
- ### v0.9.2 (2026-05-15) — GPT-5 Standardization · Token Parameter Modernization
1660
-
1661
- - ✨ **GPT-5 Standardization**: Set `gpt-5-nano` as the default OpenAI model project-wide, including library config and all 26 examples.
1662
- - 🔧 **Modern Token Parameters**: Implemented `max_completion_tokens` for OpenAI API calls (GPT-5 compatible) while maintaining `max_tokens` for Anthropic.
1663
- - 📝 **Example Modernization**: Updated all 26 `Evaluator_Examples/` with OpenAI SDK snippets and latest model IDs (`gpt-5-nano`).
1664
- - 🔧 **Pricing Update**: Refined cost estimation for `gpt-5-nano` ($0.05/$0.40 per 1M tokens) in `llm_judge.py` and documentation.
1665
- - 🔧 **Environment Templates**: Modernized `.env.example` to accurately map all 26 book chapter examples to required variables.
1666
-
1667
- ### v0.9.1 (2026-04-27) — Dependency restructure · pip resolver optimization
1668
-
1669
- - 🔧 `pyproject.toml` dependency restructure: reduced base install to 5 core packages, split fastapi · otel · pdfplumber into `[serve]` · `[otel]` · `[pdf]` · `[sdk]` extras
1670
- - 🔧 `arize-phoenix>=14.0.0,<14.7.0` upper bound fixed — prevents pydantic-ai metapackage (170+ packages) from auto-installing from 14.7.0+, `[sdk]` package count 170→90
1671
- - 🔧 `openai>=2.0.0,<3.0.0`, `langchain-openai>=1.0.0,<2.0.0`, `langchain-anthropic>=1.0.0,<2.0.0` range narrowed — minimizes pip resolver search space (openai candidates 277→37)
1672
- - 📝 Updated Docs example file references (21→26, ch01/ch02 filename corrections)
1673
-
1674
- ### v0.8.5 (2026-04-23) — SDK bug fixes
1675
-
1676
- - Fixed silent `TypeError` suppression bug for dict-type `tokens_used` in `eval_efficiency()`
1677
- - Fixed `EfficiencyConfig` `cost_unit`/`target_cost_per_completion` design error (USD→tokens scale)
1678
- - `CostPredictabilityConfig` — isolated CV by separating `task_type` per agent, Gate D 0.640→0.876
1679
- - `ch10_group_g.py` — fixed `EvalMetadata(extra={...})` injection path, Gate G warn→pass
1680
+ ### v0.9.4 (2026-05-28) — Parallel Execution Bug Fixes · macOS NFD Filename Fix
1680
1681
 
1681
- ### v0.8.4 (2026-04-21) — Example files fully reorganized into chapter-based structure
1682
+ - 🐛 `@batch_eval(concurrency=N)` sync path: positional argument calls silently returned empty strings — added `questions_arg in kwargs` guard to match async path behavior (falls back to sequential).
1683
+ - 🐛 `@batch_eval(concurrency=N)` async path: `item_timeout` parameter was ignored; per-item `asyncio.wait_for` now uses `item_timeout` with fallback to batch `timeout`.
1684
+ - 🐛 `@batch_eval(concurrency=N)` async path: `on_item_error` callback was never invoked on item failure — now called consistently with sync path.
1685
+ - 🐛 `@batch_eval(concurrency=N)` sync + async: `contexts_arg` and `expected_tools_arg` lists were passed whole to every worker instead of being sliced to `[i]` — each parallel item now receives exactly its own context and expected tools.
1686
+ - 🐛 `build_pdf_chapters.py` glob pattern: macOS APFS stores filenames in NFD; `rglob(f"*{arg}*.md")` with NFC pattern failed to match Korean filenames (e.g. `서문`) — pattern now normalized to NFD before glob.
1682
1687
 
1683
- - Example files fully reorganized from 11 → 17 `chXX_topic.py` chapter-based naming
1684
- - Added missing trackers to `ch05`, `ch07`, `ch10`, `ch02` (WorkflowExecution · Latency · TokenEconomy · AnomalyDetector · CostTracker)
1685
- - Synchronized Phoenix `service_name` and result filenames to chapter numbers
1686
- - Fixed missing `create_taskresult` import bug in `ch05_group_b.py`
1688
+ ### v0.9.3 (2026-05-23) — Gate Attribution Correction · HTML Report Score Breakdown · harness_groups Serialization Fix
1687
1689
 
1688
- ### v0.8.3 (2026-04-21) — LLMJudge stability · Gate improvements · Security tracker expansion
1690
+ - 🐛 `AccuracyEvaluator` (`overall_accuracy / 100`) now correctly contributes to Gate A `_a_vals` — previously omitted despite CLAUDE.md indicating this behavior.
1691
+ - 🐛 `HallucinationDetector` now contributes to Gate C `_rel_vals` (faithfulness, `1 − hall_rate`) in addition to Gate G `_obs_vals`. Previously Gate G contribution was silently broken due to a non-existent `get_hallucination_stats()` call.
1692
+ - 🐛 HTML report score breakdown (`_build_score_breakdown`) now shows **Accuracy Score** row in Gate A and **Hallucination Faithfulness** row in Gate C — previously these score components were invisible in the breakdown widget.
1693
+ - 🐛 Gate G breakdown: `hallucination_rate` percentage display corrected from "0.3%" → "30.0%" (0-1 scale normalized to 100).
1694
+ - 🐛 `generate_comprehensive_html_report()` hardcoded flags (`has_rag`, `has_conversation`) and Gate E tracker attribute errors fixed — live-monitor HTML and dashboard export HTML now render identically.
1695
+ - 🐛 `_append_report_data()` now serializes `extra_metrics.harness_groups` to JSON, preventing the loader from using an approximate fallback formula (Gate A = (TCR+Accuracy)/2) for dashboard exports.
1689
1696
 
1690
- - Auto-disable LLMJudge on consecutive errors (3 consecutive failures → restored via `reset_errors()`)
1691
- - Store `None` instead of `0` when `faithfulness` is missing — prevents score pollution
1692
- - Introduced `AGENT_EVALUATOR_JUDGE_PROVIDER` env var (`auto` / `openai` / `anthropic`)
1693
- - Added `llm_blend_weight` to `GoalAlignmentConfig` · `PlanConfig` (LLM-rule blend ratio, default 0.5)
1694
- - Added `LLMJudge.ajudge()` async method
1695
- - Fixed `LLMJudgeConfig.sample_rate` decorator propagation bug
1696
- - `agent-eval gate --min-gate-score / --group-weights` — weighted composite Gate A–G score judgment
1697
- - `agent-eval trend` cost trend analysis (`total_cost`, `--fail-on-regression` integration)
1698
- - `OutputLeakageDetector(excluded_unix_paths=[...])` — customizable system path exclusion list
1699
- - Added `sample_rate` parameter to security trackers (high-traffic performance optimization)
1700
- - Added `deadlock_by_type` classification to Group B · `insufficient_data_warnings` to Gate D
1701
- - `LLMJudge(escalation_model=..., escalation_threshold=2.5)` — multi-model auto-escalation
1702
-
1703
- ### v0.8.2 (2026-04-17) — Harness Config 33 unified format · Dashboard UI improvements
1704
-
1705
- - Unified icon · formula · threshold badge format for all 33 Harness Config cards; added `08_harness_eval.py` example
1706
- - Dashboard Nav reorganized into 3-tier hierarchy; added Gate correlation heatmap (7×7 Pearson) · failure cascade tracking
1707
- - HTML report fully reorganized around Gate A–G; added 16 Gate columns to CSV export
1708
- - Group classification fix: StateConsistencyConfig · DeadlockConfig moved Group F→B
1709
- - Added 2 test files (52 files, 2,465+)
1710
-
1711
- ### v0.8.1 (2026-04-14) — Decorator parameter restructuring
1712
-
1713
- - Introduced 3 structs: `RetryConfig` · `LLMJudgeConfig` · `SecurityConfig`; removed individual parameters
1714
- - Unified naming: `enable_hallucination` → `enable_hallucination_detection`
1715
- - Added 548 tests; restructured 72→49 files
1716
-
1717
- ### v0.8.0 (2026-04-13) — Accuracy metrics overhaul
1718
-
1719
- - Replaced Token Overlap with F1 (harmonic mean); unified Char Similarity to Levenshtein
1720
- - task_type-aware completion_score: code_generation AST parsing, tool_use returns 0.6 if unused
1721
-
1722
- ### v0.7.9 (2026-04-13) — RunTrendAnalyzer · arize-phoenix compatibility fix
1723
-
1724
- - `RunTrendAnalyzer` + `agent-eval trend` — trend analysis · `--fail-on-regression` CI/CD integration
1725
- - Fixed arize-phoenix version constraint conflict
1726
-
1727
- ### v0.7.8 (2026-04-12) — SDK built-in by default
1697
+ ### v0.9.2 (2026-05-15) — GPT-5 Standardization · Token Parameter Modernization
1728
1698
 
1729
- - `pip install agent-evaluator` alone enables LLMJudge · dashboard · OTEL
1699
+ - ✨ `gpt-5-nano` adopted as default OpenAI model across library config and all 26 examples; `max_completion_tokens` implemented for GPT-5 API compatibility.
1700
+ - 🔧 Pricing updated for `gpt-5-nano` ($0.05/$0.40 per 1M tokens); `.env.example` modernized with per-chapter variable mappings for all 26 book chapters.
1730
1701
 
1731
- ### v0.7.7 (2026-04-11) — Decorator bug fixes · thread safety
1702
+ ### v0.9.1 (2026-04-27) — Dependency Restructure · pip Resolver Optimization
1732
1703
 
1733
- - Fixed `agent_eval` preset parameter not applied bug; added `threading.Lock` to 5 Layer 2 trackers
1704
+ - 🔧 Base install reduced to 5 core packages; `[serve]` · `[otel]` · `[pdf]` · `[sdk]` extras split — `[sdk]` transitive package count reduced from 170 to 90.
1705
+ - 🔧 `arize-phoenix<14.7.0` upper bound pinned to prevent pydantic-ai metapackage pull (lifted in v0.9.3 — resolved in arize-phoenix v15.4.0); openai/langchain ranges narrowed for faster pip resolution (openai candidates 277→37).
1734
1706
 
1735
- ### v0.7.6 (2026-04-10) — LLMJudge G-Eval/Ragas replacement
1707
+ ### v0.8.x (2026-04-13~23) — Harness Config Unification · Decorator Refactor · Stability
1736
1708
 
1737
- - `judge_criteria` G-Eval custom scoring; auto-adds `faithfulness` when `rag_mode=True`
1709
+ - ✨ 33 Harness Config unified card format; Dashboard reorganized into 3-tier hierarchy with Gate correlation heatmap (7×7 Pearson) and failure cascade tracking; 16 Gate columns added to CSV export.
1710
+ - 🔧 `RetryConfig` · `LLMJudgeConfig` · `SecurityConfig` structs introduced; `AGENT_EVALUATOR_JUDGE_PROVIDER` env var added; `LLMJudge` multi-model escalation and auto-disable on consecutive errors.
1711
+ - 🐛 Accuracy F1 overhaul (Token Overlap → harmonic mean); `EfficiencyConfig` / `CostPredictabilityConfig` calculation bugs fixed; example files reorganized into 26 chapter-based `chXX_*.py` structure.
1738
1712
 
1739
- ### v0.7.0–v0.7.5 (2026-04-01~09) — OTEL/Phoenix · 3 decorators · QuickEval
1713
+ ### v0.7.x (2026-04-01~13) — 3 Decorators · 21 Frameworks · OTEL/Phoenix
1740
1714
 
1741
- - `agent-eval monitor` CLI · Arize Phoenix real-time monitoring
1742
- - Completed 3 decorators (`agent_eval` · `batch_eval` · `conversation_eval`) · `QuickEval` facade
1743
- - 21 framework adapters · critical security tracker bug fixes (CRITICAL)
1715
+ - ✨ 3 decorator types completed (`@agent_eval` · `@batch_eval` · `@conversation_eval`) with `QuickEval` one-stop facade; 21 framework adapters (LangChain · CrewAI · AutoGen · OpenAI · Anthropic · etc.).
1716
+ - ✨ `agent-eval monitor` — Arize Phoenix OTEL real-time monitoring; `agent-eval trend` — regression detection with `--fail-on-regression` CI/CD integration.
1717
+ - 🐛 Critical security tracker bug fixes; LLMJudge G-Eval custom criteria and `faithfulness` scoring added.
1744
1718
 
1745
- ### v0.6.x (2026-03-21~04-01) — SDK stabilization
1719
+ ### v0.6.x (2026-03-21~04-01) — SDK Stabilization
1746
1720
 
1747
- - LangChain/LangGraph/CrewAI/AutoGen · FastAPI dashboard · LLMJudge · ConversationSession
1721
+ - LangChain · LangGraph · CrewAI · AutoGen integration · FastAPI dashboard · LLMJudge · ConversationSession
1748
1722
 
1749
- ### v0.2.x–v0.5.x — Initial implementation
1723
+ ### v0.2.x–v0.5.x — Initial Implementation
1750
1724
 
1751
1725
  - 25 Layer 1/2/3 trackers · initial `evaluation_session` implementation