src/anthropic/types/web_fetch_block.py
raw| 1 | from typing import Optional |
| 2 | from typing_extensions import Literal |
| 3 | |
| 4 | from .._models import BaseModel |
| 5 | from .document_block import DocumentBlock |
| 6 | |
| 7 | __all__ = ["WebFetchBlock"] |
| 8 | |
| 9 | |
| 10 | class WebFetchBlock(BaseModel): |
| 11 | content: DocumentBlock |
| 12 | |
| 13 | retrieved_at: Optional[str] = None |
| 14 | """ISO 8601 timestamp when the content was retrieved""" |
| 15 | |
| 16 | type: Literal["web_fetch_result"] |
| 17 | |
| 18 | url: str |
| 19 | """Fetched content URL""" |