diff --git a/.stats.yml b/.stats.yml index 6c87def4..2d482a8b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 10 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fe4fbf0720b4ea03b05ff5225d36c94e06ab7aadbc4b227d0d35c4522b60bdb7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-cf96271afd65b396dc71c4e897d1d55a9526c122e3890bc87b5ff33316c93853.yml diff --git a/api.md b/api.md index ef21566a..1ebd122d 100644 --- a/api.md +++ b/api.md @@ -6,6 +6,7 @@ Types: from anthropic.types import ( ContentBlock, ContentBlockDeltaEvent, + ContentBlockParam, ContentBlockStartEvent, ContentBlockStopEvent, ImageBlockParam, diff --git a/src/anthropic/types/__init__.py b/src/anthropic/types/__init__.py index c67e5e3e..0125a215 100644 --- a/src/anthropic/types/__init__.py +++ b/src/anthropic/types/__init__.py @@ -22,6 +22,7 @@ from .tool_choice_param import ToolChoiceParam as ToolChoiceParam from .message_stop_event import MessageStopEvent as MessageStopEvent from .beta_error_response import BetaErrorResponse as BetaErrorResponse +from .content_block_param import ContentBlockParam as ContentBlockParam from .message_delta_event import MessageDeltaEvent as MessageDeltaEvent from .message_delta_usage import MessageDeltaUsage as MessageDeltaUsage from .message_start_event import MessageStartEvent as MessageStartEvent diff --git a/src/anthropic/types/content_block_param.py b/src/anthropic/types/content_block_param.py new file mode 100644 index 00000000..65e9bd4a --- /dev/null +++ b/src/anthropic/types/content_block_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .text_block_param import TextBlockParam +from .image_block_param import ImageBlockParam +from .tool_use_block_param import ToolUseBlockParam +from .tool_result_block_param import ToolResultBlockParam + +__all__ = ["ContentBlockParam"] + +ContentBlockParam: TypeAlias = Union[TextBlockParam, ImageBlockParam, ToolUseBlockParam, ToolResultBlockParam]