From f283b4eb9e4f118bb4ada38479747b22dd5282fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 20:08:17 +0000 Subject: [PATCH] fix(api): add string to tool result block (#554) --- .stats.yml | 2 +- src/anthropic/types/tool_result_block_param.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 68c3aa80..ff322255 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 2 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-70873642f89316fbc45ceaccd3583971d0eb59d433f7864ca2fa8c321a320b4c.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-ce067ae8303fa9b7aae2e8ebf0b6e9e41509f169ba93c1807e6ed9c9e541be1a.yml diff --git a/src/anthropic/types/tool_result_block_param.py b/src/anthropic/types/tool_result_block_param.py index cbacd83b..29bb4e5f 100644 --- a/src/anthropic/types/tool_result_block_param.py +++ b/src/anthropic/types/tool_result_block_param.py @@ -18,6 +18,6 @@ class ToolResultBlockParam(TypedDict, total=False): type: Required[Literal["tool_result"]] - content: Iterable[Content] + content: Union[str, Iterable[Content]] is_error: bool