anthropic 1.15.2 → 1.16.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +10 -10
- data/lib/anthropic/helpers/tools/compaction_control.rb +105 -0
- data/lib/anthropic/helpers/tools/runner.rb +126 -13
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_code_execution_tool_20250522.rb +28 -1
- data/lib/anthropic/models/beta/beta_code_execution_tool_20250825.rb +28 -1
- data/lib/anthropic/models/beta/beta_content_block.rb +3 -1
- data/lib/anthropic/models/beta/beta_content_block_param.rb +3 -1
- data/lib/anthropic/models/beta/beta_direct_caller.rb +21 -0
- data/lib/anthropic/models/beta/beta_mcp_tool_config.rb +27 -0
- data/lib/anthropic/models/beta/beta_mcp_tool_default_config.rb +27 -0
- data/lib/anthropic/models/beta/beta_mcp_toolset.rb +58 -0
- data/lib/anthropic/models/beta/beta_memory_tool_20250818.rb +36 -1
- data/lib/anthropic/models/beta/beta_message.rb +2 -2
- data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_output_config.rb +34 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +5 -3
- data/lib/anthropic/models/beta/beta_server_tool_caller.rb +27 -0
- data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +32 -1
- data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +33 -1
- data/lib/anthropic/models/beta/beta_tool.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_bash_20241022.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_bash_20250124.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_computer_use_20241022.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_computer_use_20250124.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_computer_use_20251124.rb +114 -0
- data/lib/anthropic/models/beta/beta_tool_reference_block.rb +25 -0
- data/lib/anthropic/models/beta/beta_tool_reference_block_param.rb +36 -0
- data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +8 -4
- data/lib/anthropic/models/beta/beta_tool_search_tool_bm25_20251119.rb +85 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_regex_20251119.rb +85 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_block.rb +43 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_block_param.rb +53 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error.rb +44 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error_param.rb +38 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_search_result_block.rb +26 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_search_result_block_param.rb +26 -0
- data/lib/anthropic/models/beta/beta_tool_text_editor_20241022.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_text_editor_20250124.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_text_editor_20250429.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_text_editor_20250728.rb +36 -1
- data/lib/anthropic/models/beta/beta_tool_union.rb +17 -1
- data/lib/anthropic/models/beta/beta_tool_use_block.rb +30 -1
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +27 -1
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb +28 -1
- data/lib/anthropic/models/beta/beta_web_search_tool_20250305.rb +28 -1
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +29 -4
- data/lib/anthropic/models/beta/message_create_params.rb +12 -3
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +16 -7
- data/lib/anthropic/models/messages/batch_create_params.rb +4 -4
- data/lib/anthropic/models/model.rb +10 -0
- data/lib/anthropic/resources/beta/messages.rb +26 -11
- data/lib/anthropic/resources/messages.rb +8 -2
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +19 -0
- data/manifest.yaml +1 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_code_execution_tool_20250522.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_code_execution_tool_20250825.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_content_block.rbi +1 -0
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +1 -0
- data/rbi/anthropic/models/beta/beta_direct_caller.rbi +31 -0
- data/rbi/anthropic/models/beta/beta_mcp_tool_config.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_mcp_tool_default_config.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_mcp_toolset.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_memory_tool_20250818.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_message.rbi +1 -0
- data/rbi/anthropic/models/beta/beta_output_config.rbi +82 -0
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_server_tool_caller.rbi +34 -0
- data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +54 -1
- data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +70 -1
- data/rbi/anthropic/models/beta/beta_tool.rbi +75 -0
- data/rbi/anthropic/models/beta/beta_tool_bash_20241022.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_bash_20250124.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_computer_use_20241022.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_computer_use_20250124.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_computer_use_20251124.rbi +204 -0
- data/rbi/anthropic/models/beta/beta_tool_reference_block.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_tool_reference_block_param.rbi +67 -0
- data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_tool_search_tool_bm25_20251119.rbi +198 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_regex_20251119.rbi +198 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_block.rbi +81 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_block_param.rbi +110 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error_param.rbi +96 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_search_result_block.rbi +48 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_search_result_block_param.rbi +48 -0
- data/rbi/anthropic/models/beta/beta_tool_text_editor_20241022.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_text_editor_20250124.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_text_editor_20250429.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_text_editor_20250728.rbi +88 -0
- data/rbi/anthropic/models/beta/beta_tool_union.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +55 -2
- data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +58 -1
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20250910.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_20250305.rbi +77 -0
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +44 -5
- data/rbi/anthropic/models/beta/message_create_params.rbi +35 -4
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +43 -10
- data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -6
- data/rbi/anthropic/models/model.rbi +8 -0
- data/rbi/anthropic/resources/beta/messages.rbi +29 -3
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_code_execution_tool_20250522.rbs +27 -0
- data/sig/anthropic/models/beta/beta_code_execution_tool_20250825.rbs +27 -0
- data/sig/anthropic/models/beta/beta_content_block.rbs +1 -0
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +1 -0
- data/sig/anthropic/models/beta/beta_direct_caller.rbs +17 -0
- data/sig/anthropic/models/beta/beta_mcp_tool_config.rbs +23 -0
- data/sig/anthropic/models/beta/beta_mcp_tool_default_config.rbs +23 -0
- data/sig/anthropic/models/beta/beta_mcp_toolset.rbs +48 -0
- data/sig/anthropic/models/beta/beta_memory_tool_20250818.rbs +36 -0
- data/sig/anthropic/models/beta/beta_output_config.rbs +34 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +1 -0
- data/sig/anthropic/models/beta/beta_server_tool_caller.rbs +23 -0
- data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +19 -0
- data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +25 -2
- data/sig/anthropic/models/beta/beta_tool.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_bash_20241022.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_bash_20250124.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_computer_use_20241022.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_computer_use_20250124.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_computer_use_20251124.rbs +99 -0
- data/sig/anthropic/models/beta/beta_tool_reference_block.rbs +20 -0
- data/sig/anthropic/models/beta/beta_tool_reference_block_param.rbs +34 -0
- data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +1 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_bm25_20251119.rbs +79 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_regex_20251119.rbs +79 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_block.rbs +44 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_block_param.rbs +49 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error.rbs +51 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error_param.rbs +46 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_search_result_block.rbs +29 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_search_result_block_param.rbs +29 -0
- data/sig/anthropic/models/beta/beta_tool_text_editor_20241022.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_text_editor_20250124.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_text_editor_20250429.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_text_editor_20250728.rbs +36 -0
- data/sig/anthropic/models/beta/beta_tool_union.rbs +4 -0
- data/sig/anthropic/models/beta/beta_tool_use_block.rbs +21 -2
- data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +21 -2
- data/sig/anthropic/models/beta/beta_web_fetch_tool_20250910.rbs +27 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_20250305.rbs +27 -0
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +13 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +9 -0
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +9 -0
- data/sig/anthropic/models/model.rbs +9 -1
- data/sig/anthropic/resources/beta/messages.rbs +3 -0
- metadata +54 -2
|
@@ -7,7 +7,9 @@ module Anthropic
|
|
|
7
7
|
{
|
|
8
8
|
name: :code_execution,
|
|
9
9
|
type: :code_execution_20250825,
|
|
10
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller],
|
|
10
11
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
12
|
+
defer_loading: bool,
|
|
11
13
|
strict: bool
|
|
12
14
|
}
|
|
13
15
|
|
|
@@ -16,14 +18,26 @@ module Anthropic
|
|
|
16
18
|
|
|
17
19
|
attr_accessor type: :code_execution_20250825
|
|
18
20
|
|
|
21
|
+
attr_reader allowed_callers: ::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller]?
|
|
22
|
+
|
|
23
|
+
def allowed_callers=: (
|
|
24
|
+
::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller]
|
|
25
|
+
) -> ::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller]
|
|
26
|
+
|
|
19
27
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
20
28
|
|
|
29
|
+
attr_reader defer_loading: bool?
|
|
30
|
+
|
|
31
|
+
def defer_loading=: (bool) -> bool
|
|
32
|
+
|
|
21
33
|
attr_reader strict: bool?
|
|
22
34
|
|
|
23
35
|
def strict=: (bool) -> bool
|
|
24
36
|
|
|
25
37
|
def initialize: (
|
|
38
|
+
?allowed_callers: ::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller],
|
|
26
39
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
40
|
+
?defer_loading: bool,
|
|
27
41
|
?strict: bool,
|
|
28
42
|
?name: :code_execution,
|
|
29
43
|
?type: :code_execution_20250825
|
|
@@ -32,9 +46,22 @@ module Anthropic
|
|
|
32
46
|
def to_hash: -> {
|
|
33
47
|
name: :code_execution,
|
|
34
48
|
type: :code_execution_20250825,
|
|
49
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller],
|
|
35
50
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
51
|
+
defer_loading: bool,
|
|
36
52
|
strict: bool
|
|
37
53
|
}
|
|
54
|
+
|
|
55
|
+
type allowed_caller = :direct | :code_execution_20250825
|
|
56
|
+
|
|
57
|
+
module AllowedCaller
|
|
58
|
+
extend Anthropic::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
DIRECT: :direct
|
|
61
|
+
CODE_EXECUTION_20250825: :code_execution_20250825
|
|
62
|
+
|
|
63
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaCodeExecutionTool20250825::allowed_caller]
|
|
64
|
+
end
|
|
38
65
|
end
|
|
39
66
|
end
|
|
40
67
|
end
|
|
@@ -14,6 +14,7 @@ module Anthropic
|
|
|
14
14
|
| Anthropic::Beta::BetaCodeExecutionToolResultBlock
|
|
15
15
|
| Anthropic::Beta::BetaBashCodeExecutionToolResultBlock
|
|
16
16
|
| Anthropic::Beta::BetaTextEditorCodeExecutionToolResultBlock
|
|
17
|
+
| Anthropic::Beta::BetaToolSearchToolResultBlock
|
|
17
18
|
| Anthropic::Beta::BetaMCPToolUseBlock
|
|
18
19
|
| Anthropic::Beta::BetaMCPToolResultBlock
|
|
19
20
|
| Anthropic::Beta::BetaContainerUploadBlock
|
|
@@ -18,6 +18,7 @@ module Anthropic
|
|
|
18
18
|
| Anthropic::Beta::BetaCodeExecutionToolResultBlockParam
|
|
19
19
|
| Anthropic::Beta::BetaBashCodeExecutionToolResultBlockParam
|
|
20
20
|
| Anthropic::Beta::BetaTextEditorCodeExecutionToolResultBlockParam
|
|
21
|
+
| Anthropic::Beta::BetaToolSearchToolResultBlockParam
|
|
21
22
|
| Anthropic::Beta::BetaMCPToolUseBlockParam
|
|
22
23
|
| Anthropic::Beta::BetaRequestMCPToolResultBlockParam
|
|
23
24
|
| Anthropic::Beta::BetaContainerUploadBlockParam
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaDirectCaller = Beta::BetaDirectCaller
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_direct_caller = { type: :direct }
|
|
7
|
+
|
|
8
|
+
class BetaDirectCaller < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor type: :direct
|
|
10
|
+
|
|
11
|
+
def initialize: (?type: :direct) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { type: :direct }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaMCPToolConfig = Beta::BetaMCPToolConfig
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_mcp_tool_config = { defer_loading: bool, enabled: bool }
|
|
7
|
+
|
|
8
|
+
class BetaMCPToolConfig < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_reader defer_loading: bool?
|
|
10
|
+
|
|
11
|
+
def defer_loading=: (bool) -> bool
|
|
12
|
+
|
|
13
|
+
attr_reader enabled: bool?
|
|
14
|
+
|
|
15
|
+
def enabled=: (bool) -> bool
|
|
16
|
+
|
|
17
|
+
def initialize: (?defer_loading: bool, ?enabled: bool) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { defer_loading: bool, enabled: bool }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaMCPToolDefaultConfig = Beta::BetaMCPToolDefaultConfig
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_mcp_tool_default_config = { defer_loading: bool, enabled: bool }
|
|
7
|
+
|
|
8
|
+
class BetaMCPToolDefaultConfig < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_reader defer_loading: bool?
|
|
10
|
+
|
|
11
|
+
def defer_loading=: (bool) -> bool
|
|
12
|
+
|
|
13
|
+
attr_reader enabled: bool?
|
|
14
|
+
|
|
15
|
+
def enabled=: (bool) -> bool
|
|
16
|
+
|
|
17
|
+
def initialize: (?defer_loading: bool, ?enabled: bool) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { defer_loading: bool, enabled: bool }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaMCPToolset = Beta::BetaMCPToolset
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_mcp_toolset =
|
|
7
|
+
{
|
|
8
|
+
mcp_server_name: String,
|
|
9
|
+
type: :mcp_toolset,
|
|
10
|
+
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
11
|
+
configs: ::Hash[Symbol, Anthropic::Beta::BetaMCPToolConfig]?,
|
|
12
|
+
default_config: Anthropic::Beta::BetaMCPToolDefaultConfig
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class BetaMCPToolset < Anthropic::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor mcp_server_name: String
|
|
17
|
+
|
|
18
|
+
attr_accessor type: :mcp_toolset
|
|
19
|
+
|
|
20
|
+
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
21
|
+
|
|
22
|
+
attr_accessor configs: ::Hash[Symbol, Anthropic::Beta::BetaMCPToolConfig]?
|
|
23
|
+
|
|
24
|
+
attr_reader default_config: Anthropic::Beta::BetaMCPToolDefaultConfig?
|
|
25
|
+
|
|
26
|
+
def default_config=: (
|
|
27
|
+
Anthropic::Beta::BetaMCPToolDefaultConfig
|
|
28
|
+
) -> Anthropic::Beta::BetaMCPToolDefaultConfig
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
mcp_server_name: String,
|
|
32
|
+
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
33
|
+
?configs: ::Hash[Symbol, Anthropic::Beta::BetaMCPToolConfig]?,
|
|
34
|
+
?default_config: Anthropic::Beta::BetaMCPToolDefaultConfig,
|
|
35
|
+
?type: :mcp_toolset
|
|
36
|
+
) -> void
|
|
37
|
+
|
|
38
|
+
def to_hash: -> {
|
|
39
|
+
mcp_server_name: String,
|
|
40
|
+
type: :mcp_toolset,
|
|
41
|
+
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
42
|
+
configs: ::Hash[Symbol, Anthropic::Beta::BetaMCPToolConfig]?,
|
|
43
|
+
default_config: Anthropic::Beta::BetaMCPToolDefaultConfig
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -7,7 +7,10 @@ module Anthropic
|
|
|
7
7
|
{
|
|
8
8
|
name: :memory,
|
|
9
9
|
type: :memory_20250818,
|
|
10
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller],
|
|
10
11
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
12
|
+
defer_loading: bool,
|
|
13
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
11
14
|
strict: bool
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -16,14 +19,33 @@ module Anthropic
|
|
|
16
19
|
|
|
17
20
|
attr_accessor type: :memory_20250818
|
|
18
21
|
|
|
22
|
+
attr_reader allowed_callers: ::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller]?
|
|
23
|
+
|
|
24
|
+
def allowed_callers=: (
|
|
25
|
+
::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller]
|
|
26
|
+
) -> ::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller]
|
|
27
|
+
|
|
19
28
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
20
29
|
|
|
30
|
+
attr_reader defer_loading: bool?
|
|
31
|
+
|
|
32
|
+
def defer_loading=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
attr_reader input_examples: ::Array[::Hash[Symbol, top]]?
|
|
35
|
+
|
|
36
|
+
def input_examples=: (
|
|
37
|
+
::Array[::Hash[Symbol, top]]
|
|
38
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
39
|
+
|
|
21
40
|
attr_reader strict: bool?
|
|
22
41
|
|
|
23
42
|
def strict=: (bool) -> bool
|
|
24
43
|
|
|
25
44
|
def initialize: (
|
|
45
|
+
?allowed_callers: ::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller],
|
|
26
46
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
47
|
+
?defer_loading: bool,
|
|
48
|
+
?input_examples: ::Array[::Hash[Symbol, top]],
|
|
27
49
|
?strict: bool,
|
|
28
50
|
?name: :memory,
|
|
29
51
|
?type: :memory_20250818
|
|
@@ -32,9 +54,23 @@ module Anthropic
|
|
|
32
54
|
def to_hash: -> {
|
|
33
55
|
name: :memory,
|
|
34
56
|
type: :memory_20250818,
|
|
57
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller],
|
|
35
58
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
59
|
+
defer_loading: bool,
|
|
60
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
36
61
|
strict: bool
|
|
37
62
|
}
|
|
63
|
+
|
|
64
|
+
type allowed_caller = :direct | :code_execution_20250825
|
|
65
|
+
|
|
66
|
+
module AllowedCaller
|
|
67
|
+
extend Anthropic::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DIRECT: :direct
|
|
70
|
+
CODE_EXECUTION_20250825: :code_execution_20250825
|
|
71
|
+
|
|
72
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaMemoryTool20250818::allowed_caller]
|
|
73
|
+
end
|
|
38
74
|
end
|
|
39
75
|
end
|
|
40
76
|
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaOutputConfig = Beta::BetaOutputConfig
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_output_config =
|
|
7
|
+
{ effort: Anthropic::Models::Beta::BetaOutputConfig::effort? }
|
|
8
|
+
|
|
9
|
+
class BetaOutputConfig < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor effort: Anthropic::Models::Beta::BetaOutputConfig::effort?
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?effort: Anthropic::Models::Beta::BetaOutputConfig::effort?
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
effort: Anthropic::Models::Beta::BetaOutputConfig::effort?
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type effort = :low | :medium | :high
|
|
21
|
+
|
|
22
|
+
module Effort
|
|
23
|
+
extend Anthropic::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
LOW: :low
|
|
26
|
+
MEDIUM: :medium
|
|
27
|
+
HIGH: :high
|
|
28
|
+
|
|
29
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaOutputConfig::effort]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -40,6 +40,7 @@ module Anthropic
|
|
|
40
40
|
| Anthropic::Beta::BetaCodeExecutionToolResultBlock
|
|
41
41
|
| Anthropic::Beta::BetaBashCodeExecutionToolResultBlock
|
|
42
42
|
| Anthropic::Beta::BetaTextEditorCodeExecutionToolResultBlock
|
|
43
|
+
| Anthropic::Beta::BetaToolSearchToolResultBlock
|
|
43
44
|
| Anthropic::Beta::BetaMCPToolUseBlock
|
|
44
45
|
| Anthropic::Beta::BetaMCPToolResultBlock
|
|
45
46
|
| Anthropic::Beta::BetaContainerUploadBlock
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaServerToolCaller = Beta::BetaServerToolCaller
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_server_tool_caller =
|
|
7
|
+
{ tool_id: String, type: :code_execution_20250825 }
|
|
8
|
+
|
|
9
|
+
class BetaServerToolCaller < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor tool_id: String
|
|
11
|
+
|
|
12
|
+
attr_accessor type: :code_execution_20250825
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
tool_id: String,
|
|
16
|
+
?type: :code_execution_20250825
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { tool_id: String, type: :code_execution_20250825 }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -6,6 +6,7 @@ module Anthropic
|
|
|
6
6
|
type beta_server_tool_use_block =
|
|
7
7
|
{
|
|
8
8
|
id: String,
|
|
9
|
+
caller_: Anthropic::Models::Beta::BetaServerToolUseBlock::caller_,
|
|
9
10
|
input: ::Hash[Symbol, top],
|
|
10
11
|
name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_,
|
|
11
12
|
type: :server_tool_use
|
|
@@ -14,6 +15,8 @@ module Anthropic
|
|
|
14
15
|
class BetaServerToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
15
16
|
attr_accessor id: String
|
|
16
17
|
|
|
18
|
+
attr_accessor caller_: Anthropic::Models::Beta::BetaServerToolUseBlock::caller_
|
|
19
|
+
|
|
17
20
|
attr_accessor input: ::Hash[Symbol, top]
|
|
18
21
|
|
|
19
22
|
attr_accessor name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_
|
|
@@ -22,6 +25,7 @@ module Anthropic
|
|
|
22
25
|
|
|
23
26
|
def initialize: (
|
|
24
27
|
id: String,
|
|
28
|
+
caller_: Anthropic::Models::Beta::BetaServerToolUseBlock::caller_,
|
|
25
29
|
input: ::Hash[Symbol, top],
|
|
26
30
|
name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_,
|
|
27
31
|
?type: :server_tool_use
|
|
@@ -29,17 +33,30 @@ module Anthropic
|
|
|
29
33
|
|
|
30
34
|
def to_hash: -> {
|
|
31
35
|
id: String,
|
|
36
|
+
caller_: Anthropic::Models::Beta::BetaServerToolUseBlock::caller_,
|
|
32
37
|
input: ::Hash[Symbol, top],
|
|
33
38
|
name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_,
|
|
34
39
|
type: :server_tool_use
|
|
35
40
|
}
|
|
36
41
|
|
|
42
|
+
type caller_ =
|
|
43
|
+
Anthropic::Beta::BetaDirectCaller
|
|
44
|
+
| Anthropic::Beta::BetaServerToolCaller
|
|
45
|
+
|
|
46
|
+
module Caller
|
|
47
|
+
extend Anthropic::Internal::Type::Union
|
|
48
|
+
|
|
49
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaServerToolUseBlock::caller_]
|
|
50
|
+
end
|
|
51
|
+
|
|
37
52
|
type name_ =
|
|
38
53
|
:web_search
|
|
39
54
|
| :web_fetch
|
|
40
55
|
| :code_execution
|
|
41
56
|
| :bash_code_execution
|
|
42
57
|
| :text_editor_code_execution
|
|
58
|
+
| :tool_search_tool_regex
|
|
59
|
+
| :tool_search_tool_bm25
|
|
43
60
|
|
|
44
61
|
module Name
|
|
45
62
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -49,6 +66,8 @@ module Anthropic
|
|
|
49
66
|
CODE_EXECUTION: :code_execution
|
|
50
67
|
BASH_CODE_EXECUTION: :bash_code_execution
|
|
51
68
|
TEXT_EDITOR_CODE_EXECUTION: :text_editor_code_execution
|
|
69
|
+
TOOL_SEARCH_TOOL_REGEX: :tool_search_tool_regex
|
|
70
|
+
TOOL_SEARCH_TOOL_BM25: :tool_search_tool_bm25
|
|
52
71
|
|
|
53
72
|
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaServerToolUseBlock::name_]
|
|
54
73
|
end
|
|
@@ -9,7 +9,8 @@ module Anthropic
|
|
|
9
9
|
input: ::Hash[Symbol, top],
|
|
10
10
|
name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_,
|
|
11
11
|
type: :server_tool_use,
|
|
12
|
-
cache_control: Anthropic::Beta::BetaCacheControlEphemeral
|
|
12
|
+
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
13
|
+
caller_: Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
class BetaServerToolUseBlockParam < Anthropic::Internal::Type::BaseModel
|
|
@@ -23,11 +24,18 @@ module Anthropic
|
|
|
23
24
|
|
|
24
25
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
25
26
|
|
|
27
|
+
attr_reader caller_: Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_?
|
|
28
|
+
|
|
29
|
+
def caller_=: (
|
|
30
|
+
Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_
|
|
31
|
+
) -> Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_
|
|
32
|
+
|
|
26
33
|
def initialize: (
|
|
27
34
|
id: String,
|
|
28
35
|
input: ::Hash[Symbol, top],
|
|
29
36
|
name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_,
|
|
30
37
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
38
|
+
?caller_: Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_,
|
|
31
39
|
?type: :server_tool_use
|
|
32
40
|
) -> void
|
|
33
41
|
|
|
@@ -36,7 +44,8 @@ module Anthropic
|
|
|
36
44
|
input: ::Hash[Symbol, top],
|
|
37
45
|
name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_,
|
|
38
46
|
type: :server_tool_use,
|
|
39
|
-
cache_control: Anthropic::Beta::BetaCacheControlEphemeral
|
|
47
|
+
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
48
|
+
caller_: Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_
|
|
40
49
|
}
|
|
41
50
|
|
|
42
51
|
type name_ =
|
|
@@ -45,6 +54,8 @@ module Anthropic
|
|
|
45
54
|
| :code_execution
|
|
46
55
|
| :bash_code_execution
|
|
47
56
|
| :text_editor_code_execution
|
|
57
|
+
| :tool_search_tool_regex
|
|
58
|
+
| :tool_search_tool_bm25
|
|
48
59
|
|
|
49
60
|
module Name
|
|
50
61
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -54,9 +65,21 @@ module Anthropic
|
|
|
54
65
|
CODE_EXECUTION: :code_execution
|
|
55
66
|
BASH_CODE_EXECUTION: :bash_code_execution
|
|
56
67
|
TEXT_EDITOR_CODE_EXECUTION: :text_editor_code_execution
|
|
68
|
+
TOOL_SEARCH_TOOL_REGEX: :tool_search_tool_regex
|
|
69
|
+
TOOL_SEARCH_TOOL_BM25: :tool_search_tool_bm25
|
|
57
70
|
|
|
58
71
|
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_]
|
|
59
72
|
end
|
|
73
|
+
|
|
74
|
+
type caller_ =
|
|
75
|
+
Anthropic::Beta::BetaDirectCaller
|
|
76
|
+
| Anthropic::Beta::BetaServerToolCaller
|
|
77
|
+
|
|
78
|
+
module Caller
|
|
79
|
+
extend Anthropic::Internal::Type::Union
|
|
80
|
+
|
|
81
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaServerToolUseBlockParam::caller_]
|
|
82
|
+
end
|
|
60
83
|
end
|
|
61
84
|
end
|
|
62
85
|
end
|
|
@@ -7,8 +7,11 @@ module Anthropic
|
|
|
7
7
|
{
|
|
8
8
|
input_schema: Anthropic::Beta::BetaTool::InputSchema,
|
|
9
9
|
name: String,
|
|
10
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaTool::allowed_caller],
|
|
10
11
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
12
|
+
defer_loading: bool,
|
|
11
13
|
description: String,
|
|
14
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
12
15
|
strict: bool,
|
|
13
16
|
type: Anthropic::Models::Beta::BetaTool::type_?
|
|
14
17
|
}
|
|
@@ -18,12 +21,28 @@ module Anthropic
|
|
|
18
21
|
|
|
19
22
|
attr_accessor name: String
|
|
20
23
|
|
|
24
|
+
attr_reader allowed_callers: ::Array[Anthropic::Models::Beta::BetaTool::allowed_caller]?
|
|
25
|
+
|
|
26
|
+
def allowed_callers=: (
|
|
27
|
+
::Array[Anthropic::Models::Beta::BetaTool::allowed_caller]
|
|
28
|
+
) -> ::Array[Anthropic::Models::Beta::BetaTool::allowed_caller]
|
|
29
|
+
|
|
21
30
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
22
31
|
|
|
32
|
+
attr_reader defer_loading: bool?
|
|
33
|
+
|
|
34
|
+
def defer_loading=: (bool) -> bool
|
|
35
|
+
|
|
23
36
|
attr_reader description: String?
|
|
24
37
|
|
|
25
38
|
def description=: (String) -> String
|
|
26
39
|
|
|
40
|
+
attr_reader input_examples: ::Array[::Hash[Symbol, top]]?
|
|
41
|
+
|
|
42
|
+
def input_examples=: (
|
|
43
|
+
::Array[::Hash[Symbol, top]]
|
|
44
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
45
|
+
|
|
27
46
|
attr_reader strict: bool?
|
|
28
47
|
|
|
29
48
|
def strict=: (bool) -> bool
|
|
@@ -33,8 +52,11 @@ module Anthropic
|
|
|
33
52
|
def initialize: (
|
|
34
53
|
input_schema: Anthropic::Beta::BetaTool::InputSchema,
|
|
35
54
|
name: String,
|
|
55
|
+
?allowed_callers: ::Array[Anthropic::Models::Beta::BetaTool::allowed_caller],
|
|
36
56
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
57
|
+
?defer_loading: bool,
|
|
37
58
|
?description: String,
|
|
59
|
+
?input_examples: ::Array[::Hash[Symbol, top]],
|
|
38
60
|
?strict: bool,
|
|
39
61
|
?type: Anthropic::Models::Beta::BetaTool::type_?
|
|
40
62
|
) -> void
|
|
@@ -42,8 +64,11 @@ module Anthropic
|
|
|
42
64
|
def to_hash: -> {
|
|
43
65
|
input_schema: Anthropic::Beta::BetaTool::InputSchema,
|
|
44
66
|
name: String,
|
|
67
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaTool::allowed_caller],
|
|
45
68
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
69
|
+
defer_loading: bool,
|
|
46
70
|
description: String,
|
|
71
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
47
72
|
strict: bool,
|
|
48
73
|
type: Anthropic::Models::Beta::BetaTool::type_?
|
|
49
74
|
}
|
|
@@ -75,6 +100,17 @@ module Anthropic
|
|
|
75
100
|
}
|
|
76
101
|
end
|
|
77
102
|
|
|
103
|
+
type allowed_caller = :direct | :code_execution_20250825
|
|
104
|
+
|
|
105
|
+
module AllowedCaller
|
|
106
|
+
extend Anthropic::Internal::Type::Enum
|
|
107
|
+
|
|
108
|
+
DIRECT: :direct
|
|
109
|
+
CODE_EXECUTION_20250825: :code_execution_20250825
|
|
110
|
+
|
|
111
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaTool::allowed_caller]
|
|
112
|
+
end
|
|
113
|
+
|
|
78
114
|
type type_ = :custom
|
|
79
115
|
|
|
80
116
|
module Type
|
|
@@ -7,7 +7,10 @@ module Anthropic
|
|
|
7
7
|
{
|
|
8
8
|
name: :bash,
|
|
9
9
|
type: :bash_20241022,
|
|
10
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller],
|
|
10
11
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
12
|
+
defer_loading: bool,
|
|
13
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
11
14
|
strict: bool
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -16,14 +19,33 @@ module Anthropic
|
|
|
16
19
|
|
|
17
20
|
attr_accessor type: :bash_20241022
|
|
18
21
|
|
|
22
|
+
attr_reader allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller]?
|
|
23
|
+
|
|
24
|
+
def allowed_callers=: (
|
|
25
|
+
::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller]
|
|
26
|
+
) -> ::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller]
|
|
27
|
+
|
|
19
28
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
20
29
|
|
|
30
|
+
attr_reader defer_loading: bool?
|
|
31
|
+
|
|
32
|
+
def defer_loading=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
attr_reader input_examples: ::Array[::Hash[Symbol, top]]?
|
|
35
|
+
|
|
36
|
+
def input_examples=: (
|
|
37
|
+
::Array[::Hash[Symbol, top]]
|
|
38
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
39
|
+
|
|
21
40
|
attr_reader strict: bool?
|
|
22
41
|
|
|
23
42
|
def strict=: (bool) -> bool
|
|
24
43
|
|
|
25
44
|
def initialize: (
|
|
45
|
+
?allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller],
|
|
26
46
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
47
|
+
?defer_loading: bool,
|
|
48
|
+
?input_examples: ::Array[::Hash[Symbol, top]],
|
|
27
49
|
?strict: bool,
|
|
28
50
|
?name: :bash,
|
|
29
51
|
?type: :bash_20241022
|
|
@@ -32,9 +54,23 @@ module Anthropic
|
|
|
32
54
|
def to_hash: -> {
|
|
33
55
|
name: :bash,
|
|
34
56
|
type: :bash_20241022,
|
|
57
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller],
|
|
35
58
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
59
|
+
defer_loading: bool,
|
|
60
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
36
61
|
strict: bool
|
|
37
62
|
}
|
|
63
|
+
|
|
64
|
+
type allowed_caller = :direct | :code_execution_20250825
|
|
65
|
+
|
|
66
|
+
module AllowedCaller
|
|
67
|
+
extend Anthropic::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DIRECT: :direct
|
|
70
|
+
CODE_EXECUTION_20250825: :code_execution_20250825
|
|
71
|
+
|
|
72
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaToolBash20241022::allowed_caller]
|
|
73
|
+
end
|
|
38
74
|
end
|
|
39
75
|
end
|
|
40
76
|
end
|
|
@@ -7,7 +7,10 @@ module Anthropic
|
|
|
7
7
|
{
|
|
8
8
|
name: :bash,
|
|
9
9
|
type: :bash_20250124,
|
|
10
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller],
|
|
10
11
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
12
|
+
defer_loading: bool,
|
|
13
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
11
14
|
strict: bool
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -16,14 +19,33 @@ module Anthropic
|
|
|
16
19
|
|
|
17
20
|
attr_accessor type: :bash_20250124
|
|
18
21
|
|
|
22
|
+
attr_reader allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller]?
|
|
23
|
+
|
|
24
|
+
def allowed_callers=: (
|
|
25
|
+
::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller]
|
|
26
|
+
) -> ::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller]
|
|
27
|
+
|
|
19
28
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
20
29
|
|
|
30
|
+
attr_reader defer_loading: bool?
|
|
31
|
+
|
|
32
|
+
def defer_loading=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
attr_reader input_examples: ::Array[::Hash[Symbol, top]]?
|
|
35
|
+
|
|
36
|
+
def input_examples=: (
|
|
37
|
+
::Array[::Hash[Symbol, top]]
|
|
38
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
39
|
+
|
|
21
40
|
attr_reader strict: bool?
|
|
22
41
|
|
|
23
42
|
def strict=: (bool) -> bool
|
|
24
43
|
|
|
25
44
|
def initialize: (
|
|
45
|
+
?allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller],
|
|
26
46
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
47
|
+
?defer_loading: bool,
|
|
48
|
+
?input_examples: ::Array[::Hash[Symbol, top]],
|
|
27
49
|
?strict: bool,
|
|
28
50
|
?name: :bash,
|
|
29
51
|
?type: :bash_20250124
|
|
@@ -32,9 +54,23 @@ module Anthropic
|
|
|
32
54
|
def to_hash: -> {
|
|
33
55
|
name: :bash,
|
|
34
56
|
type: :bash_20250124,
|
|
57
|
+
allowed_callers: ::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller],
|
|
35
58
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
59
|
+
defer_loading: bool,
|
|
60
|
+
input_examples: ::Array[::Hash[Symbol, top]],
|
|
36
61
|
strict: bool
|
|
37
62
|
}
|
|
63
|
+
|
|
64
|
+
type allowed_caller = :direct | :code_execution_20250825
|
|
65
|
+
|
|
66
|
+
module AllowedCaller
|
|
67
|
+
extend Anthropic::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DIRECT: :direct
|
|
70
|
+
CODE_EXECUTION_20250825: :code_execution_20250825
|
|
71
|
+
|
|
72
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaToolBash20250124::allowed_caller]
|
|
73
|
+
end
|
|
38
74
|
end
|
|
39
75
|
end
|
|
40
76
|
end
|