anthropic 0.76.0__py3-none-any.whl → 0.77.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. anthropic/_base_client.py +5 -2
  2. anthropic/_compat.py +3 -3
  3. anthropic/_utils/_json.py +35 -0
  4. anthropic/_version.py +1 -1
  5. anthropic/lib/_parse/_response.py +29 -1
  6. anthropic/lib/streaming/__init__.py +3 -0
  7. anthropic/lib/streaming/_messages.py +74 -40
  8. anthropic/lib/streaming/_types.py +42 -2
  9. anthropic/resources/beta/messages/messages.py +170 -59
  10. anthropic/resources/messages/messages.py +407 -5
  11. anthropic/types/__init__.py +7 -0
  12. anthropic/types/beta/beta_code_execution_tool_20250522_param.py +1 -0
  13. anthropic/types/beta/beta_code_execution_tool_20250825_param.py +1 -0
  14. anthropic/types/beta/beta_memory_tool_20250818_param.py +1 -0
  15. anthropic/types/beta/beta_output_config_param.py +15 -1
  16. anthropic/types/beta/beta_server_tool_use_block.py +4 -4
  17. anthropic/types/beta/beta_tool_bash_20241022_param.py +1 -0
  18. anthropic/types/beta/beta_tool_bash_20250124_param.py +1 -0
  19. anthropic/types/beta/beta_tool_computer_use_20241022_param.py +1 -0
  20. anthropic/types/beta/beta_tool_computer_use_20250124_param.py +1 -0
  21. anthropic/types/beta/beta_tool_computer_use_20251124_param.py +1 -0
  22. anthropic/types/beta/beta_tool_param.py +1 -0
  23. anthropic/types/beta/beta_tool_search_tool_bm25_20251119_param.py +1 -0
  24. anthropic/types/beta/beta_tool_search_tool_regex_20251119_param.py +1 -0
  25. anthropic/types/beta/beta_tool_text_editor_20241022_param.py +1 -0
  26. anthropic/types/beta/beta_tool_text_editor_20250124_param.py +1 -0
  27. anthropic/types/beta/beta_tool_text_editor_20250429_param.py +1 -0
  28. anthropic/types/beta/beta_tool_text_editor_20250728_param.py +1 -0
  29. anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +1 -0
  30. anthropic/types/beta/beta_web_search_tool_20250305_param.py +1 -0
  31. anthropic/types/beta/beta_web_search_tool_result_error_code.py +1 -1
  32. anthropic/types/beta/message_count_tokens_params.py +9 -5
  33. anthropic/types/beta/message_create_params.py +9 -5
  34. anthropic/types/beta/messages/batch_create_params.py +2 -9
  35. anthropic/types/json_output_format_param.py +15 -0
  36. anthropic/types/message_count_tokens_params.py +4 -0
  37. anthropic/types/message_create_params.py +4 -0
  38. anthropic/types/output_config_param.py +19 -0
  39. anthropic/types/parsed_message.py +56 -0
  40. anthropic/types/tool_bash_20250124_param.py +3 -0
  41. anthropic/types/tool_param.py +3 -0
  42. anthropic/types/tool_text_editor_20250124_param.py +3 -0
  43. anthropic/types/tool_text_editor_20250429_param.py +3 -0
  44. anthropic/types/tool_text_editor_20250728_param.py +3 -0
  45. anthropic/types/web_search_tool_20250305_param.py +3 -0
  46. anthropic/types/web_search_tool_request_error_param.py +8 -1
  47. anthropic/types/web_search_tool_result_error.py +8 -1
  48. {anthropic-0.76.0.dist-info → anthropic-0.77.0.dist-info}/METADATA +1 -1
  49. {anthropic-0.76.0.dist-info → anthropic-0.77.0.dist-info}/RECORD +51 -47
  50. {anthropic-0.76.0.dist-info → anthropic-0.77.0.dist-info}/WHEEL +0 -0
  51. {anthropic-0.76.0.dist-info → anthropic-0.77.0.dist-info}/licenses/LICENSE +0 -0
@@ -32,6 +32,11 @@ from .text_citation import TextCitation as TextCitation
32
32
  from .beta_api_error import BetaAPIError as BetaAPIError
33
33
  from .cache_creation import CacheCreation as CacheCreation
34
34
  from .metadata_param import MetadataParam as MetadataParam
35
+ from .parsed_message import (
36
+ ParsedMessage as ParsedMessage,
37
+ ParsedTextBlock as ParsedTextBlock,
38
+ ParsedContentBlock as ParsedContentBlock,
39
+ )
35
40
  from .thinking_block import ThinkingBlock as ThinkingBlock
36
41
  from .thinking_delta import ThinkingDelta as ThinkingDelta
37
42
  from .tool_use_block import ToolUseBlock as ToolUseBlock
@@ -51,6 +56,7 @@ from .content_block_param import ContentBlockParam as ContentBlockParam
51
56
  from .message_delta_event import MessageDeltaEvent as MessageDeltaEvent
52
57
  from .message_delta_usage import MessageDeltaUsage as MessageDeltaUsage
53
58
  from .message_start_event import MessageStartEvent as MessageStartEvent
59
+ from .output_config_param import OutputConfigParam as OutputConfigParam
54
60
  from .text_citation_param import TextCitationParam as TextCitationParam
55
61
  from .anthropic_beta_param import AnthropicBetaParam as AnthropicBetaParam
56
62
  from .beta_not_found_error import BetaNotFoundError as BetaNotFoundError
@@ -85,6 +91,7 @@ from .tool_result_block_param import ToolResultBlockParam as ToolResultBlockPara
85
91
  from .web_search_result_block import WebSearchResultBlock as WebSearchResultBlock
86
92
  from .completion_create_params import CompletionCreateParams as CompletionCreateParams
87
93
  from .content_block_stop_event import ContentBlockStopEvent as ContentBlockStopEvent
94
+ from .json_output_format_param import JSONOutputFormatParam as JSONOutputFormatParam
88
95
  from .raw_message_stream_event import RawMessageStreamEvent as RawMessageStreamEvent
89
96
  from .tool_bash_20250124_param import ToolBash20250124Param as ToolBash20250124Param
90
97
  from .base64_image_source_param import Base64ImageSourceParam as Base64ImageSourceParam
@@ -31,3 +31,4 @@ class BetaCodeExecutionTool20250522Param(TypedDict, total=False):
31
31
  """
32
32
 
33
33
  strict: bool
34
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -31,3 +31,4 @@ class BetaCodeExecutionTool20250825Param(TypedDict, total=False):
31
31
  """
32
32
 
33
33
  strict: bool
34
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -33,3 +33,4 @@ class BetaMemoryTool20250818Param(TypedDict, total=False):
33
33
  input_examples: Iterable[Dict[str, object]]
34
34
 
35
35
  strict: bool
36
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -5,9 +5,23 @@ from __future__ import annotations
5
5
  from typing import Optional
6
6
  from typing_extensions import Literal, TypedDict
7
7
 
8
+ from .beta_json_output_format_param import BetaJSONOutputFormatParam
9
+
8
10
  __all__ = ["BetaOutputConfigParam"]
9
11
 
10
12
 
11
13
  class BetaOutputConfigParam(TypedDict, total=False):
12
14
  effort: Optional[Literal["low", "medium", "high"]]
13
- """All possible effort levels."""
15
+ """How much effort the model should put into its response.
16
+
17
+ Higher effort levels may result in more thorough analysis but take longer.
18
+
19
+ Valid values are `low`, `medium`, or `high`.
20
+ """
21
+
22
+ format: Optional[BetaJSONOutputFormatParam]
23
+ """A schema to specify Claude's output format in responses.
24
+
25
+ See
26
+ [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
27
+ """
@@ -1,6 +1,6 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import Dict, Union
3
+ from typing import Dict, Union, Optional
4
4
  from typing_extensions import Literal, Annotated, TypeAlias
5
5
 
6
6
  from ..._utils import PropertyInfo
@@ -16,9 +16,6 @@ Caller: TypeAlias = Annotated[Union[BetaDirectCaller, BetaServerToolCaller], Pro
16
16
  class BetaServerToolUseBlock(BaseModel):
17
17
  id: str
18
18
 
19
- caller: Caller
20
- """Tool invocation directly from the model."""
21
-
22
19
  input: Dict[str, object]
23
20
 
24
21
  name: Literal[
@@ -32,3 +29,6 @@ class BetaServerToolUseBlock(BaseModel):
32
29
  ]
33
30
 
34
31
  type: Literal["server_tool_use"]
32
+
33
+ caller: Optional[Caller] = None
34
+ """Tool invocation directly from the model."""
@@ -33,3 +33,4 @@ class BetaToolBash20241022Param(TypedDict, total=False):
33
33
  input_examples: Iterable[Dict[str, object]]
34
34
 
35
35
  strict: bool
36
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -33,3 +33,4 @@ class BetaToolBash20250124Param(TypedDict, total=False):
33
33
  input_examples: Iterable[Dict[str, object]]
34
34
 
35
35
  strict: bool
36
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -42,3 +42,4 @@ class BetaToolComputerUse20241022Param(TypedDict, total=False):
42
42
  input_examples: Iterable[Dict[str, object]]
43
43
 
44
44
  strict: bool
45
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -42,3 +42,4 @@ class BetaToolComputerUse20250124Param(TypedDict, total=False):
42
42
  input_examples: Iterable[Dict[str, object]]
43
43
 
44
44
  strict: bool
45
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -45,3 +45,4 @@ class BetaToolComputerUse20251124Param(TypedDict, total=False):
45
45
  input_examples: Iterable[Dict[str, object]]
46
46
 
47
47
  strict: bool
48
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -64,5 +64,6 @@ class BetaToolParam(TypedDict, total=False):
64
64
  input_examples: Iterable[Dict[str, object]]
65
65
 
66
66
  strict: bool
67
+ """When true, guarantees schema validation on tool names and inputs"""
67
68
 
68
69
  type: Optional[Literal["custom"]]
@@ -31,3 +31,4 @@ class BetaToolSearchToolBm25_20251119Param(TypedDict, total=False):
31
31
  """
32
32
 
33
33
  strict: bool
34
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -31,3 +31,4 @@ class BetaToolSearchToolRegex20251119Param(TypedDict, total=False):
31
31
  """
32
32
 
33
33
  strict: bool
34
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -33,3 +33,4 @@ class BetaToolTextEditor20241022Param(TypedDict, total=False):
33
33
  input_examples: Iterable[Dict[str, object]]
34
34
 
35
35
  strict: bool
36
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -33,3 +33,4 @@ class BetaToolTextEditor20250124Param(TypedDict, total=False):
33
33
  input_examples: Iterable[Dict[str, object]]
34
34
 
35
35
  strict: bool
36
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -33,3 +33,4 @@ class BetaToolTextEditor20250429Param(TypedDict, total=False):
33
33
  input_examples: Iterable[Dict[str, object]]
34
34
 
35
35
  strict: bool
36
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -39,3 +39,4 @@ class BetaToolTextEditor20250728Param(TypedDict, total=False):
39
39
  """
40
40
 
41
41
  strict: bool
42
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -54,3 +54,4 @@ class BetaWebFetchTool20250910Param(TypedDict, total=False):
54
54
  """Maximum number of times the tool can be used in the API request."""
55
55
 
56
56
  strict: bool
57
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -72,6 +72,7 @@ class BetaWebSearchTool20250305Param(TypedDict, total=False):
72
72
  """Maximum number of times the tool can be used in the API request."""
73
73
 
74
74
  strict: bool
75
+ """When true, guarantees schema validation on tool names and inputs"""
75
76
 
76
77
  user_location: Optional[UserLocation]
77
78
  """Parameters for the user's location.
@@ -5,5 +5,5 @@ from typing_extensions import Literal, TypeAlias
5
5
  __all__ = ["BetaWebSearchToolResultErrorCode"]
6
6
 
7
7
  BetaWebSearchToolResultErrorCode: TypeAlias = Literal[
8
- "invalid_tool_input", "unavailable", "max_uses_exceeded", "too_many_requests", "query_too_long"
8
+ "invalid_tool_input", "unavailable", "max_uses_exceeded", "too_many_requests", "query_too_long", "request_too_large"
9
9
  ]
@@ -125,13 +125,17 @@ class MessageCountTokensParams(TypedDict, total=False):
125
125
  """MCP servers to be utilized in this request"""
126
126
 
127
127
  output_config: BetaOutputConfigParam
128
- """Configuration options for the model's output.
129
-
130
- Controls aspects like how much effort the model puts into its response.
131
- """
128
+ """Configuration options for the model's output, such as the output format."""
132
129
 
133
130
  output_format: Optional[BetaJSONOutputFormatParam]
134
- """A schema to specify Claude's output format in responses."""
131
+ """Deprecated: Use `output_config.format` instead.
132
+
133
+ See
134
+ [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
135
+
136
+ A schema to specify Claude's output format in responses. This parameter will be
137
+ removed in a future release.
138
+ """
135
139
 
136
140
  system: Union[str, Iterable[BetaTextBlockParam]]
137
141
  """System prompt.
@@ -134,13 +134,17 @@ class MessageCreateParamsBase(TypedDict, total=False):
134
134
  """An object describing metadata about the request."""
135
135
 
136
136
  output_config: BetaOutputConfigParam
137
- """Configuration options for the model's output.
138
-
139
- Controls aspects like how much effort the model puts into its response.
140
- """
137
+ """Configuration options for the model's output, such as the output format."""
141
138
 
142
139
  output_format: Optional[BetaJSONOutputFormatParam]
143
- """A schema to specify Claude's output format in responses."""
140
+ """Deprecated: Use `output_config.format` instead.
141
+
142
+ See
143
+ [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
144
+
145
+ A schema to specify Claude's output format in responses. This parameter will be
146
+ removed in a future release.
147
+ """
144
148
 
145
149
  service_tier: Literal["auto", "standard_only"]
146
150
  """
@@ -2,14 +2,14 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Literal, Iterable
5
+ from typing import List, Iterable
6
6
  from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
8
  from ...._utils import PropertyInfo
9
9
  from ...anthropic_beta_param import AnthropicBetaParam
10
10
  from ..message_create_params import MessageCreateParamsNonStreaming
11
11
 
12
- __all__ = ["BatchCreateParams", "Request", "RequestParamsOutputFormat"]
12
+ __all__ = ["BatchCreateParams", "Request"]
13
13
 
14
14
 
15
15
  class BatchCreateParams(TypedDict, total=False):
@@ -23,13 +23,6 @@ class BatchCreateParams(TypedDict, total=False):
23
23
  """Optional header to specify the beta version(s) you want to use."""
24
24
 
25
25
 
26
- class RequestParamsOutputFormat(TypedDict, total=False):
27
- schema: Required[object]
28
- """The JSON schema of the format"""
29
-
30
- type: Required[Literal["json_schema"]]
31
-
32
-
33
26
  class Request(TypedDict, total=False):
34
27
  custom_id: Required[str]
35
28
  """Developer-provided ID created for each request in a Message Batch.
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ __all__ = ["JSONOutputFormatParam"]
9
+
10
+
11
+ class JSONOutputFormatParam(TypedDict, total=False):
12
+ schema: Required[Dict[str, object]]
13
+ """The JSON schema of the format"""
14
+
15
+ type: Required[Literal["json_schema"]]
@@ -9,6 +9,7 @@ from .model_param import ModelParam
9
9
  from .message_param import MessageParam
10
10
  from .text_block_param import TextBlockParam
11
11
  from .tool_choice_param import ToolChoiceParam
12
+ from .output_config_param import OutputConfigParam
12
13
  from .thinking_config_param import ThinkingConfigParam
13
14
  from .message_count_tokens_tool_param import MessageCountTokensToolParam
14
15
 
@@ -91,6 +92,9 @@ class MessageCountTokensParams(TypedDict, total=False):
91
92
  details and options.
92
93
  """
93
94
 
95
+ output_config: OutputConfigParam
96
+ """Configuration options for the model's output, such as the output format."""
97
+
94
98
  system: Union[str, Iterable[TextBlockParam]]
95
99
  """System prompt.
96
100
 
@@ -12,6 +12,7 @@ from .metadata_param import MetadataParam
12
12
  from .text_block_param import TextBlockParam
13
13
  from .tool_union_param import ToolUnionParam
14
14
  from .tool_choice_param import ToolChoiceParam
15
+ from .output_config_param import OutputConfigParam
15
16
  from .thinking_config_param import ThinkingConfigParam
16
17
  from .tool_choice_any_param import ToolChoiceAnyParam
17
18
  from .tool_choice_auto_param import ToolChoiceAutoParam
@@ -118,6 +119,9 @@ class MessageCreateParamsBase(TypedDict, total=False):
118
119
  metadata: MetadataParam
119
120
  """An object describing metadata about the request."""
120
121
 
122
+ output_config: OutputConfigParam
123
+ """Configuration options for the model's output, such as the output format."""
124
+
121
125
  service_tier: Literal["auto", "standard_only"]
122
126
  """
123
127
  Determines whether to use priority capacity (if available) or standard capacity
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import TypedDict
7
+
8
+ from .json_output_format_param import JSONOutputFormatParam
9
+
10
+ __all__ = ["OutputConfigParam"]
11
+
12
+
13
+ class OutputConfigParam(TypedDict, total=False):
14
+ format: Optional[JSONOutputFormatParam]
15
+ """A schema to specify Claude's output format in responses.
16
+
17
+ See
18
+ [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
19
+ """
@@ -0,0 +1,56 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING, List, Union, Generic, Optional
4
+ from typing_extensions import TypeVar, Annotated, TypeAlias
5
+
6
+ from .._utils import PropertyInfo
7
+ from .message import Message
8
+ from .text_block import TextBlock
9
+ from .thinking_block import ThinkingBlock
10
+ from .tool_use_block import ToolUseBlock
11
+ from .server_tool_use_block import ServerToolUseBlock
12
+ from .redacted_thinking_block import RedactedThinkingBlock
13
+ from .web_search_tool_result_block import WebSearchToolResultBlock
14
+
15
+ ResponseFormatT = TypeVar("ResponseFormatT", default=None)
16
+
17
+
18
+ __all__ = [
19
+ "ParsedTextBlock",
20
+ "ParsedContentBlock",
21
+ "ParsedMessage",
22
+ ]
23
+
24
+
25
+ class ParsedTextBlock(TextBlock, Generic[ResponseFormatT]):
26
+ parsed_output: Optional[ResponseFormatT] = None
27
+
28
+ __api_exclude__ = {"parsed_output"}
29
+
30
+
31
+ # Note that generic unions are not valid for pydantic at runtime
32
+ ParsedContentBlock: TypeAlias = Annotated[
33
+ Union[
34
+ ParsedTextBlock[ResponseFormatT],
35
+ ThinkingBlock,
36
+ RedactedThinkingBlock,
37
+ ToolUseBlock,
38
+ ServerToolUseBlock,
39
+ WebSearchToolResultBlock,
40
+ ],
41
+ PropertyInfo(discriminator="type"),
42
+ ]
43
+
44
+
45
+ class ParsedMessage(Message, Generic[ResponseFormatT]):
46
+ if TYPE_CHECKING:
47
+ content: List[ParsedContentBlock[ResponseFormatT]] # type: ignore[assignment]
48
+ else:
49
+ content: List[ParsedContentBlock]
50
+
51
+ @property
52
+ def parsed_output(self) -> Optional[ResponseFormatT]:
53
+ for content in self.content:
54
+ if content.type == "text" and content.parsed_output:
55
+ return content.parsed_output
56
+ return None
@@ -21,3 +21,6 @@ class ToolBash20250124Param(TypedDict, total=False):
21
21
 
22
22
  cache_control: Optional[CacheControlEphemeralParam]
23
23
  """Create a cache control breakpoint at this content block."""
24
+
25
+ strict: bool
26
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -56,4 +56,7 @@ class ToolParam(TypedDict, total=False):
56
56
  aspects of the tool input JSON schema.
57
57
  """
58
58
 
59
+ strict: bool
60
+ """When true, guarantees schema validation on tool names and inputs"""
61
+
59
62
  type: Optional[Literal["custom"]]
@@ -21,3 +21,6 @@ class ToolTextEditor20250124Param(TypedDict, total=False):
21
21
 
22
22
  cache_control: Optional[CacheControlEphemeralParam]
23
23
  """Create a cache control breakpoint at this content block."""
24
+
25
+ strict: bool
26
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -21,3 +21,6 @@ class ToolTextEditor20250429Param(TypedDict, total=False):
21
21
 
22
22
  cache_control: Optional[CacheControlEphemeralParam]
23
23
  """Create a cache control breakpoint at this content block."""
24
+
25
+ strict: bool
26
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -27,3 +27,6 @@ class ToolTextEditor20250728Param(TypedDict, total=False):
27
27
 
28
28
  If not specified, defaults to displaying the full file.
29
29
  """
30
+
31
+ strict: bool
32
+ """When true, guarantees schema validation on tool names and inputs"""
@@ -63,6 +63,9 @@ class WebSearchTool20250305Param(TypedDict, total=False):
63
63
  max_uses: Optional[int]
64
64
  """Maximum number of times the tool can be used in the API request."""
65
65
 
66
+ strict: bool
67
+ """When true, guarantees schema validation on tool names and inputs"""
68
+
66
69
  user_location: Optional[UserLocation]
67
70
  """Parameters for the user's location.
68
71
 
@@ -9,7 +9,14 @@ __all__ = ["WebSearchToolRequestErrorParam"]
9
9
 
10
10
  class WebSearchToolRequestErrorParam(TypedDict, total=False):
11
11
  error_code: Required[
12
- Literal["invalid_tool_input", "unavailable", "max_uses_exceeded", "too_many_requests", "query_too_long"]
12
+ Literal[
13
+ "invalid_tool_input",
14
+ "unavailable",
15
+ "max_uses_exceeded",
16
+ "too_many_requests",
17
+ "query_too_long",
18
+ "request_too_large",
19
+ ]
13
20
  ]
14
21
 
15
22
  type: Required[Literal["web_search_tool_result_error"]]
@@ -8,6 +8,13 @@ __all__ = ["WebSearchToolResultError"]
8
8
 
9
9
 
10
10
  class WebSearchToolResultError(BaseModel):
11
- error_code: Literal["invalid_tool_input", "unavailable", "max_uses_exceeded", "too_many_requests", "query_too_long"]
11
+ error_code: Literal[
12
+ "invalid_tool_input",
13
+ "unavailable",
14
+ "max_uses_exceeded",
15
+ "too_many_requests",
16
+ "query_too_long",
17
+ "request_too_large",
18
+ ]
12
19
 
13
20
  type: Literal["web_search_tool_result_error"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anthropic
3
- Version: 0.76.0
3
+ Version: 0.77.0
4
4
  Summary: The official Python library for the anthropic API
5
5
  Project-URL: Homepage, https://github.com/anthropics/anthropic-sdk-python
6
6
  Project-URL: Repository, https://github.com/anthropics/anthropic-sdk-python