Upgrading anthropic 0.92 to 0.93
Safe0.92.0 โ 0.93.0New1
SafeUpgrade verdict
Only new features and fixes in this range.
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.
- added:
export BetaAdvisorMessageIterationUsage - added:
export BetaAdvisorRedactedResultBlock - added:
export BetaAdvisorRedactedResultBlockParam - added:
export BetaAdvisorResultBlock - added:
export BetaAdvisorResultBlockParam - added:
export BetaAdvisorTool20260301Param - added:
export BetaAdvisorToolResultBlock - added:
export BetaAdvisorToolResultBlockParam - added:
export BetaAdvisorToolResultError - added:
export BetaAdvisorToolResultErrorParam
- added:
class BetaAdvisorMessageIterationUsage(BaseModel) - added:
field BetaAdvisorMessageIterationUsage.cache_creation: Optional[BetaCacheCreation] - added:
field BetaAdvisorMessageIterationUsage.cache_creation_input_tokens: int - added:
field BetaAdvisorMessageIterationUsage.cache_read_input_tokens: int - added:
field BetaAdvisorMessageIterationUsage.input_tokens: int - added:
field BetaAdvisorMessageIterationUsage.model: Model - added:
field BetaAdvisorMessageIterationUsage.output_tokens: int - added:
field BetaAdvisorMessageIterationUsage.type: Literal['advisor_message']
- added:
class BetaAdvisorRedactedResultBlock(BaseModel) - added:
field BetaAdvisorRedactedResultBlock.encrypted_content: str - added:
field BetaAdvisorRedactedResultBlock.type: Literal['advisor_redacted_result']
- added:
class BetaAdvisorRedactedResultBlockParam(TypedDict) - added:
field BetaAdvisorRedactedResultBlockParam.encrypted_content: Required[str] - added:
field BetaAdvisorRedactedResultBlockParam.type: Required[Literal['advisor_redacted_result']]
- added:
class BetaAdvisorResultBlock(BaseModel) - added:
field BetaAdvisorResultBlock.text: str - added:
field BetaAdvisorResultBlock.type: Literal['advisor_result']
- added:
class BetaAdvisorResultBlockParam(TypedDict) - added:
field BetaAdvisorResultBlockParam.text: Required[str] - added:
field BetaAdvisorResultBlockParam.type: Required[Literal['advisor_result']]
- added:
class BetaAdvisorTool20260301Param(TypedDict) - added:
field BetaAdvisorTool20260301Param.allowed_callers: List[Literal['direct', 'code_execution_20250825', 'code_execution_20260120']] - added:
field BetaAdvisorTool20260301Param.cache_control: Optional[BetaCacheControlEphemeralParam] - added:
field BetaAdvisorTool20260301Param.caching: Optional[BetaCacheControlEphemeralParam] - added:
field BetaAdvisorTool20260301Param.defer_loading: bool - added:
field BetaAdvisorTool20260301Param.max_uses: Optional[int] - added:
field BetaAdvisorTool20260301Param.model: Required[ModelParam] - added:
field BetaAdvisorTool20260301Param.name: Required[Literal['advisor']] - added:
field BetaAdvisorTool20260301Param.strict: bool - added:
field BetaAdvisorTool20260301Param.type: Required[Literal['advisor_20260301']]
- added:
class BetaAdvisorToolResultBlock(BaseModel) - added:
field BetaAdvisorToolResultBlock.content: Content - added:
field BetaAdvisorToolResultBlock.tool_use_id: str - added:
field BetaAdvisorToolResultBlock.type: Literal['advisor_tool_result'] - added:
variable Content: TypeAlias
- added:
class BetaAdvisorToolResultBlockParam(TypedDict) - added:
field BetaAdvisorToolResultBlockParam.cache_control: Optional[BetaCacheControlEphemeralParam] - added:
field BetaAdvisorToolResultBlockParam.content: Required[Content] - added:
field BetaAdvisorToolResultBlockParam.tool_use_id: Required[str] - added:
field BetaAdvisorToolResultBlockParam.type: Required[Literal['advisor_tool_result']] - added:
variable Content: TypeAlias
- added:
class BetaAdvisorToolResultError(BaseModel) - added:
field BetaAdvisorToolResultError.error_code: Literal['max_uses_exceeded', 'prompt_too_long', 'too_many_requests', 'overloaded', 'unavailable', 'execution_time_exceeded'] - added:
field BetaAdvisorToolResultError.type: Literal['advisor_tool_result_error']
- added:
class BetaAdvisorToolResultErrorParam(TypedDict) - added:
field BetaAdvisorToolResultErrorParam.error_code: Required[Literal['max_uses_exceeded', 'prompt_too_long', 'too_many_requests', 'overloaded', 'unavailable', 'execution_time_exceeded']] - added:
field BetaAdvisorToolResultErrorParam.type: Required[Literal['advisor_tool_result_error']]
- changed:
field BetaServerToolUseBlock.name: Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution', 'tool_search_tool_regex', 'tool_search_tool_bm25'] โ field BetaServerToolUseBlock.name: Literal['advisor', 'web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution', 'tool_search_tool_regex', 'tool_search_tool_bm25']
- changed:
field BetaServerToolUseBlockParam.name: Required[Literal['web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution', 'tool_search_tool_regex', 'tool_search_tool_bm25']] โ field BetaServerToolUseBlockParam.name: Required[Literal['advisor', 'web_search', 'web_fetch', 'code_execution', 'bash_code_execution', 'text_editor_code_execution', 'tool_search_tool_regex', 'tool_search_tool_bm25']]