diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bac94f8..6f257c8 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.71.1" + ".": "0.72.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d0b1b36..4a52e8a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 34 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-baca86203d0f4f4f2413b8da9237f7353b28b4b2251937fdcf33fe758e08ead2.yml -openapi_spec_hash: 327b1deb1eba170331a3ac42eabedfbe -config_hash: 57f9ccec4116f3b6706647d4e9200482 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-5e665f72d2774cd751988ccc94f623f264d9358aa073289779de5815d36e89a3.yml +openapi_spec_hash: c5f969a677c73796d192cf09dbb047f9 +config_hash: fd2165a5f09975707d3c0f6f78fb2be7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9c0de..12657d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.72.0 (2025-10-28) + +Full Changelog: [v0.71.1...v0.72.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.71.1...v0.72.0) + +### Features + +* **api:** add ability to clear thinking in context management ([27c8f17](https://github.com/anthropics/anthropic-sdk-python/commit/27c8f17c573c73c4db2146731ef1ab712140b0a2)) + ## 0.71.1 (2025-10-28) Full Changelog: [v0.71.0...v0.71.1](https://github.com/anthropics/anthropic-sdk-python/compare/v0.71.0...v0.71.1) diff --git a/api.md b/api.md index 5fcfead..f10182e 100644 --- a/api.md +++ b/api.md @@ -202,6 +202,7 @@ Types: ```python from anthropic.types.beta import ( + BetaAllThinkingTurns, BetaBase64ImageSource, BetaBase64PDFSource, BetaBashCodeExecutionOutputBlock, @@ -227,6 +228,8 @@ from anthropic.types.beta import ( BetaCitationsConfigParam, BetaCitationsDelta, BetaCitationsWebSearchResultLocation, + BetaClearThinking20251015Edit, + BetaClearThinking20251015EditResponse, BetaClearToolUses20250919Edit, BetaClearToolUses20250919EditResponse, BetaCodeExecutionOutputBlock, @@ -320,6 +323,7 @@ from anthropic.types.beta import ( BetaThinkingConfigEnabled, BetaThinkingConfigParam, BetaThinkingDelta, + BetaThinkingTurns, BetaTool, BetaToolBash20241022, BetaToolBash20250124, diff --git a/pyproject.toml b/pyproject.toml index 332da5b..a3ee9e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "anthropic" -version = "0.71.1" +version = "0.72.0" description = "The official Python library for the anthropic API" dynamic = ["readme"] license = "MIT" diff --git a/src/anthropic/_version.py b/src/anthropic/_version.py index 6e470c6..cc7202c 100644 --- a/src/anthropic/_version.py +++ b/src/anthropic/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "anthropic" -__version__ = "0.71.1" # x-release-please-version +__version__ = "0.72.0" # x-release-please-version diff --git a/src/anthropic/types/beta/__init__.py b/src/anthropic/types/beta/__init__.py index 01f5f63..ef3ac62 100644 --- a/src/anthropic/types/beta/__init__.py +++ b/src/anthropic/types/beta/__init__.py @@ -52,6 +52,7 @@ from .beta_text_citation_param import BetaTextCitationParam as BetaTextCitationParam from .beta_message_tokens_count import BetaMessageTokensCount as BetaMessageTokensCount from .beta_thinking_block_param import BetaThinkingBlockParam as BetaThinkingBlockParam +from .beta_thinking_turns_param import BetaThinkingTurnsParam as BetaThinkingTurnsParam from .beta_tool_use_block_param import BetaToolUseBlockParam as BetaToolUseBlockParam from .beta_tool_uses_keep_param import BetaToolUsesKeepParam as BetaToolUsesKeepParam from .beta_url_pdf_source_param import BetaURLPDFSourceParam as BetaURLPDFSourceParam @@ -81,6 +82,7 @@ from .beta_tool_result_block_param import BetaToolResultBlockParam as BetaToolResultBlockParam from .beta_tool_uses_trigger_param import BetaToolUsesTriggerParam as BetaToolUsesTriggerParam from .beta_web_search_result_block import BetaWebSearchResultBlock as BetaWebSearchResultBlock +from .beta_all_thinking_turns_param import BetaAllThinkingTurnsParam as BetaAllThinkingTurnsParam from .beta_mcp_tool_use_block_param import BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam from .beta_raw_message_stream_event import BetaRawMessageStreamEvent as BetaRawMessageStreamEvent from .beta_tool_bash_20241022_param import BetaToolBash20241022Param as BetaToolBash20241022Param @@ -140,6 +142,9 @@ from .beta_web_fetch_tool_result_block_param import BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam from .beta_web_fetch_tool_result_error_block import BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock from .beta_web_search_tool_result_error_code import BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode +from .beta_clear_thinking_20251015_edit_param import ( + BetaClearThinking20251015EditParam as BetaClearThinking20251015EditParam, +) from .beta_code_execution_tool_20250522_param import ( BetaCodeExecutionTool20250522Param as BetaCodeExecutionTool20250522Param, ) @@ -191,6 +196,9 @@ from .beta_citation_search_result_location_param import ( BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, ) +from .beta_clear_thinking_20251015_edit_response import ( + BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, +) from .beta_code_execution_tool_result_error_code import ( BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, ) diff --git a/src/anthropic/types/beta/beta_all_thinking_turns_param.py b/src/anthropic/types/beta/beta_all_thinking_turns_param.py new file mode 100644 index 0000000..aae4edd --- /dev/null +++ b/src/anthropic/types/beta/beta_all_thinking_turns_param.py @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaAllThinkingTurnsParam"] + + +class BetaAllThinkingTurnsParam(TypedDict, total=False): + type: Required[Literal["all"]] diff --git a/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py b/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py new file mode 100644 index 0000000..a711c72 --- /dev/null +++ b/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .beta_thinking_turns_param import BetaThinkingTurnsParam +from .beta_all_thinking_turns_param import BetaAllThinkingTurnsParam + +__all__ = ["BetaClearThinking20251015EditParam", "Keep"] + +Keep: TypeAlias = Union[BetaThinkingTurnsParam, BetaAllThinkingTurnsParam, Literal["all"]] + + +class BetaClearThinking20251015EditParam(TypedDict, total=False): + type: Required[Literal["clear_thinking_20251015"]] + + keep: Keep + """Number of most recent assistant turns to keep thinking blocks for. + + Older turns will have their thinking blocks removed. + """ diff --git a/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py b/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py new file mode 100644 index 0000000..08d174b --- /dev/null +++ b/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaClearThinking20251015EditResponse"] + + +class BetaClearThinking20251015EditResponse(BaseModel): + cleared_input_tokens: int + """Number of input tokens cleared by this edit.""" + + cleared_thinking_turns: int + """Number of thinking turns that were cleared.""" + + type: Literal["clear_thinking_20251015"] + """The type of context management edit applied.""" diff --git a/src/anthropic/types/beta/beta_context_management_config_param.py b/src/anthropic/types/beta/beta_context_management_config_param.py index ba3d354..d3ac441 100644 --- a/src/anthropic/types/beta/beta_context_management_config_param.py +++ b/src/anthropic/types/beta/beta_context_management_config_param.py @@ -2,14 +2,17 @@ from __future__ import annotations -from typing import Iterable -from typing_extensions import TypedDict +from typing import Union, Iterable +from typing_extensions import TypeAlias, TypedDict +from .beta_clear_thinking_20251015_edit_param import BetaClearThinking20251015EditParam from .beta_clear_tool_uses_20250919_edit_param import BetaClearToolUses20250919EditParam -__all__ = ["BetaContextManagementConfigParam"] +__all__ = ["BetaContextManagementConfigParam", "Edit"] + +Edit: TypeAlias = Union[BetaClearToolUses20250919EditParam, BetaClearThinking20251015EditParam] class BetaContextManagementConfigParam(TypedDict, total=False): - edits: Iterable[BetaClearToolUses20250919EditParam] + edits: Iterable[Edit] """List of context management edits to apply""" diff --git a/src/anthropic/types/beta/beta_context_management_response.py b/src/anthropic/types/beta/beta_context_management_response.py index 57c9c4d..278c437 100644 --- a/src/anthropic/types/beta/beta_context_management_response.py +++ b/src/anthropic/types/beta/beta_context_management_response.py @@ -1,13 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List +from typing import List, Union +from typing_extensions import Annotated, TypeAlias +from ..._utils import PropertyInfo from ..._models import BaseModel +from .beta_clear_thinking_20251015_edit_response import BetaClearThinking20251015EditResponse from .beta_clear_tool_uses_20250919_edit_response import BetaClearToolUses20250919EditResponse -__all__ = ["BetaContextManagementResponse"] +__all__ = ["BetaContextManagementResponse", "AppliedEdit"] + +AppliedEdit: TypeAlias = Annotated[ + Union[BetaClearToolUses20250919EditResponse, BetaClearThinking20251015EditResponse], + PropertyInfo(discriminator="type"), +] class BetaContextManagementResponse(BaseModel): - applied_edits: List[BetaClearToolUses20250919EditResponse] + applied_edits: List[AppliedEdit] """List of context management edits that were applied.""" diff --git a/src/anthropic/types/beta/beta_mcp_tool_use_block.py b/src/anthropic/types/beta/beta_mcp_tool_use_block.py index a96982e..32cabdb 100644 --- a/src/anthropic/types/beta/beta_mcp_tool_use_block.py +++ b/src/anthropic/types/beta/beta_mcp_tool_use_block.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import Literal from ..._models import BaseModel @@ -10,7 +11,7 @@ class BetaMCPToolUseBlock(BaseModel): id: str - input: object + input: Dict[str, object] name: str """The name of the MCP tool""" diff --git a/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py b/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py index c73de3b..4a67a19 100644 --- a/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +++ b/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Dict, Optional from typing_extensions import Literal, Required, TypedDict from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam @@ -13,7 +13,7 @@ class BetaMCPToolUseBlockParam(TypedDict, total=False): id: Required[str] - input: Required[object] + input: Required[Dict[str, object]] name: Required[str] diff --git a/src/anthropic/types/beta/beta_server_tool_use_block.py b/src/anthropic/types/beta/beta_server_tool_use_block.py index d634e0c..87afcdc 100644 --- a/src/anthropic/types/beta/beta_server_tool_use_block.py +++ b/src/anthropic/types/beta/beta_server_tool_use_block.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import Literal from ..._models import BaseModel @@ -10,7 +11,7 @@ class BetaServerToolUseBlock(BaseModel): id: str - input: object + input: Dict[str, object] name: Literal["web_search", "web_fetch", "code_execution", "bash_code_execution", "text_editor_code_execution"] diff --git a/src/anthropic/types/beta/beta_server_tool_use_block_param.py b/src/anthropic/types/beta/beta_server_tool_use_block_param.py index 6207b69..f69f887 100644 --- a/src/anthropic/types/beta/beta_server_tool_use_block_param.py +++ b/src/anthropic/types/beta/beta_server_tool_use_block_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Dict, Optional from typing_extensions import Literal, Required, TypedDict from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam @@ -13,7 +13,7 @@ class BetaServerToolUseBlockParam(TypedDict, total=False): id: Required[str] - input: Required[object] + input: Required[Dict[str, object]] name: Required[ Literal["web_search", "web_fetch", "code_execution", "bash_code_execution", "text_editor_code_execution"] diff --git a/src/anthropic/types/beta/beta_thinking_turns_param.py b/src/anthropic/types/beta/beta_thinking_turns_param.py new file mode 100644 index 0000000..7dd5450 --- /dev/null +++ b/src/anthropic/types/beta/beta_thinking_turns_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaThinkingTurnsParam"] + + +class BetaThinkingTurnsParam(TypedDict, total=False): + type: Required[Literal["thinking_turns"]] + + value: Required[int] diff --git a/src/anthropic/types/beta/beta_tool_param.py b/src/anthropic/types/beta/beta_tool_param.py index b8036c7..8298978 100644 --- a/src/anthropic/types/beta/beta_tool_param.py +++ b/src/anthropic/types/beta/beta_tool_param.py @@ -14,7 +14,7 @@ class InputSchemaTyped(TypedDict, total=False): type: Required[Literal["object"]] - properties: Optional[object] + properties: Optional[Dict[str, object]] required: Optional[SequenceNotStr[str]] diff --git a/src/anthropic/types/beta/beta_tool_use_block.py b/src/anthropic/types/beta/beta_tool_use_block.py index 7cfc0c3..e328f2a 100644 --- a/src/anthropic/types/beta/beta_tool_use_block.py +++ b/src/anthropic/types/beta/beta_tool_use_block.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import Literal from ..._models import BaseModel @@ -10,7 +11,7 @@ class BetaToolUseBlock(BaseModel): id: str - input: object + input: Dict[str, object] name: str diff --git a/src/anthropic/types/beta/beta_tool_use_block_param.py b/src/anthropic/types/beta/beta_tool_use_block_param.py index 8eb09cf..af8c634 100644 --- a/src/anthropic/types/beta/beta_tool_use_block_param.py +++ b/src/anthropic/types/beta/beta_tool_use_block_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Dict, Optional from typing_extensions import Literal, Required, TypedDict from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam @@ -13,7 +13,7 @@ class BetaToolUseBlockParam(TypedDict, total=False): id: Required[str] - input: Required[object] + input: Required[Dict[str, object]] name: Required[str] diff --git a/src/anthropic/types/server_tool_use_block.py b/src/anthropic/types/server_tool_use_block.py index abf515d..02b339a 100644 --- a/src/anthropic/types/server_tool_use_block.py +++ b/src/anthropic/types/server_tool_use_block.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import Literal from .._models import BaseModel @@ -10,7 +11,7 @@ class ServerToolUseBlock(BaseModel): id: str - input: object + input: Dict[str, object] name: Literal["web_search"] diff --git a/src/anthropic/types/server_tool_use_block_param.py b/src/anthropic/types/server_tool_use_block_param.py index e084929..e9ce64a 100644 --- a/src/anthropic/types/server_tool_use_block_param.py +++ b/src/anthropic/types/server_tool_use_block_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Dict, Optional from typing_extensions import Literal, Required, TypedDict from .cache_control_ephemeral_param import CacheControlEphemeralParam @@ -13,7 +13,7 @@ class ServerToolUseBlockParam(TypedDict, total=False): id: Required[str] - input: Required[object] + input: Required[Dict[str, object]] name: Required[Literal["web_search"]] diff --git a/src/anthropic/types/tool_param.py b/src/anthropic/types/tool_param.py index 6b58bdb..a747eb9 100644 --- a/src/anthropic/types/tool_param.py +++ b/src/anthropic/types/tool_param.py @@ -15,7 +15,7 @@ class InputSchemaTyped(TypedDict, total=False): type: Required[Literal["object"]] - properties: Optional[object] + properties: Optional[Dict[str, object]] required: Optional[SequenceNotStr[str]] diff --git a/src/anthropic/types/tool_use_block.py b/src/anthropic/types/tool_use_block.py index 0551447..a888d21 100644 --- a/src/anthropic/types/tool_use_block.py +++ b/src/anthropic/types/tool_use_block.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import Literal from .._models import BaseModel @@ -10,7 +11,7 @@ class ToolUseBlock(BaseModel): id: str - input: object + input: Dict[str, object] name: str diff --git a/src/anthropic/types/tool_use_block_param.py b/src/anthropic/types/tool_use_block_param.py index 2ef1d5e..4b048f9 100644 --- a/src/anthropic/types/tool_use_block_param.py +++ b/src/anthropic/types/tool_use_block_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Dict, Optional from typing_extensions import Literal, Required, TypedDict from .cache_control_ephemeral_param import CacheControlEphemeralParam @@ -13,7 +13,7 @@ class ToolUseBlockParam(TypedDict, total=False): id: Required[str] - input: Required[object] + input: Required[Dict[str, object]] name: Required[str] diff --git a/tests/api_resources/beta/messages/test_batches.py b/tests/api_resources/beta/messages/test_batches.py index 66913a1..2236114 100644 --- a/tests/api_resources/beta/messages/test_batches.py +++ b/tests/api_resources/beta/messages/test_batches.py @@ -143,14 +143,8 @@ def test_method_create_with_all_params(self, client: Anthropic) -> None: "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -563,14 +557,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncAnthropic) "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, diff --git a/tests/api_resources/beta/test_messages.py b/tests/api_resources/beta/test_messages.py index 7fb57dd..b77a453 100644 --- a/tests/api_resources/beta/test_messages.py +++ b/tests/api_resources/beta/test_messages.py @@ -128,14 +128,8 @@ def test_method_create_with_all_params_overload_1(self, client: Anthropic) -> No "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -303,14 +297,8 @@ def test_method_create_with_all_params_overload_2(self, client: Anthropic) -> No "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -461,14 +449,8 @@ def test_method_count_tokens_with_all_params(self, client: Anthropic) -> None: "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -637,14 +619,8 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -812,14 +788,8 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -970,14 +940,8 @@ async def test_method_count_tokens_with_all_params(self, async_client: AsyncAnth "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py index bbbd403..4737cb8 100644 --- a/tests/api_resources/test_messages.py +++ b/tests/api_resources/test_messages.py @@ -84,14 +84,8 @@ def test_method_create_with_all_params_overload_1(self, client: Anthropic) -> No "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -211,14 +205,8 @@ def test_method_create_with_all_params_overload_2(self, client: Anthropic) -> No "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -341,14 +329,8 @@ def test_method_count_tokens_with_all_params(self, client: Anthropic) -> None: "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -469,14 +451,8 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -596,14 +572,8 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], }, @@ -726,14 +696,8 @@ async def test_method_count_tokens_with_all_params(self, async_client: AsyncAnth "input_schema": { "type": "object", "properties": { - "location": { - "description": "The city and state, e.g. San Francisco, CA", - "type": "string", - }, - "unit": { - "description": "Unit for the output - one of (celsius, fahrenheit)", - "type": "string", - }, + "location": "bar", + "unit": "bar", }, "required": ["location"], },