Skip to content

Commit 345af47

Browse files
chore(internal): codegen related update
1 parent db642d3 commit 345af47

File tree

6 files changed

+39
-25
lines changed

6 files changed

+39
-25
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-a7b84017aa1126ad99443296dcd81ab2b53f1c346014b92096226cf993f30502.yml
33
openapi_spec_hash: 58d4e72c7906bd8a680ab17b99de6215
4-
config_hash: c8bbb3ef8690dc4dc00d9ad2f8ee3d13
4+
config_hash: b08362db009c073fa7b1c154969cb200

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ 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>
9089
- <code><a href="./src/resources/messages/messages.ts">ToolUnion</a></code>
9190
- <code><a href="./src/resources/messages/messages.ts">ToolUseBlock</a></code>
9291
- <code><a href="./src/resources/messages/messages.ts">ToolUseBlockParam</a></code>

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ import {
126126
ToolChoiceTool,
127127
ToolResultBlockParam,
128128
ToolTextEditor20250124,
129-
ToolTextEditor20250429,
130129
ToolUnion,
131130
ToolUseBlock,
132131
ToolUseBlockParam,
@@ -1010,7 +1009,6 @@ export declare namespace Anthropic {
10101009
type ToolChoiceTool as ToolChoiceTool,
10111010
type ToolResultBlockParam as ToolResultBlockParam,
10121011
type ToolTextEditor20250124 as ToolTextEditor20250124,
1013-
type ToolTextEditor20250429 as ToolTextEditor20250429,
10141012
type ToolUnion as ToolUnion,
10151013
type ToolUseBlock as ToolUseBlock,
10161014
type ToolUseBlockParam as ToolUseBlockParam,

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export {
9292
type ToolChoiceTool,
9393
type ToolResultBlockParam,
9494
type ToolTextEditor20250124,
95-
type ToolTextEditor20250429,
9695
type ToolUnion,
9796
type ToolUseBlock,
9897
type ToolUseBlockParam,

src/resources/messages/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export {
8383
type ToolChoiceTool,
8484
type ToolResultBlockParam,
8585
type ToolTextEditor20250124,
86-
type ToolTextEditor20250429,
8786
type ToolUnion,
8887
type ToolUseBlock,
8988
type ToolUseBlockParam,

src/resources/messages/messages.ts

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,27 @@ export type MessageCountTokensTool =
427427
| Tool
428428
| ToolBash20250124
429429
| ToolTextEditor20250124
430-
| ToolTextEditor20250429
430+
| MessageCountTokensTool.TextEditor20250429
431431
| WebSearchTool20250305;
432432

433+
export namespace MessageCountTokensTool {
434+
export interface TextEditor20250429 {
435+
/**
436+
* Name of the tool.
437+
*
438+
* This is how the tool will be called by the model and in `tool_use` blocks.
439+
*/
440+
name: 'str_replace_based_edit_tool';
441+
442+
type: 'text_editor_20250429';
443+
444+
/**
445+
* Create a cache control breakpoint at this content block.
446+
*/
447+
cache_control?: MessagesAPI.CacheControlEphemeral | null;
448+
}
449+
}
450+
433451
export interface MessageDeltaUsage {
434452
/**
435453
* The cumulative number of input tokens used to create the cache entry.
@@ -932,29 +950,31 @@ export interface ToolTextEditor20250124 {
932950
cache_control?: CacheControlEphemeral | null;
933951
}
934952

935-
export interface ToolTextEditor20250429 {
936-
/**
937-
* Name of the tool.
938-
*
939-
* This is how the tool will be called by the model and in `tool_use` blocks.
940-
*/
941-
name: 'str_replace_based_edit_tool';
942-
943-
type: 'text_editor_20250429';
944-
945-
/**
946-
* Create a cache control breakpoint at this content block.
947-
*/
948-
cache_control?: CacheControlEphemeral | null;
949-
}
950-
951953
export type ToolUnion =
952954
| Tool
953955
| ToolBash20250124
954956
| ToolTextEditor20250124
955-
| ToolTextEditor20250429
957+
| ToolUnion.TextEditor20250429
956958
| WebSearchTool20250305;
957959

960+
export namespace ToolUnion {
961+
export interface TextEditor20250429 {
962+
/**
963+
* Name of the tool.
964+
*
965+
* This is how the tool will be called by the model and in `tool_use` blocks.
966+
*/
967+
name: 'str_replace_based_edit_tool';
968+
969+
type: 'text_editor_20250429';
970+
971+
/**
972+
* Create a cache control breakpoint at this content block.
973+
*/
974+
cache_control?: MessagesAPI.CacheControlEphemeral | null;
975+
}
976+
}
977+
958978
export interface ToolUseBlock {
959979
id: string;
960980

@@ -1767,7 +1787,6 @@ export declare namespace Messages {
17671787
type ToolChoiceTool as ToolChoiceTool,
17681788
type ToolResultBlockParam as ToolResultBlockParam,
17691789
type ToolTextEditor20250124 as ToolTextEditor20250124,
1770-
type ToolTextEditor20250429 as ToolTextEditor20250429,
17711790
type ToolUnion as ToolUnion,
17721791
type ToolUseBlock as ToolUseBlock,
17731792
type ToolUseBlockParam as ToolUseBlockParam,

0 commit comments

Comments
 (0)