Skip to content

Upgrading anthropic 0.66 to 0.67

Review needed0.66.0 → 0.67.0New1Changed1Fixed2Other2

Review neededUpgrade verdict

1 changed default.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: export BetaBase64PDFSource
  • added: export BetaCitationConfig
  • added: export BetaDocumentBlock
  • added: export BetaPlainTextSource
  • added: export BetaWebFetchBlock
  • added: export BetaWebFetchBlockParam
  • added: export BetaWebFetchTool20250910Param
  • added: export BetaWebFetchToolResultBlock
  • added: export BetaWebFetchToolResultBlockParam
  • added: export BetaWebFetchToolResultErrorBlock
  • added: export BetaWebFetchToolResultErrorBlockParam
  • added: export BetaWebFetchToolResultErrorCode
  • added: class BetaBase64PDFSource(BaseModel)
  • added: field BetaBase64PDFSource.data: str
  • added: field BetaBase64PDFSource.media_type: Literal['application/pdf']
  • added: field BetaBase64PDFSource.type: Literal['base64']
  • added: class BetaCitationConfig(BaseModel)
  • added: field BetaCitationConfig.enabled: bool
  • added: class BetaDocumentBlock(BaseModel)
  • added: field BetaDocumentBlock.citations: Optional[BetaCitationConfig]
  • added: field BetaDocumentBlock.source: Source
  • added: field BetaDocumentBlock.title: Optional[str]
  • added: field BetaDocumentBlock.type: Literal['document']
  • added: variable Source: TypeAlias
  • added: class BetaPlainTextSource(BaseModel)
  • added: field BetaPlainTextSource.data: str
  • added: field BetaPlainTextSource.media_type: Literal['text/plain']
  • added: field BetaPlainTextSource.type: Literal['text']
  • changed: field BetaRequestDocumentBlockParam.citations: BetaCitationsConfigParam → field BetaRequestDocumentBlockParam.citations: Optional[BetaCitationsConfigParam]
  • added: field BetaServerToolUsage.web_fetch_requests: int
  • changed: field BetaServerToolUseBlock.name: Literal['web_search', 'code_execution', 'bash_code_execution', 'text_editor_code_execution'] → field BetaServerToolUseBlock.name: Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']
  • changed: field BetaServerToolUseBlockParam.name: Required[Literal['web_search', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']] → field BetaServerToolUseBlockParam.name: Required[Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']]
  • added: class BetaWebFetchBlock(BaseModel)
  • added: field BetaWebFetchBlock.content: BetaDocumentBlock
  • added: field BetaWebFetchBlock.retrieved_at: Optional[str]
  • added: field BetaWebFetchBlock.type: Literal['web_fetch_result']
  • added: field BetaWebFetchBlock.url: str
  • added: class BetaWebFetchBlockParam(TypedDict)
  • added: field BetaWebFetchBlockParam.content: Required[BetaRequestDocumentBlockParam]
  • added: field BetaWebFetchBlockParam.retrieved_at: Optional[str]
  • added: field BetaWebFetchBlockParam.type: Required[Literal['web_fetch_result']]
  • added: field BetaWebFetchBlockParam.url: Required[str]
  • added: class BetaWebFetchTool20250910Param(TypedDict)
  • added: field BetaWebFetchTool20250910Param.allowed_domains: Optional[SequenceNotStr[str]]
  • added: field BetaWebFetchTool20250910Param.blocked_domains: Optional[SequenceNotStr[str]]
  • added: field BetaWebFetchTool20250910Param.cache_control: Optional[BetaCacheControlEphemeralParam]
  • added: field BetaWebFetchTool20250910Param.citations: Optional[BetaCitationsConfigParam]
  • added: field BetaWebFetchTool20250910Param.max_content_tokens: Optional[int]
  • added: field BetaWebFetchTool20250910Param.max_uses: Optional[int]
  • added: field BetaWebFetchTool20250910Param.name: Required[Literal['web_fetch']]
  • added: field BetaWebFetchTool20250910Param.type: Required[Literal['web_fetch_20250910']]
  • added: class BetaWebFetchToolResultBlock(BaseModel)
  • added: field BetaWebFetchToolResultBlock.content: Content
  • added: field BetaWebFetchToolResultBlock.tool_use_id: str
  • added: field BetaWebFetchToolResultBlock.type: Literal['web_fetch_tool_result']
  • added: variable Content: TypeAlias
  • added: class BetaWebFetchToolResultBlockParam(TypedDict)
  • added: field BetaWebFetchToolResultBlockParam.cache_control: Optional[BetaCacheControlEphemeralParam]
  • added: field BetaWebFetchToolResultBlockParam.content: Required[Content]
  • added: field BetaWebFetchToolResultBlockParam.tool_use_id: Required[str]
  • added: field BetaWebFetchToolResultBlockParam.type: Required[Literal['web_fetch_tool_result']]
  • added: variable Content: TypeAlias
  • added: class BetaWebFetchToolResultErrorBlock(BaseModel)
  • added: field BetaWebFetchToolResultErrorBlock.error_code: BetaWebFetchToolResultErrorCode
  • added: field BetaWebFetchToolResultErrorBlock.type: Literal['web_fetch_tool_result_error']
  • added: class BetaWebFetchToolResultErrorBlockParam(TypedDict)
  • added: field BetaWebFetchToolResultErrorBlockParam.error_code: Required[BetaWebFetchToolResultErrorCode]
  • added: field BetaWebFetchToolResultErrorBlockParam.type: Required[Literal['web_fetch_tool_result_error']]
  • added: variable BetaWebFetchToolResultErrorCode: TypeAlias
  • changed: field DocumentBlockParam.citations: CitationsConfigParam → field DocumentBlockParam.citations: Optional[CitationsConfigParam]