File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 10
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fe4fbf0720b4ea03b05ff5225d36c94e06ab7aadbc4b227d0d35c4522b60bdb7 .yml
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-cf96271afd65b396dc71c4e897d1d55a9526c122e3890bc87b5ff33316c93853 .yml
Original file line number Diff line number Diff line change 44
55- <code ><a href =" ./src/resources/messages.ts " >ContentBlock</a ></code >
66- <code ><a href =" ./src/resources/messages.ts " >ContentBlockDeltaEvent</a ></code >
7+ - <code ><a href =" ./src/resources/messages.ts " >ContentBlockParam</a ></code >
78- <code ><a href =" ./src/resources/messages.ts " >ContentBlockStartEvent</a ></code >
89- <code ><a href =" ./src/resources/messages.ts " >ContentBlockStopEvent</a ></code >
910- <code ><a href =" ./src/resources/messages.ts " >ImageBlockParam</a ></code >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717import {
1818 ContentBlock ,
1919 ContentBlockDeltaEvent ,
20+ ContentBlockParam ,
2021 ContentBlockStartEvent ,
2122 ContentBlockStopEvent ,
2223 ImageBlockParam ,
@@ -309,6 +310,7 @@ export declare namespace Anthropic {
309310 Messages as Messages ,
310311 type ContentBlock as ContentBlock ,
311312 type ContentBlockDeltaEvent as ContentBlockDeltaEvent ,
313+ type ContentBlockParam as ContentBlockParam ,
312314 type ContentBlockStartEvent as ContentBlockStartEvent ,
313315 type ContentBlockStopEvent as ContentBlockStopEvent ,
314316 type ImageBlockParam as ImageBlockParam ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export {
2424 Messages ,
2525 type ContentBlock ,
2626 type ContentBlockDeltaEvent ,
27+ type ContentBlockParam ,
2728 type ContentBlockStartEvent ,
2829 type ContentBlockStopEvent ,
2930 type ImageBlockParam ,
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export type ContentBlock = TextBlock | ToolUseBlock;
4040
4141export type ContentBlockDeltaEvent = RawContentBlockDeltaEvent ;
4242
43+ export type ContentBlockParam = TextBlockParam | ImageBlockParam | ToolUseBlockParam | ToolResultBlockParam ;
44+
4345export type ContentBlockStartEvent = RawContentBlockStartEvent ;
4446
4547export type ContentBlockStopEvent = RawContentBlockStopEvent ;
@@ -181,7 +183,7 @@ export interface MessageDeltaUsage {
181183}
182184
183185export interface MessageParam {
184- content : string | Array < TextBlockParam | ImageBlockParam | ToolUseBlockParam | ToolResultBlockParam > ;
186+ content : string | Array < ContentBlockParam > ;
185187
186188 role : 'user' | 'assistant' ;
187189}
@@ -740,6 +742,7 @@ export declare namespace Messages {
740742 export {
741743 type ContentBlock as ContentBlock ,
742744 type ContentBlockDeltaEvent as ContentBlockDeltaEvent ,
745+ type ContentBlockParam as ContentBlockParam ,
743746 type ContentBlockStartEvent as ContentBlockStartEvent ,
744747 type ContentBlockStopEvent as ContentBlockStopEvent ,
745748 type ImageBlockParam as ImageBlockParam ,
You can’t perform that action at this time.
0 commit comments