Skip to content

Commit ec207c5

Browse files
chore(client): add TextEditor_20250429 tool
1 parent 4498057 commit ec207c5

File tree

6 files changed

+36
-39
lines changed

6 files changed

+36
-39
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-e35574542a0e97f5127bac86f280bce8aaffa9d8d0bb90b5994ff132b31072e1.yml
33
openapi_spec_hash: f09142bb93ac7ed78f4dc1a47af7b5ed
4-
config_hash: b7bf6ac9e5b9ce5a010806d2bc05ffa7
4+
config_hash: 67bc50eeff9d6175c47153204ac83440

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ from anthropic.types import (
8585
ToolChoiceTool,
8686
ToolResultBlockParam,
8787
ToolTextEditor20250124,
88+
ToolTextEditor20250429,
8889
ToolTextEditor20250728,
8990
ToolUnion,
9091
ToolUseBlock,

src/anthropic/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
from .citation_content_block_location import CitationContentBlockLocation as CitationContentBlockLocation
112112
from .message_count_tokens_tool_param import MessageCountTokensToolParam as MessageCountTokensToolParam
113113
from .tool_text_editor_20250124_param import ToolTextEditor20250124Param as ToolTextEditor20250124Param
114+
from .tool_text_editor_20250429_param import ToolTextEditor20250429Param as ToolTextEditor20250429Param
114115
from .tool_text_editor_20250728_param import ToolTextEditor20250728Param as ToolTextEditor20250728Param
115116
from .content_block_source_content_param import ContentBlockSourceContentParam as ContentBlockSourceContentParam
116117
from .web_search_tool_result_block_param import WebSearchToolResultBlockParam as WebSearchToolResultBlockParam

src/anthropic/types/message_count_tokens_tool_param.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,23 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Optional
6-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
5+
from typing import Union
6+
from typing_extensions import TypeAlias
77

88
from .tool_param import ToolParam
99
from .tool_bash_20250124_param import ToolBash20250124Param
10-
from .cache_control_ephemeral_param import CacheControlEphemeralParam
1110
from .web_search_tool_20250305_param import WebSearchTool20250305Param
1211
from .tool_text_editor_20250124_param import ToolTextEditor20250124Param
12+
from .tool_text_editor_20250429_param import ToolTextEditor20250429Param
1313
from .tool_text_editor_20250728_param import ToolTextEditor20250728Param
1414

15-
__all__ = ["MessageCountTokensToolParam", "TextEditor20250429"]
16-
17-
18-
class TextEditor20250429(TypedDict, total=False):
19-
name: Required[Literal["str_replace_based_edit_tool"]]
20-
"""Name of the tool.
21-
22-
This is how the tool will be called by the model and in `tool_use` blocks.
23-
"""
24-
25-
type: Required[Literal["text_editor_20250429"]]
26-
27-
cache_control: Optional[CacheControlEphemeralParam]
28-
"""Create a cache control breakpoint at this content block."""
29-
15+
__all__ = ["MessageCountTokensToolParam"]
3016

3117
MessageCountTokensToolParam: TypeAlias = Union[
3218
ToolParam,
3319
ToolBash20250124Param,
3420
ToolTextEditor20250124Param,
35-
TextEditor20250429,
21+
ToolTextEditor20250429Param,
3622
ToolTextEditor20250728Param,
3723
WebSearchTool20250305Param,
3824
]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing import Optional
6+
from typing_extensions import Literal, Required, TypedDict
7+
8+
from .cache_control_ephemeral_param import CacheControlEphemeralParam
9+
10+
__all__ = ["ToolTextEditor20250429Param"]
11+
12+
13+
class ToolTextEditor20250429Param(TypedDict, total=False):
14+
name: Required[Literal["str_replace_based_edit_tool"]]
15+
"""Name of the tool.
16+
17+
This is how the tool will be called by the model and in `tool_use` blocks.
18+
"""
19+
20+
type: Required[Literal["text_editor_20250429"]]
21+
22+
cache_control: Optional[CacheControlEphemeralParam]
23+
"""Create a cache control breakpoint at this content block."""

src/anthropic/types/tool_union_param.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,23 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Optional
6-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
5+
from typing import Union
6+
from typing_extensions import TypeAlias
77

88
from .tool_param import ToolParam
99
from .tool_bash_20250124_param import ToolBash20250124Param
10-
from .cache_control_ephemeral_param import CacheControlEphemeralParam
1110
from .web_search_tool_20250305_param import WebSearchTool20250305Param
1211
from .tool_text_editor_20250124_param import ToolTextEditor20250124Param
12+
from .tool_text_editor_20250429_param import ToolTextEditor20250429Param
1313
from .tool_text_editor_20250728_param import ToolTextEditor20250728Param
1414

15-
__all__ = ["ToolUnionParam", "TextEditor20250429"]
16-
17-
18-
class TextEditor20250429(TypedDict, total=False):
19-
name: Required[Literal["str_replace_based_edit_tool"]]
20-
"""Name of the tool.
21-
22-
This is how the tool will be called by the model and in `tool_use` blocks.
23-
"""
24-
25-
type: Required[Literal["text_editor_20250429"]]
26-
27-
cache_control: Optional[CacheControlEphemeralParam]
28-
"""Create a cache control breakpoint at this content block."""
29-
15+
__all__ = ["ToolUnionParam"]
3016

3117
ToolUnionParam: TypeAlias = Union[
3218
ToolParam,
3319
ToolBash20250124Param,
3420
ToolTextEditor20250124Param,
35-
TextEditor20250429,
21+
ToolTextEditor20250429Param,
3622
ToolTextEditor20250728Param,
3723
WebSearchTool20250305Param,
3824
]

0 commit comments

Comments
 (0)