We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2c757 commit 359ef08Copy full SHA for 359ef08
pydantic_ai_slim/pydantic_ai/messages.py
@@ -423,7 +423,15 @@ def format(self) -> str:
423
__repr__ = _utils.dataclasses_no_defaults_repr
424
425
426
-UserContent: TypeAlias = 'str | ImageUrl | AudioUrl | DocumentUrl | VideoUrl | BinaryContent'
+@dataclass(repr=False)
427
+class UploadedFile:
428
+ """File uploaded to the LLM provider."""
429
+
430
+ file: Any
431
+ """A provider-specific file object, e.g. a file ID or a file URL."""
432
433
434
+UserContent: TypeAlias = 'str | ImageUrl | AudioUrl | DocumentUrl | VideoUrl | BinaryContent | UploadedFile'
435
436
437
@dataclass(repr=False)
0 commit comments