pydantic-evals 0.4.5__tar.gz → 0.4.6__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.

Potentially problematic release.


This version of pydantic-evals might be problematic. Click here for more details.

Files changed (24) hide show
  1. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/.gitignore +0 -1
  2. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/PKG-INFO +2 -2
  3. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/dataset.py +7 -3
  4. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/LICENSE +0 -0
  5. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/README.md +0 -0
  6. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/__init__.py +0 -0
  7. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/_utils.py +0 -0
  8. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/__init__.py +0 -0
  9. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/_run_evaluator.py +0 -0
  10. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/_spec.py +0 -0
  11. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/common.py +0 -0
  12. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/context.py +0 -0
  13. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/evaluator.py +0 -0
  14. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/evaluators/llm_as_a_judge.py +0 -0
  15. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/generation.py +0 -0
  16. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/otel/__init__.py +0 -0
  17. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/otel/_context_in_memory_span_exporter.py +0 -0
  18. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/otel/_context_subtree.py +0 -0
  19. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/otel/_errors.py +0 -0
  20. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/otel/span_tree.py +0 -0
  21. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/py.typed +0 -0
  22. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/reporting/__init__.py +0 -0
  23. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pydantic_evals/reporting/render_numbers.py +0 -0
  24. {pydantic_evals-0.4.5 → pydantic_evals-0.4.6}/pyproject.toml +0 -0
@@ -15,7 +15,6 @@ examples/pydantic_ai_examples/.chat_app_messages.sqlite
15
15
  .vscode/
16
16
  /question_graph_history.json
17
17
  /docs-site/.wrangler/
18
- /CLAUDE.md
19
18
  node_modules/
20
19
  **.idea/
21
20
  .coverage*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-evals
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: Framework for evaluating stochastic code execution, especially code making use of LLMs
5
5
  Project-URL: Homepage, https://ai.pydantic.dev/evals
6
6
  Project-URL: Source, https://github.com/pydantic/pydantic-ai
@@ -32,7 +32,7 @@ Requires-Python: >=3.9
32
32
  Requires-Dist: anyio>=0
33
33
  Requires-Dist: eval-type-backport>=0; python_version < '3.11'
34
34
  Requires-Dist: logfire-api>=1.2.0
35
- Requires-Dist: pydantic-ai-slim==0.4.5
35
+ Requires-Dist: pydantic-ai-slim==0.4.6
36
36
  Requires-Dist: pydantic>=2.10
37
37
  Requires-Dist: pyyaml>=6.0.2
38
38
  Requires-Dist: rich>=13.9.4
@@ -43,7 +43,7 @@ from .evaluators.common import DEFAULT_EVALUATORS
43
43
  from .evaluators.context import EvaluatorContext
44
44
  from .otel import SpanTree
45
45
  from .otel._context_subtree import context_subtree
46
- from .reporting import EvaluationReport, ReportCase
46
+ from .reporting import EvaluationReport, ReportCase, ReportCaseAggregate
47
47
 
48
48
  if sys.version_info < (3, 11):
49
49
  from exceptiongroup import ExceptionGroup # pragma: lax no cover
@@ -83,6 +83,10 @@ DEFAULT_SCHEMA_PATH_TEMPLATE = './{stem}_schema.json'
83
83
  _YAML_SCHEMA_LINE_PREFIX = '# yaml-language-server: $schema='
84
84
 
85
85
 
86
+ _REPORT_CASES_ADAPTER = TypeAdapter(list[ReportCase])
87
+ _REPORT_CASE_AGGREGATE_ADAPTER = TypeAdapter(ReportCaseAggregate)
88
+
89
+
86
90
  class _CaseModel(BaseModel, Generic[InputsT, OutputT, MetadataT], extra='forbid'):
87
91
  """Internal model for a case, used for serialization/deserialization."""
88
92
 
@@ -303,9 +307,9 @@ class Dataset(BaseModel, Generic[InputsT, OutputT, MetadataT], extra='forbid', a
303
307
  ),
304
308
  )
305
309
  # TODO(DavidM): This attribute will be too big in general; remove it once we can use child spans in details panel:
306
- eval_span.set_attribute('cases', report.cases)
310
+ eval_span.set_attribute('cases', _REPORT_CASES_ADAPTER.dump_python(report.cases))
307
311
  # TODO(DavidM): Remove this 'averages' attribute once we compute it in the details panel
308
- eval_span.set_attribute('averages', report.averages())
312
+ eval_span.set_attribute('averages', _REPORT_CASE_AGGREGATE_ADAPTER.dump_python(report.averages()))
309
313
  return report
310
314
 
311
315
  def evaluate_sync(
File without changes
File without changes