Skip to content

Commit 817f46c

Browse files
fix(api): add string to tool result block (#448)
1 parent 0fa41ed commit 817f46c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 2
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-70873642f89316fbc45ceaccd3583971d0eb59d433f7864ca2fa8c321a320b4c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-ce067ae8303fa9b7aae2e8ebf0b6e9e41509f169ba93c1807e6ed9c9e541be1a.yml

src/resources/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export interface ToolResultBlockParam {
322322

323323
type: 'tool_result';
324324

325-
content?: Array<TextBlockParam | ImageBlockParam>;
325+
content?: string | Array<TextBlockParam | ImageBlockParam>;
326326

327327
is_error?: boolean;
328328
}

0 commit comments

Comments
 (0)