Upgrading anthropic 0.64 to 0.65
Review needed0.64.0 → 0.65.0New1Changed1Fixed2Other10
Review neededUpgrade verdict
1 changed default.
In plain terms
- Nothing in this range needs changes to your code. It adds features and fixes.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
async method AsyncMessages.create(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, metadata: BetaMetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, stream: Literal[False] | NotGi… → async method AsyncMessages.create(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, metadata: BetaMetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, stream: Literal[Fals… - changed:
method AsyncMessages.stream(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, metadata: BetaMetadataParam | NotGiven=…, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, system: Union[str, Iterable[BetaText… → method AsyncMessages.stream(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, metadata: BetaMetadataParam | NotGiven=…, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, system: Union[str, Iterabl… - changed:
method Messages.create(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, metadata: BetaMetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, syst… → method Messages.create(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, metadata: BetaMetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, stream: Literal[False] | NotGiv… - changed:
method Messages.stream(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, metadata: BetaMetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, system: Union[str, Iterable[BetaTextBlock… → method Messages.stream(*, max_tokens: int, messages: Iterable[BetaMessageParam], model: ModelParam, container: Optional[str] | NotGiven=…, mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | NotGiven=…, metadata: BetaMetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, system: Union[str, Iterable[Bet…
- changed:
async method AsyncCompletions.create(*, max_tokens_to_sample: int, model: ModelParam, prompt: str, metadata: MetadataParam | NotGiven=…, stop_sequences: List[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=…, top_p: float | NotGiven=…, betas: List[AnthropicBetaParam] | NotGiven=…, extra_headers: Headers | None=…, extra_query: Query |… → async method AsyncCompletions.create(*, max_tokens_to_sample: int, model: ModelParam, prompt: str, metadata: MetadataParam | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=…, top_p: float | NotGiven=…, betas: List[AnthropicBetaParam] | NotGiven=…, extra_headers: Headers | None=…, extra_query… - changed:
method Completions.create(*, max_tokens_to_sample: int, model: ModelParam, prompt: str, metadata: MetadataParam | NotGiven=…, stop_sequences: List[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=…, top_p: float | NotGiven=…, betas: List[AnthropicBetaParam] | NotGiven=…, extra_headers: Headers | None=…, extra_query: Query | None=…, ext… → method Completions.create(*, max_tokens_to_sample: int, model: ModelParam, prompt: str, metadata: MetadataParam | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=…, top_p: float | NotGiven=…, betas: List[AnthropicBetaParam] | NotGiven=…, extra_headers: Headers | None=…, extra_query: Query | N…
- changed:
async method AsyncMessages.create(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, thinking: ThinkingConfig… → async method AsyncMessages.create(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, thinking: Thin… - changed:
method AsyncMessages.stream(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, container: Optional[str] | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=…, top… → method AsyncMessages.stream(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, container: Optional[str] | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGi… - changed:
method Messages.create(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, thinking: ThinkingConfigParam | Not… → method Messages.create(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, stream: Literal[False] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, thinking: ThinkingConfigP… - changed:
method Messages.stream(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, container: Optional[str] | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: List[str] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=…, top_p: f… → method Messages.stream(*, max_tokens: int, messages: Iterable[MessageParam], model: ModelParam, metadata: MetadataParam | NotGiven=…, container: Optional[str] | NotGiven=…, service_tier: Literal['auto', 'standard_only'] | NotGiven=…, stop_sequences: SequenceNotStr[str] | NotGiven=…, system: Union[str, Iterable[TextBlockParam]] | NotGiven=…, temperature: float | NotGiven=…, top_k: int | NotGiven=……
- added:
export BetaBashCodeExecutionOutputBlock - added:
export BetaBashCodeExecutionOutputBlockParam - added:
export BetaBashCodeExecutionResultBlock - added:
export BetaBashCodeExecutionResultBlockParam - added:
export BetaBashCodeExecutionToolResultBlock - added:
export BetaBashCodeExecutionToolResultBlockParam - added:
export BetaBashCodeExecutionToolResultError - added:
export BetaBashCodeExecutionToolResultErrorParam - added:
export BetaCodeExecutionTool20250825Param - added:
export BetaTextEditorCodeExecutionCreateResultBlock - added:
export BetaTextEditorCodeExecutionCreateResultBlockParam - added:
export BetaTextEditorCodeExecutionStrReplaceResultBlock - added:
export BetaTextEditorCodeExecutionStrReplaceResultBlockParam - added:
export BetaTextEditorCodeExecutionToolResultBlock - added:
export BetaTextEditorCodeExecutionToolResultBlockParam - added:
export BetaTextEditorCodeExecutionToolResultError - added:
export BetaTextEditorCodeExecutionToolResultErrorParam - added:
export BetaTextEditorCodeExecutionViewResultBlock - added:
export BetaTextEditorCodeExecutionViewResultBlockParam
- added:
class BetaBashCodeExecutionOutputBlock(BaseModel) - added:
field BetaBashCodeExecutionOutputBlock.file_id: str - added:
field BetaBashCodeExecutionOutputBlock.type: Literal['bash_code_execution_output']
- added:
class BetaBashCodeExecutionOutputBlockParam(TypedDict) - added:
field BetaBashCodeExecutionOutputBlockParam.file_id: Required[str] - added:
field BetaBashCodeExecutionOutputBlockParam.type: Required[Literal['bash_code_execution_output']]
- added:
class BetaBashCodeExecutionResultBlock(BaseModel) - added:
field BetaBashCodeExecutionResultBlock.content: List[BetaBashCodeExecutionOutputBlock] - added:
field BetaBashCodeExecutionResultBlock.return_code: int - added:
field BetaBashCodeExecutionResultBlock.stderr: str - added:
field BetaBashCodeExecutionResultBlock.stdout: str - added:
field BetaBashCodeExecutionResultBlock.type: Literal['bash_code_execution_result']
- added:
class BetaBashCodeExecutionResultBlockParam(TypedDict) - added:
field BetaBashCodeExecutionResultBlockParam.content: Required[Iterable[BetaBashCodeExecutionOutputBlockParam]] - added:
field BetaBashCodeExecutionResultBlockParam.return_code: Required[int] - added:
field BetaBashCodeExecutionResultBlockParam.stderr: Required[str] - added:
field BetaBashCodeExecutionResultBlockParam.stdout: Required[str] - added:
field BetaBashCodeExecutionResultBlockParam.type: Required[Literal['bash_code_execution_result']]
- added:
class BetaBashCodeExecutionToolResultBlock(BaseModel) - added:
field BetaBashCodeExecutionToolResultBlock.content: Content - added:
field BetaBashCodeExecutionToolResultBlock.tool_use_id: str - added:
field BetaBashCodeExecutionToolResultBlock.type: Literal['bash_code_execution_tool_result'] - added:
variable Content: TypeAlias
- added:
class BetaBashCodeExecutionToolResultBlockParam(TypedDict) - added:
field BetaBashCodeExecutionToolResultBlockParam.cache_control: Optional[BetaCacheControlEphemeralParam] - added:
field BetaBashCodeExecutionToolResultBlockParam.content: Required[Content] - added:
field BetaBashCodeExecutionToolResultBlockParam.tool_use_id: Required[str] - added:
field BetaBashCodeExecutionToolResultBlockParam.type: Required[Literal['bash_code_execution_tool_result']] - added:
variable Content: TypeAlias
- added:
class BetaBashCodeExecutionToolResultError(BaseModel) - added:
field BetaBashCodeExecutionToolResultError.error_code: Literal['invalid_tool_input', 'unavailable', 'too_many_requests', 'execution_time_exceeded', 'output_file_too_large'] - added:
field BetaBashCodeExecutionToolResultError.type: Literal['bash_code_execution_tool_result_error']
- added:
class BetaBashCodeExecutionToolResultErrorParam(TypedDict) - added:
field BetaBashCodeExecutionToolResultErrorParam.error_code: Required[Literal['invalid_tool_input', 'unavailable', 'too_many_requests', 'execution_time_exceeded', 'output_file_too_large']] - added:
field BetaBashCodeExecutionToolResultErrorParam.type: Required[Literal['bash_code_execution_tool_result_error']]
- added:
class BetaCodeExecutionTool20250825Param(TypedDict) - added:
field BetaCodeExecutionTool20250825Param.cache_control: Optional[BetaCacheControlEphemeralParam] - added:
field BetaCodeExecutionTool20250825Param.name: Required[Literal['code_execution']] - added:
field BetaCodeExecutionTool20250825Param.type: Required[Literal['code_execution_20250825']]
- changed:
field BetaRequestMCPServerToolConfigurationParam.allowed_tools: Optional[List[str]] → field BetaRequestMCPServerToolConfigurationParam.allowed_tools: Optional[SequenceNotStr[str]]
- changed:
field BetaServerToolUseBlock.name: Literal['web_search', 'code_execution'] → field BetaServerToolUseBlock.name: Literal['web_search', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']
- changed:
field BetaServerToolUseBlockParam.name: Required[Literal['web_search', 'code_execution']] → field BetaServerToolUseBlockParam.name: Required[Literal['web_search', 'code_execution', 'bash_code_execution', 'text_editor_code_execution']]
- added:
class BetaTextEditorCodeExecutionCreateResultBlock(BaseModel) - added:
field BetaTextEditorCodeExecutionCreateResultBlock.is_file_update: bool - added:
field BetaTextEditorCodeExecutionCreateResultBlock.type: Literal['text_editor_code_execution_create_result']
- added:
class BetaTextEditorCodeExecutionCreateResultBlockParam(TypedDict) - added:
field BetaTextEditorCodeExecutionCreateResultBlockParam.is_file_update: Required[bool] - added:
field BetaTextEditorCodeExecutionCreateResultBlockParam.type: Required[Literal['text_editor_code_execution_create_result']]
- added:
class BetaTextEditorCodeExecutionStrReplaceResultBlock(BaseModel) - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlock.lines: Optional[List[str]] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlock.new_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlock.new_start: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlock.old_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlock.old_start: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlock.type: Literal['text_editor_code_execution_str_replace_result']
- added:
class BetaTextEditorCodeExecutionStrReplaceResultBlockParam(TypedDict) - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlockParam.lines: Optional[SequenceNotStr[str]] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlockParam.new_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlockParam.new_start: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlockParam.old_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlockParam.old_start: Optional[int] - added:
field BetaTextEditorCodeExecutionStrReplaceResultBlockParam.type: Required[Literal['text_editor_code_execution_str_replace_result']]
- added:
class BetaTextEditorCodeExecutionToolResultBlock(BaseModel) - added:
field BetaTextEditorCodeExecutionToolResultBlock.content: Content - added:
field BetaTextEditorCodeExecutionToolResultBlock.tool_use_id: str - added:
field BetaTextEditorCodeExecutionToolResultBlock.type: Literal['text_editor_code_execution_tool_result'] - added:
variable Content: TypeAlias
- added:
class BetaTextEditorCodeExecutionToolResultBlockParam(TypedDict) - added:
field BetaTextEditorCodeExecutionToolResultBlockParam.cache_control: Optional[BetaCacheControlEphemeralParam] - added:
field BetaTextEditorCodeExecutionToolResultBlockParam.content: Required[Content] - added:
field BetaTextEditorCodeExecutionToolResultBlockParam.tool_use_id: Required[str] - added:
field BetaTextEditorCodeExecutionToolResultBlockParam.type: Required[Literal['text_editor_code_execution_tool_result']] - added:
variable Content: TypeAlias
- added:
class BetaTextEditorCodeExecutionToolResultError(BaseModel) - added:
field BetaTextEditorCodeExecutionToolResultError.error_code: Literal['invalid_tool_input', 'unavailable', 'too_many_requests', 'execution_time_exceeded', 'file_not_found'] - added:
field BetaTextEditorCodeExecutionToolResultError.error_message: Optional[str] - added:
field BetaTextEditorCodeExecutionToolResultError.type: Literal['text_editor_code_execution_tool_result_error']
- added:
class BetaTextEditorCodeExecutionToolResultErrorParam(TypedDict) - added:
field BetaTextEditorCodeExecutionToolResultErrorParam.error_code: Required[Literal['invalid_tool_input', 'unavailable', 'too_many_requests', 'execution_time_exceeded', 'file_not_found']] - added:
field BetaTextEditorCodeExecutionToolResultErrorParam.error_message: Optional[str] - added:
field BetaTextEditorCodeExecutionToolResultErrorParam.type: Required[Literal['text_editor_code_execution_tool_result_error']]
- added:
class BetaTextEditorCodeExecutionViewResultBlock(BaseModel) - added:
field BetaTextEditorCodeExecutionViewResultBlock.content: str - added:
field BetaTextEditorCodeExecutionViewResultBlock.file_type: Literal['text', 'image', 'pdf'] - added:
field BetaTextEditorCodeExecutionViewResultBlock.num_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionViewResultBlock.start_line: Optional[int] - added:
field BetaTextEditorCodeExecutionViewResultBlock.total_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionViewResultBlock.type: Literal['text_editor_code_execution_view_result']
- added:
class BetaTextEditorCodeExecutionViewResultBlockParam(TypedDict) - added:
field BetaTextEditorCodeExecutionViewResultBlockParam.content: Required[str] - added:
field BetaTextEditorCodeExecutionViewResultBlockParam.file_type: Required[Literal['text', 'image', 'pdf']] - added:
field BetaTextEditorCodeExecutionViewResultBlockParam.num_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionViewResultBlockParam.start_line: Optional[int] - added:
field BetaTextEditorCodeExecutionViewResultBlockParam.total_lines: Optional[int] - added:
field BetaTextEditorCodeExecutionViewResultBlockParam.type: Required[Literal['text_editor_code_execution_view_result']]
- changed:
field BetaWebSearchTool20250305Param.allowed_domains: Optional[List[str]] → field BetaWebSearchTool20250305Param.allowed_domains: Optional[SequenceNotStr[str]] - changed:
field BetaWebSearchTool20250305Param.blocked_domains: Optional[List[str]] → field BetaWebSearchTool20250305Param.blocked_domains: Optional[SequenceNotStr[str]]
- changed:
field MessageCreateParamsBase.stop_sequences: List[str] → field MessageCreateParamsBase.stop_sequences: SequenceNotStr[str]
- added:
field BetaErrorResponse.request_id: Optional[str]
- changed:
field CompletionCreateParamsBase.stop_sequences: List[str] → field CompletionCreateParamsBase.stop_sequences: SequenceNotStr[str]
- changed:
field MessageCreateParamsBase.stop_sequences: List[str] → field MessageCreateParamsBase.stop_sequences: SequenceNotStr[str]
- added:
field ErrorResponse.request_id: Optional[str]
- changed:
field WebSearchTool20250305Param.allowed_domains: Optional[List[str]] → field WebSearchTool20250305Param.allowed_domains: Optional[SequenceNotStr[str]] - changed:
field WebSearchTool20250305Param.blocked_domains: Optional[List[str]] → field WebSearchTool20250305Param.blocked_domains: Optional[SequenceNotStr[str]]