File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
pydantic_ai_slim/pydantic_ai Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,18 @@ def format(self) -> str:
423423 __repr__ = _utils .dataclasses_no_defaults_repr
424424
425425
426- UserContent : TypeAlias = 'str | ImageUrl | AudioUrl | DocumentUrl | VideoUrl | BinaryContent'
426+ @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+ kind : Literal ['uploaded-file' ] = 'uploaded-file'
434+ """Type identifier, this is available on all parts as a discriminator."""
435+
436+
437+ UserContent : TypeAlias = 'str | ImageUrl | AudioUrl | DocumentUrl | VideoUrl | BinaryContent | UploadedFile'
427438
428439
429440@dataclass (repr = False )
You can’t perform that action at this time.
0 commit comments