Skip to content

Commit bcb557d

Browse files
chore(client): add TextEditor_20250429 tool
1 parent ca57d74 commit bcb557d

File tree

6 files changed

+25
-39
lines changed

6 files changed

+25
-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
@@ -86,6 +86,7 @@ Types:
8686
- <code><a href="./src/resources/messages/messages.ts">ToolChoiceTool</a></code>
8787
- <code><a href="./src/resources/messages/messages.ts">ToolResultBlockParam</a></code>
8888
- <code><a href="./src/resources/messages/messages.ts">ToolTextEditor20250124</a></code>
89+
- <code><a href="./src/resources/messages/messages.ts">ToolTextEditor20250429</a></code>
8990
- <code><a href="./src/resources/messages/messages.ts">ToolTextEditor20250728</a></code>
9091
- <code><a href="./src/resources/messages/messages.ts">ToolUnion</a></code>
9192
- <code><a href="./src/resources/messages/messages.ts">ToolUseBlock</a></code>

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ import {
118118
ToolChoiceTool,
119119
ToolResultBlockParam,
120120
ToolTextEditor20250124,
121+
ToolTextEditor20250429,
121122
ToolTextEditor20250728,
122123
ToolUnion,
123124
ToolUseBlock,
@@ -1036,6 +1037,7 @@ export declare namespace Anthropic {
10361037
type ToolChoiceTool as ToolChoiceTool,
10371038
type ToolResultBlockParam as ToolResultBlockParam,
10381039
type ToolTextEditor20250124 as ToolTextEditor20250124,
1040+
type ToolTextEditor20250429 as ToolTextEditor20250429,
10391041
type ToolTextEditor20250728 as ToolTextEditor20250728,
10401042
type ToolUnion as ToolUnion,
10411043
type ToolUseBlock as ToolUseBlock,

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export {
9292
type ToolChoiceTool,
9393
type ToolResultBlockParam,
9494
type ToolTextEditor20250124,
95+
type ToolTextEditor20250429,
9596
type ToolTextEditor20250728,
9697
type ToolUnion,
9798
type ToolUseBlock,

src/resources/messages/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export {
8383
type ToolChoiceTool,
8484
type ToolResultBlockParam,
8585
type ToolTextEditor20250124,
86+
type ToolTextEditor20250429,
8687
type ToolTextEditor20250728,
8788
type ToolUnion,
8889
type ToolUseBlock,

src/resources/messages/messages.ts

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -437,28 +437,10 @@ export type MessageCountTokensTool =
437437
| Tool
438438
| ToolBash20250124
439439
| ToolTextEditor20250124
440-
| MessageCountTokensTool.TextEditor20250429
440+
| ToolTextEditor20250429
441441
| ToolTextEditor20250728
442442
| WebSearchTool20250305;
443443

444-
export namespace MessageCountTokensTool {
445-
export interface TextEditor20250429 {
446-
/**
447-
* Name of the tool.
448-
*
449-
* This is how the tool will be called by the model and in `tool_use` blocks.
450-
*/
451-
name: 'str_replace_based_edit_tool';
452-
453-
type: 'text_editor_20250429';
454-
455-
/**
456-
* Create a cache control breakpoint at this content block.
457-
*/
458-
cache_control?: MessagesAPI.CacheControlEphemeral | null;
459-
}
460-
}
461-
462444
export interface MessageDeltaUsage {
463445
/**
464446
* The cumulative number of input tokens used to create the cache entry.
@@ -959,6 +941,22 @@ export interface ToolTextEditor20250124 {
959941
cache_control?: CacheControlEphemeral | null;
960942
}
961943

944+
export interface ToolTextEditor20250429 {
945+
/**
946+
* Name of the tool.
947+
*
948+
* This is how the tool will be called by the model and in `tool_use` blocks.
949+
*/
950+
name: 'str_replace_based_edit_tool';
951+
952+
type: 'text_editor_20250429';
953+
954+
/**
955+
* Create a cache control breakpoint at this content block.
956+
*/
957+
cache_control?: CacheControlEphemeral | null;
958+
}
959+
962960
export interface ToolTextEditor20250728 {
963961
/**
964962
* Name of the tool.
@@ -985,28 +983,10 @@ export type ToolUnion =
985983
| Tool
986984
| ToolBash20250124
987985
| ToolTextEditor20250124
988-
| ToolUnion.TextEditor20250429
986+
| ToolTextEditor20250429
989987
| ToolTextEditor20250728
990988
| WebSearchTool20250305;
991989

992-
export namespace ToolUnion {
993-
export interface TextEditor20250429 {
994-
/**
995-
* Name of the tool.
996-
*
997-
* This is how the tool will be called by the model and in `tool_use` blocks.
998-
*/
999-
name: 'str_replace_based_edit_tool';
1000-
1001-
type: 'text_editor_20250429';
1002-
1003-
/**
1004-
* Create a cache control breakpoint at this content block.
1005-
*/
1006-
cache_control?: MessagesAPI.CacheControlEphemeral | null;
1007-
}
1008-
}
1009-
1010990
export interface ToolUseBlock {
1011991
id: string;
1012992

@@ -1831,6 +1811,7 @@ export declare namespace Messages {
18311811
type ToolChoiceTool as ToolChoiceTool,
18321812
type ToolResultBlockParam as ToolResultBlockParam,
18331813
type ToolTextEditor20250124 as ToolTextEditor20250124,
1814+
type ToolTextEditor20250429 as ToolTextEditor20250429,
18341815
type ToolTextEditor20250728 as ToolTextEditor20250728,
18351816
type ToolUnion as ToolUnion,
18361817
type ToolUseBlock as ToolUseBlock,

0 commit comments

Comments
 (0)