Skip to content

Commit b6fa8e7

Browse files
authored
BREAKING CHANGE: Remove data from FinalResult (#2443)
1 parent d80ed96 commit b6fa8e7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Pydantic AI is still pre-version 1, so breaking changes will occur, however:
1616

1717
See [#2440](https://github.com/pydantic/pydantic-ai/pull/2440) - The `next` method was removed from the `Graph` class. Use `async with graph.iter(...) as run: run.next()` instead.
1818

19+
See [#2443](https://github.com/pydantic/pydantic-ai/pull/2443) - The `data` property was removed from the `FinalResult` class. Use `output` instead.
20+
1921
### v0.5.0 (2025-08-04)
2022

2123
See [#2388](https://github.com/pydantic/pydantic-ai/pull/2388) - The `source` field of an `EvaluationResult` is now of type `EvaluatorSpec` rather than the actual source `Evaluator` instance, to help with serialization/deserialization.

pydantic_ai_slim/pydantic_ai/result.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -507,11 +507,6 @@ class FinalResult(Generic[OutputDataT]):
507507
tool_call_id: str | None = None
508508
"""ID of the tool call that produced the final output; `None` if the output came from unstructured text content."""
509509

510-
@property
511-
@deprecated('`data` is deprecated, use `output` instead.')
512-
def data(self) -> OutputDataT:
513-
return self.output
514-
515510
__repr__ = _utils.dataclasses_no_defaults_repr
516511

517512

0 commit comments

Comments
 (0)