anthropic 0.74.1__py3-none-any.whl → 0.75.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.
- anthropic/_version.py +1 -1
- anthropic/lib/streaming/_beta_messages.py +1 -1
- anthropic/lib/tools/_beta_compaction_control.py +48 -0
- anthropic/lib/tools/_beta_functions.py +30 -8
- anthropic/lib/tools/_beta_runner.py +216 -34
- anthropic/resources/beta/messages/messages.py +72 -0
- anthropic/resources/messages/messages.py +2 -0
- anthropic/types/anthropic_beta_param.py +1 -0
- anthropic/types/beta/__init__.py +31 -0
- anthropic/types/beta/beta_code_execution_tool_20250522_param.py +9 -1
- anthropic/types/beta/beta_code_execution_tool_20250825_param.py +9 -1
- anthropic/types/beta/beta_content_block.py +2 -0
- anthropic/types/beta/beta_content_block_param.py +2 -0
- anthropic/types/beta/beta_direct_caller.py +11 -0
- anthropic/types/beta/beta_direct_caller_param.py +11 -0
- anthropic/types/beta/beta_mcp_tool_config_param.py +13 -0
- anthropic/types/beta/beta_mcp_tool_default_config_param.py +13 -0
- anthropic/types/beta/beta_mcp_toolset_param.py +28 -0
- anthropic/types/beta/beta_memory_tool_20250818_param.py +11 -1
- anthropic/types/beta/beta_output_config_param.py +13 -0
- anthropic/types/beta/beta_raw_content_block_start_event.py +2 -0
- anthropic/types/beta/beta_server_tool_caller.py +13 -0
- anthropic/types/beta/beta_server_tool_caller_param.py +13 -0
- anthropic/types/beta/beta_server_tool_use_block.py +20 -4
- anthropic/types/beta/beta_server_tool_use_block_param.py +19 -4
- anthropic/types/beta/beta_tool_bash_20241022_param.py +11 -1
- anthropic/types/beta/beta_tool_bash_20250124_param.py +11 -1
- anthropic/types/beta/beta_tool_computer_use_20241022_param.py +11 -1
- anthropic/types/beta/beta_tool_computer_use_20250124_param.py +11 -1
- anthropic/types/beta/beta_tool_computer_use_20251124_param.py +47 -0
- anthropic/types/beta/beta_tool_param.py +11 -1
- anthropic/types/beta/beta_tool_reference_block.py +13 -0
- anthropic/types/beta/beta_tool_reference_block_param.py +19 -0
- anthropic/types/beta/beta_tool_result_block_param.py +6 -1
- anthropic/types/beta/beta_tool_search_tool_bm25_20251119_param.py +33 -0
- anthropic/types/beta/beta_tool_search_tool_regex_20251119_param.py +33 -0
- anthropic/types/beta/beta_tool_search_tool_result_block.py +20 -0
- anthropic/types/beta/beta_tool_search_tool_result_block_param.py +25 -0
- anthropic/types/beta/beta_tool_search_tool_result_error.py +16 -0
- anthropic/types/beta/beta_tool_search_tool_result_error_param.py +13 -0
- anthropic/types/beta/beta_tool_search_tool_search_result_block.py +15 -0
- anthropic/types/beta/beta_tool_search_tool_search_result_block_param.py +16 -0
- anthropic/types/beta/beta_tool_text_editor_20241022_param.py +11 -1
- anthropic/types/beta/beta_tool_text_editor_20250124_param.py +11 -1
- anthropic/types/beta/beta_tool_text_editor_20250429_param.py +11 -1
- anthropic/types/beta/beta_tool_text_editor_20250728_param.py +11 -1
- anthropic/types/beta/beta_tool_union_param.py +8 -0
- anthropic/types/beta/beta_tool_use_block.py +11 -3
- anthropic/types/beta/beta_tool_use_block_param.py +10 -3
- anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +9 -1
- anthropic/types/beta/beta_web_search_tool_20250305_param.py +9 -1
- anthropic/types/beta/message_count_tokens_params.py +15 -0
- anthropic/types/beta/message_create_params.py +7 -0
- anthropic/types/beta/messages/batch_create_params.py +4 -4
- anthropic/types/messages/batch_create_params.py +2 -2
- anthropic/types/model.py +2 -0
- anthropic/types/model_param.py +2 -0
- {anthropic-0.74.1.dist-info → anthropic-0.75.0.dist-info}/METADATA +1 -1
- {anthropic-0.74.1.dist-info → anthropic-0.75.0.dist-info}/RECORD +61 -41
- {anthropic-0.74.1.dist-info → anthropic-0.75.0.dist-info}/WHEEL +0 -0
- {anthropic-0.74.1.dist-info → anthropic-0.75.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
from .beta_tool_reference_block import BetaToolReferenceBlock
|
|
8
|
+
|
|
9
|
+
__all__ = ["BetaToolSearchToolSearchResultBlock"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BetaToolSearchToolSearchResultBlock(BaseModel):
|
|
13
|
+
tool_references: List[BetaToolReferenceBlock]
|
|
14
|
+
|
|
15
|
+
type: Literal["tool_search_tool_search_result"]
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .beta_tool_reference_block_param import BetaToolReferenceBlockParam
|
|
9
|
+
|
|
10
|
+
__all__ = ["BetaToolSearchToolSearchResultBlockParam"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class BetaToolSearchToolSearchResultBlockParam(TypedDict, total=False):
|
|
14
|
+
tool_references: Required[Iterable[BetaToolReferenceBlockParam]]
|
|
15
|
+
|
|
16
|
+
type: Required[Literal["tool_search_tool_search_result"]]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
|
|
@@ -19,7 +19,17 @@ class BetaToolTextEditor20241022Param(TypedDict, total=False):
|
|
|
19
19
|
|
|
20
20
|
type: Required[Literal["text_editor_20241022"]]
|
|
21
21
|
|
|
22
|
+
allowed_callers: List[Literal["direct", "code_execution_20250825"]]
|
|
23
|
+
|
|
22
24
|
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
23
25
|
"""Create a cache control breakpoint at this content block."""
|
|
24
26
|
|
|
27
|
+
defer_loading: bool
|
|
28
|
+
"""If true, tool will not be included in initial system prompt.
|
|
29
|
+
|
|
30
|
+
Only loaded when returned via tool_reference from tool search.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
input_examples: Iterable[Dict[str, object]]
|
|
34
|
+
|
|
25
35
|
strict: bool
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
|
|
@@ -19,7 +19,17 @@ class BetaToolTextEditor20250124Param(TypedDict, total=False):
|
|
|
19
19
|
|
|
20
20
|
type: Required[Literal["text_editor_20250124"]]
|
|
21
21
|
|
|
22
|
+
allowed_callers: List[Literal["direct", "code_execution_20250825"]]
|
|
23
|
+
|
|
22
24
|
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
23
25
|
"""Create a cache control breakpoint at this content block."""
|
|
24
26
|
|
|
27
|
+
defer_loading: bool
|
|
28
|
+
"""If true, tool will not be included in initial system prompt.
|
|
29
|
+
|
|
30
|
+
Only loaded when returned via tool_reference from tool search.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
input_examples: Iterable[Dict[str, object]]
|
|
34
|
+
|
|
25
35
|
strict: bool
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
|
|
@@ -19,7 +19,17 @@ class BetaToolTextEditor20250429Param(TypedDict, total=False):
|
|
|
19
19
|
|
|
20
20
|
type: Required[Literal["text_editor_20250429"]]
|
|
21
21
|
|
|
22
|
+
allowed_callers: List[Literal["direct", "code_execution_20250825"]]
|
|
23
|
+
|
|
22
24
|
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
23
25
|
"""Create a cache control breakpoint at this content block."""
|
|
24
26
|
|
|
27
|
+
defer_loading: bool
|
|
28
|
+
"""If true, tool will not be included in initial system prompt.
|
|
29
|
+
|
|
30
|
+
Only loaded when returned via tool_reference from tool search.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
input_examples: Iterable[Dict[str, object]]
|
|
34
|
+
|
|
25
35
|
strict: bool
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
|
|
@@ -19,9 +19,19 @@ class BetaToolTextEditor20250728Param(TypedDict, total=False):
|
|
|
19
19
|
|
|
20
20
|
type: Required[Literal["text_editor_20250728"]]
|
|
21
21
|
|
|
22
|
+
allowed_callers: List[Literal["direct", "code_execution_20250825"]]
|
|
23
|
+
|
|
22
24
|
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
23
25
|
"""Create a cache control breakpoint at this content block."""
|
|
24
26
|
|
|
27
|
+
defer_loading: bool
|
|
28
|
+
"""If true, tool will not be included in initial system prompt.
|
|
29
|
+
|
|
30
|
+
Only loaded when returned via tool_reference from tool search.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
input_examples: Iterable[Dict[str, object]]
|
|
34
|
+
|
|
25
35
|
max_characters: Optional[int]
|
|
26
36
|
"""Maximum number of characters to display when viewing a file.
|
|
27
37
|
|
|
@@ -6,6 +6,7 @@ from typing import Union
|
|
|
6
6
|
from typing_extensions import TypeAlias
|
|
7
7
|
|
|
8
8
|
from .beta_tool_param import BetaToolParam
|
|
9
|
+
from .beta_mcp_toolset_param import BetaMCPToolsetParam
|
|
9
10
|
from .beta_tool_bash_20241022_param import BetaToolBash20241022Param
|
|
10
11
|
from .beta_tool_bash_20250124_param import BetaToolBash20250124Param
|
|
11
12
|
from .beta_memory_tool_20250818_param import BetaMemoryTool20250818Param
|
|
@@ -17,8 +18,11 @@ from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Para
|
|
|
17
18
|
from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param
|
|
18
19
|
from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param
|
|
19
20
|
from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param
|
|
21
|
+
from .beta_tool_computer_use_20251124_param import BetaToolComputerUse20251124Param
|
|
20
22
|
from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param
|
|
21
23
|
from .beta_code_execution_tool_20250825_param import BetaCodeExecutionTool20250825Param
|
|
24
|
+
from .beta_tool_search_tool_bm25_20251119_param import BetaToolSearchToolBm25_20251119Param
|
|
25
|
+
from .beta_tool_search_tool_regex_20251119_param import BetaToolSearchToolRegex20251119Param
|
|
22
26
|
|
|
23
27
|
__all__ = ["BetaToolUnionParam"]
|
|
24
28
|
|
|
@@ -32,9 +36,13 @@ BetaToolUnionParam: TypeAlias = Union[
|
|
|
32
36
|
BetaMemoryTool20250818Param,
|
|
33
37
|
BetaToolComputerUse20250124Param,
|
|
34
38
|
BetaToolTextEditor20241022Param,
|
|
39
|
+
BetaToolComputerUse20251124Param,
|
|
35
40
|
BetaToolTextEditor20250124Param,
|
|
36
41
|
BetaToolTextEditor20250429Param,
|
|
37
42
|
BetaToolTextEditor20250728Param,
|
|
38
43
|
BetaWebSearchTool20250305Param,
|
|
39
44
|
BetaWebFetchTool20250910Param,
|
|
45
|
+
BetaToolSearchToolBm25_20251119Param,
|
|
46
|
+
BetaToolSearchToolRegex20251119Param,
|
|
47
|
+
BetaMCPToolsetParam,
|
|
40
48
|
]
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Dict
|
|
4
|
-
from typing_extensions import Literal
|
|
3
|
+
from typing import Dict, Union, Optional
|
|
4
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
5
5
|
|
|
6
|
+
from ..._utils import PropertyInfo
|
|
6
7
|
from ..._models import BaseModel
|
|
8
|
+
from .beta_direct_caller import BetaDirectCaller
|
|
9
|
+
from .beta_server_tool_caller import BetaServerToolCaller
|
|
7
10
|
|
|
8
|
-
__all__ = ["BetaToolUseBlock"]
|
|
11
|
+
__all__ = ["BetaToolUseBlock", "Caller"]
|
|
12
|
+
|
|
13
|
+
Caller: TypeAlias = Annotated[Union[BetaDirectCaller, BetaServerToolCaller], PropertyInfo(discriminator="type")]
|
|
9
14
|
|
|
10
15
|
|
|
11
16
|
class BetaToolUseBlock(BaseModel):
|
|
@@ -16,3 +21,6 @@ class BetaToolUseBlock(BaseModel):
|
|
|
16
21
|
name: str
|
|
17
22
|
|
|
18
23
|
type: Literal["tool_use"]
|
|
24
|
+
|
|
25
|
+
caller: Optional[Caller] = None
|
|
26
|
+
"""Tool invocation directly from the model."""
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict, Optional
|
|
6
|
-
from typing_extensions import Literal, Required, TypedDict
|
|
5
|
+
from typing import Dict, Union, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
|
+
from .beta_direct_caller_param import BetaDirectCallerParam
|
|
9
|
+
from .beta_server_tool_caller_param import BetaServerToolCallerParam
|
|
8
10
|
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
|
|
9
11
|
|
|
10
|
-
__all__ = ["BetaToolUseBlockParam"]
|
|
12
|
+
__all__ = ["BetaToolUseBlockParam", "Caller"]
|
|
13
|
+
|
|
14
|
+
Caller: TypeAlias = Union[BetaDirectCallerParam, BetaServerToolCallerParam]
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
class BetaToolUseBlockParam(TypedDict, total=False):
|
|
@@ -21,3 +25,6 @@ class BetaToolUseBlockParam(TypedDict, total=False):
|
|
|
21
25
|
|
|
22
26
|
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
23
27
|
"""Create a cache control breakpoint at this content block."""
|
|
28
|
+
|
|
29
|
+
caller: Caller
|
|
30
|
+
"""Tool invocation directly from the model."""
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import List, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from ..._types import SequenceNotStr
|
|
@@ -21,6 +21,8 @@ class BetaWebFetchTool20250910Param(TypedDict, total=False):
|
|
|
21
21
|
|
|
22
22
|
type: Required[Literal["web_fetch_20250910"]]
|
|
23
23
|
|
|
24
|
+
allowed_callers: List[Literal["direct", "code_execution_20250825"]]
|
|
25
|
+
|
|
24
26
|
allowed_domains: Optional[SequenceNotStr[str]]
|
|
25
27
|
"""List of domains to allow fetching from"""
|
|
26
28
|
|
|
@@ -36,6 +38,12 @@ class BetaWebFetchTool20250910Param(TypedDict, total=False):
|
|
|
36
38
|
Citations are disabled by default.
|
|
37
39
|
"""
|
|
38
40
|
|
|
41
|
+
defer_loading: bool
|
|
42
|
+
"""If true, tool will not be included in initial system prompt.
|
|
43
|
+
|
|
44
|
+
Only loaded when returned via tool_reference from tool search.
|
|
45
|
+
"""
|
|
46
|
+
|
|
39
47
|
max_content_tokens: Optional[int]
|
|
40
48
|
"""Maximum number of tokens used by including web page text content in the context.
|
|
41
49
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import List, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from ..._types import SequenceNotStr
|
|
@@ -40,6 +40,8 @@ class BetaWebSearchTool20250305Param(TypedDict, total=False):
|
|
|
40
40
|
|
|
41
41
|
type: Required[Literal["web_search_20250305"]]
|
|
42
42
|
|
|
43
|
+
allowed_callers: List[Literal["direct", "code_execution_20250825"]]
|
|
44
|
+
|
|
43
45
|
allowed_domains: Optional[SequenceNotStr[str]]
|
|
44
46
|
"""If provided, only these domains will be included in results.
|
|
45
47
|
|
|
@@ -55,6 +57,12 @@ class BetaWebSearchTool20250305Param(TypedDict, total=False):
|
|
|
55
57
|
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
56
58
|
"""Create a cache control breakpoint at this content block."""
|
|
57
59
|
|
|
60
|
+
defer_loading: bool
|
|
61
|
+
"""If true, tool will not be included in initial system prompt.
|
|
62
|
+
|
|
63
|
+
Only loaded when returned via tool_reference from tool search.
|
|
64
|
+
"""
|
|
65
|
+
|
|
58
66
|
max_uses: Optional[int]
|
|
59
67
|
"""Maximum number of times the tool can be used in the API request."""
|
|
60
68
|
|
|
@@ -11,7 +11,9 @@ from .beta_tool_param import BetaToolParam
|
|
|
11
11
|
from .beta_message_param import BetaMessageParam
|
|
12
12
|
from ..anthropic_beta_param import AnthropicBetaParam
|
|
13
13
|
from .beta_text_block_param import BetaTextBlockParam
|
|
14
|
+
from .beta_mcp_toolset_param import BetaMCPToolsetParam
|
|
14
15
|
from .beta_tool_choice_param import BetaToolChoiceParam
|
|
16
|
+
from .beta_output_config_param import BetaOutputConfigParam
|
|
15
17
|
from .beta_thinking_config_param import BetaThinkingConfigParam
|
|
16
18
|
from .beta_json_output_format_param import BetaJSONOutputFormatParam
|
|
17
19
|
from .beta_tool_bash_20241022_param import BetaToolBash20241022Param
|
|
@@ -26,8 +28,11 @@ from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Para
|
|
|
26
28
|
from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param
|
|
27
29
|
from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param
|
|
28
30
|
from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param
|
|
31
|
+
from .beta_tool_computer_use_20251124_param import BetaToolComputerUse20251124Param
|
|
29
32
|
from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param
|
|
30
33
|
from .beta_code_execution_tool_20250825_param import BetaCodeExecutionTool20250825Param
|
|
34
|
+
from .beta_tool_search_tool_bm25_20251119_param import BetaToolSearchToolBm25_20251119Param
|
|
35
|
+
from .beta_tool_search_tool_regex_20251119_param import BetaToolSearchToolRegex20251119Param
|
|
31
36
|
from .beta_request_mcp_server_url_definition_param import BetaRequestMCPServerURLDefinitionParam
|
|
32
37
|
|
|
33
38
|
__all__ = ["MessageCountTokensParams", "Tool"]
|
|
@@ -119,6 +124,12 @@ class MessageCountTokensParams(TypedDict, total=False):
|
|
|
119
124
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam]
|
|
120
125
|
"""MCP servers to be utilized in this request"""
|
|
121
126
|
|
|
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
|
+
"""
|
|
132
|
+
|
|
122
133
|
output_format: Optional[BetaJSONOutputFormatParam]
|
|
123
134
|
"""A schema to specify Claude's output format in responses."""
|
|
124
135
|
|
|
@@ -241,9 +252,13 @@ Tool: TypeAlias = Union[
|
|
|
241
252
|
BetaMemoryTool20250818Param,
|
|
242
253
|
BetaToolComputerUse20250124Param,
|
|
243
254
|
BetaToolTextEditor20241022Param,
|
|
255
|
+
BetaToolComputerUse20251124Param,
|
|
244
256
|
BetaToolTextEditor20250124Param,
|
|
245
257
|
BetaToolTextEditor20250429Param,
|
|
246
258
|
BetaToolTextEditor20250728Param,
|
|
247
259
|
BetaWebSearchTool20250305Param,
|
|
248
260
|
BetaWebFetchTool20250910Param,
|
|
261
|
+
BetaToolSearchToolBm25_20251119Param,
|
|
262
|
+
BetaToolSearchToolRegex20251119Param,
|
|
263
|
+
BetaMCPToolsetParam,
|
|
249
264
|
]
|
|
@@ -16,6 +16,7 @@ from .beta_container_params import BetaContainerParams
|
|
|
16
16
|
from .beta_text_block_param import BetaTextBlockParam
|
|
17
17
|
from .beta_tool_union_param import BetaToolUnionParam
|
|
18
18
|
from .beta_tool_choice_param import BetaToolChoiceParam
|
|
19
|
+
from .beta_output_config_param import BetaOutputConfigParam
|
|
19
20
|
from .beta_thinking_config_param import BetaThinkingConfigParam
|
|
20
21
|
from .beta_json_output_format_param import BetaJSONOutputFormatParam
|
|
21
22
|
from .beta_context_management_config_param import BetaContextManagementConfigParam
|
|
@@ -132,6 +133,12 @@ class MessageCreateParamsBase(TypedDict, total=False):
|
|
|
132
133
|
metadata: BetaMetadataParam
|
|
133
134
|
"""An object describing metadata about the request."""
|
|
134
135
|
|
|
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
|
+
"""
|
|
141
|
+
|
|
135
142
|
output_format: Optional[BetaJSONOutputFormatParam]
|
|
136
143
|
"""A schema to specify Claude's output format in responses."""
|
|
137
144
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List, Iterable
|
|
6
|
-
from typing_extensions import
|
|
5
|
+
from typing import List, Literal, Iterable
|
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
from ...._utils import PropertyInfo
|
|
9
9
|
from ...anthropic_beta_param import AnthropicBetaParam
|
|
@@ -43,6 +43,6 @@ class Request(TypedDict, total=False):
|
|
|
43
43
|
params: Required[MessageCreateParamsNonStreaming]
|
|
44
44
|
"""Messages API creation parameters for the individual request.
|
|
45
45
|
|
|
46
|
-
See the [Messages API reference](/en/api/messages) for
|
|
47
|
-
available parameters.
|
|
46
|
+
See the [Messages API reference](https://docs.claude.com/en/api/messages) for
|
|
47
|
+
full documentation on available parameters.
|
|
48
48
|
"""
|
|
@@ -31,6 +31,6 @@ class Request(TypedDict, total=False):
|
|
|
31
31
|
params: Required[MessageCreateParamsNonStreaming]
|
|
32
32
|
"""Messages API creation parameters for the individual request.
|
|
33
33
|
|
|
34
|
-
See the [Messages API reference](/en/api/messages) for
|
|
35
|
-
available parameters.
|
|
34
|
+
See the [Messages API reference](https://docs.claude.com/en/api/messages) for
|
|
35
|
+
full documentation on available parameters.
|
|
36
36
|
"""
|
anthropic/types/model.py
CHANGED
anthropic/types/model_param.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.75.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
|