FileMetadata Class — anthropic-sdk-python Architecture
Architecture documentation for the FileMetadata class in file_metadata.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD d5b3e2b7_9e6b_8876_bc74_3b93a9ea11e5["FileMetadata"] 17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"] d5b3e2b7_9e6b_8876_bc74_3b93a9ea11e5 -->|extends| 17ce5647_6f06_0676_a4a5_e378a3f57cb1 d4406c5a_97ec_09aa_4c0e_80b10093a1f3["file_metadata.py"] d5b3e2b7_9e6b_8876_bc74_3b93a9ea11e5 -->|defined in| d4406c5a_97ec_09aa_4c0e_80b10093a1f3
Relationship Graph
Source Code
src/anthropic/types/beta/file_metadata.py lines 12–38
class FileMetadata(BaseModel):
id: str
"""Unique object identifier.
The format and length of IDs may change over time.
"""
created_at: datetime
"""RFC 3339 datetime string representing when the file was created."""
filename: str
"""Original filename of the uploaded file."""
mime_type: str
"""MIME type of the file."""
size_bytes: int
"""Size of the file in bytes."""
type: Literal["file"]
"""Object type.
For files, this is always `"file"`.
"""
downloadable: Optional[bool] = None
"""Whether the file can be downloaded."""
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the FileMetadata class?
FileMetadata is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/beta/file_metadata.py.
Where is FileMetadata defined?
FileMetadata is defined in src/anthropic/types/beta/file_metadata.py at line 12.
What does FileMetadata extend?
FileMetadata extends BaseModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free