Skip to content

Commit a87b1e5

Browse files
feat(api): adds support for Documents in tool results
1 parent e06c316 commit a87b1e5

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-c150096acd4c91e98b0b888f5cb61e9c2d73c433f165f6fe343a8af50ff40daa.yml
3-
openapi_spec_hash: b0fc4933c9280be98c637752c5cb3acc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-f91fca43a53e3f300b13563cdde08580045fef6d16a2e78201b46d2198c34f7b.yml
3+
openapi_spec_hash: 2098c28a2cce3057fdcc32cc6c474b8f
44
config_hash: 6c2c7f9a9019f8299e3fa94c6ac190d1

src/anthropic/types/beta/beta_tool_result_block_param.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
from .beta_text_block_param import BetaTextBlockParam
99
from .beta_image_block_param import BetaImageBlockParam
1010
from .beta_search_result_block_param import BetaSearchResultBlockParam
11+
from .beta_request_document_block_param import BetaRequestDocumentBlockParam
1112
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
1213

1314
__all__ = ["BetaToolResultBlockParam", "Content"]
1415

15-
Content: TypeAlias = Union[BetaTextBlockParam, BetaImageBlockParam, BetaSearchResultBlockParam]
16+
Content: TypeAlias = Union[
17+
BetaTextBlockParam, BetaImageBlockParam, BetaSearchResultBlockParam, BetaRequestDocumentBlockParam
18+
]
1619

1720

1821
class BetaToolResultBlockParam(TypedDict, total=False):

src/anthropic/types/tool_result_block_param.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77

88
from .text_block_param import TextBlockParam
99
from .image_block_param import ImageBlockParam
10+
from .document_block_param import DocumentBlockParam
1011
from .search_result_block_param import SearchResultBlockParam
1112
from .cache_control_ephemeral_param import CacheControlEphemeralParam
1213

1314
__all__ = ["ToolResultBlockParam", "Content"]
1415

15-
Content: TypeAlias = Union[TextBlockParam, ImageBlockParam, SearchResultBlockParam]
16+
Content: TypeAlias = Union[TextBlockParam, ImageBlockParam, SearchResultBlockParam, DocumentBlockParam]
1617

1718

1819
class ToolResultBlockParam(TypedDict, total=False):

0 commit comments

Comments
 (0)