Upgrading anthropic 0.81 to 0.82
Safe0.81.0 → 0.82.0Fixed2
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 UserLocationParam - added:
export WebSearchToolResultErrorCode
- added:
class UserLocationParam(TypedDict) - added:
field UserLocationParam.city: Optional[str] - added:
field UserLocationParam.country: Optional[str] - added:
field UserLocationParam.region: Optional[str] - added:
field UserLocationParam.timezone: Optional[str] - added:
field UserLocationParam.type: Required[Literal['approximate']]
- removed:
class UserLocation(TypedDict) - removed:
field UserLocation.city: Optional[str] - removed:
field UserLocation.country: Optional[str] - removed:
field UserLocation.region: Optional[str] - removed:
field UserLocation.timezone: Optional[str] - removed:
field UserLocation.type: Required[Literal['approximate']] - changed:
field WebSearchTool20250305Param.user_location: Optional[UserLocation] → field WebSearchTool20250305Param.user_location: Optional[UserLocationParam] - added:
variable UserLocation
- removed:
class UserLocation(TypedDict) - removed:
field UserLocation.city: Optional[str] - removed:
field UserLocation.country: Optional[str] - removed:
field UserLocation.region: Optional[str] - removed:
field UserLocation.timezone: Optional[str] - removed:
field UserLocation.type: Required[Literal['approximate']] - changed:
field WebSearchTool20260209Param.user_location: Optional[UserLocation] → field WebSearchTool20260209Param.user_location: Optional[UserLocationParam] - added:
variable UserLocation
- changed:
field WebSearchToolRequestErrorParam.error_code: Required[Literal['invalid_tool_input', 'unavailable', 'max_uses_exceeded', 'too_many_requests', 'query_too_long', 'request_too_large']] → field WebSearchToolRequestErrorParam.error_code: Required[WebSearchToolResultErrorCode]
- changed:
field WebSearchToolResultError.error_code: Literal['invalid_tool_input', 'unavailable', 'max_uses_exceeded', 'too_many_requests', 'query_too_long', 'request_too_large'] → field WebSearchToolResultError.error_code: WebSearchToolResultErrorCode
- added:
variable WebSearchToolResultErrorCode: TypeAlias