anthropic 1.11.0 → 1.13.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 +29 -0
- data/README.md +1 -1
- data/lib/anthropic/helpers/streaming/message_stream.rb +3 -0
- data/lib/anthropic/internal/page_cursor.rb +92 -0
- data/lib/anthropic/internal/token_page.rb +92 -0
- data/lib/anthropic/internal/transport/pooled_net_requester.rb +30 -24
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_all_thinking_turns.rb +19 -0
- data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit.rb +48 -0
- data/lib/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rb +36 -0
- data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rb +0 -2
- data/lib/anthropic/models/beta/beta_container.rb +9 -1
- data/lib/anthropic/models/beta/beta_container_params.rb +34 -0
- data/lib/anthropic/models/beta/beta_context_management_config.rb +17 -5
- data/lib/anthropic/models/beta/beta_context_management_response.rb +16 -5
- data/lib/anthropic/models/beta/beta_mcp_tool_use_block_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_message.rb +4 -2
- data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_skill.rb +51 -0
- data/lib/anthropic/models/beta/beta_skill_params.rb +51 -0
- data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +1 -1
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_thinking_turns.rb +25 -0
- data/lib/anthropic/models/beta/beta_tool.rb +5 -3
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +3 -3
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +15 -12
- data/lib/anthropic/models/beta/message_create_params.rb +34 -18
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +39 -20
- data/lib/anthropic/models/beta/skill_create_params.rb +49 -0
- data/lib/anthropic/models/beta/skill_create_response.rb +84 -0
- data/lib/anthropic/models/beta/skill_delete_params.rb +24 -0
- data/lib/anthropic/models/beta/skill_delete_response.rb +34 -0
- data/lib/anthropic/models/beta/skill_list_params.rb +61 -0
- data/lib/anthropic/models/beta/skill_list_response.rb +84 -0
- data/lib/anthropic/models/beta/skill_retrieve_params.rb +24 -0
- data/lib/anthropic/models/beta/skill_retrieve_response.rb +84 -0
- data/lib/anthropic/models/beta/skills/version_create_params.rb +42 -0
- data/lib/anthropic/models/beta/skills/version_create_response.rb +92 -0
- data/lib/anthropic/models/beta/skills/version_delete_params.rb +39 -0
- data/lib/anthropic/models/beta/skills/version_delete_response.rb +36 -0
- data/lib/anthropic/models/beta/skills/version_list_params.rb +47 -0
- data/lib/anthropic/models/beta/skills/version_list_response.rb +92 -0
- data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +39 -0
- data/lib/anthropic/models/beta/skills/version_retrieve_response.rb +92 -0
- data/lib/anthropic/models/completion_create_params.rb +3 -4
- data/lib/anthropic/models/message_count_tokens_params.rb +10 -10
- data/lib/anthropic/models/message_create_params.rb +13 -13
- data/lib/anthropic/models/messages/batch_create_params.rb +14 -15
- data/lib/anthropic/models/model.rb +6 -20
- data/lib/anthropic/models/server_tool_use_block_param.rb +3 -3
- data/lib/anthropic/models/stop_reason.rb +0 -1
- data/lib/anthropic/models/thinking_config_enabled.rb +1 -1
- data/lib/anthropic/models/thinking_config_param.rb +1 -1
- data/lib/anthropic/models/tool.rb +5 -3
- data/lib/anthropic/models/tool_use_block_param.rb +3 -3
- data/lib/anthropic/resources/beta/messages.rb +5 -5
- data/lib/anthropic/resources/beta/skills/versions.rb +154 -0
- data/lib/anthropic/resources/beta/skills.rb +144 -0
- data/lib/anthropic/resources/beta.rb +4 -0
- data/lib/anthropic/resources/completions.rb +4 -4
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +27 -0
- data/rbi/anthropic/internal/page_cursor.rbi +25 -0
- data/rbi/anthropic/internal/token_page.rbi +25 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_all_thinking_turns.rbi +30 -0
- data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbi +109 -0
- data/rbi/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbi +61 -0
- data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit_response.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_container.rbi +23 -3
- data/rbi/anthropic/models/beta/beta_container_params.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_context_management_config.rbi +51 -5
- data/rbi/anthropic/models/beta/beta_context_management_response.rbi +32 -4
- data/rbi/anthropic/models/beta/beta_mcp_tool_use_block.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_mcp_tool_use_block_param.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_message.rbi +6 -2
- data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_skill.rbi +80 -0
- data/rbi/anthropic/models/beta/beta_skill_params.rbi +91 -0
- data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_thinking_turns.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_tool.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +8 -3
- data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +3 -3
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +27 -21
- data/rbi/anthropic/models/beta/message_create_params.rbi +61 -29
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +70 -33
- data/rbi/anthropic/models/beta/skill_create_params.rbi +90 -0
- data/rbi/anthropic/models/beta/skill_create_response.rbi +118 -0
- data/rbi/anthropic/models/beta/skill_delete_params.rbi +62 -0
- data/rbi/anthropic/models/beta/skill_delete_response.rbi +46 -0
- data/rbi/anthropic/models/beta/skill_list_params.rbi +109 -0
- data/rbi/anthropic/models/beta/skill_list_response.rbi +118 -0
- data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +62 -0
- data/rbi/anthropic/models/beta/skill_retrieve_response.rbi +118 -0
- data/rbi/anthropic/models/beta/skills/version_create_params.rbi +79 -0
- data/rbi/anthropic/models/beta/skills/version_create_response.rbi +124 -0
- data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +77 -0
- data/rbi/anthropic/models/beta/skills/version_delete_response.rbi +48 -0
- data/rbi/anthropic/models/beta/skills/version_list_params.rbi +85 -0
- data/rbi/anthropic/models/beta/skills/version_list_response.rbi +124 -0
- data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +77 -0
- data/rbi/anthropic/models/beta/skills/version_retrieve_response.rbi +124 -0
- data/rbi/anthropic/models/completion_create_params.rbi +6 -8
- data/rbi/anthropic/models/message_count_tokens_params.rbi +19 -19
- data/rbi/anthropic/models/message_create_params.rbi +24 -24
- data/rbi/anthropic/models/messages/batch_create_params.rbi +26 -28
- data/rbi/anthropic/models/model.rbi +0 -11
- data/rbi/anthropic/models/server_tool_use_block.rbi +8 -3
- data/rbi/anthropic/models/server_tool_use_block_param.rbi +3 -3
- data/rbi/anthropic/models/stop_reason.rbi +0 -5
- data/rbi/anthropic/models/thinking_config_enabled.rbi +2 -2
- data/rbi/anthropic/models/thinking_config_param.rbi +1 -1
- data/rbi/anthropic/models/tool.rbi +3 -3
- data/rbi/anthropic/models/tool_use_block.rbi +8 -3
- data/rbi/anthropic/models/tool_use_block_param.rbi +3 -3
- data/rbi/anthropic/resources/beta/messages.rbi +51 -36
- data/rbi/anthropic/resources/beta/skills/versions.rbi +124 -0
- data/rbi/anthropic/resources/beta/skills.rbi +118 -0
- data/rbi/anthropic/resources/beta.rbi +3 -0
- data/rbi/anthropic/resources/completions.rbi +10 -12
- data/rbi/anthropic/resources/messages.rbi +31 -31
- data/sig/anthropic/internal/page_cursor.rbs +15 -0
- data/sig/anthropic/internal/token_page.rbs +15 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_all_thinking_turns.rbs +17 -0
- data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit.rbs +44 -0
- data/sig/anthropic/models/beta/beta_clear_thinking_20251015_edit_response.rbs +34 -0
- data/sig/anthropic/models/beta/beta_container.rbs +18 -3
- data/sig/anthropic/models/beta/beta_container_params.rbs +26 -0
- data/sig/anthropic/models/beta/beta_context_management_config.rbs +18 -6
- data/sig/anthropic/models/beta/beta_context_management_response.rbs +14 -4
- data/sig/anthropic/models/beta/beta_mcp_tool_use_block.rbs +4 -4
- data/sig/anthropic/models/beta/beta_mcp_tool_use_block_param.rbs +4 -4
- data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +4 -4
- data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +4 -4
- data/sig/anthropic/models/beta/beta_skill.rbs +45 -0
- data/sig/anthropic/models/beta/beta_skill_params.rbs +47 -0
- data/sig/anthropic/models/beta/beta_thinking_turns.rbs +19 -0
- data/sig/anthropic/models/beta/beta_tool.rbs +8 -4
- data/sig/anthropic/models/beta/beta_tool_use_block.rbs +9 -4
- data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +4 -4
- data/sig/anthropic/models/beta/message_create_params.rbs +12 -4
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +12 -4
- data/sig/anthropic/models/beta/skill_create_params.rbs +42 -0
- data/sig/anthropic/models/beta/skill_create_response.rbs +52 -0
- data/sig/anthropic/models/beta/skill_delete_params.rbs +30 -0
- data/sig/anthropic/models/beta/skill_delete_response.rbs +17 -0
- data/sig/anthropic/models/beta/skill_list_params.rbs +49 -0
- data/sig/anthropic/models/beta/skill_list_response.rbs +52 -0
- data/sig/anthropic/models/beta/skill_retrieve_params.rbs +30 -0
- data/sig/anthropic/models/beta/skill_retrieve_response.rbs +52 -0
- data/sig/anthropic/models/beta/skills/version_create_params.rbs +39 -0
- data/sig/anthropic/models/beta/skills/version_create_response.rbs +59 -0
- data/sig/anthropic/models/beta/skills/version_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/skills/version_delete_response.rbs +19 -0
- data/sig/anthropic/models/beta/skills/version_list_params.rbs +44 -0
- data/sig/anthropic/models/beta/skills/version_list_response.rbs +59 -0
- data/sig/anthropic/models/beta/skills/version_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/skills/version_retrieve_response.rbs +59 -0
- data/sig/anthropic/models/model.rbs +0 -11
- data/sig/anthropic/models/server_tool_use_block.rbs +9 -4
- data/sig/anthropic/models/server_tool_use_block_param.rbs +4 -4
- data/sig/anthropic/models/stop_reason.rbs +0 -2
- data/sig/anthropic/models/tool.rbs +8 -4
- data/sig/anthropic/models/tool_use_block.rbs +9 -4
- data/sig/anthropic/models/tool_use_block_param.rbs +4 -4
- data/sig/anthropic/resources/beta/messages.rbs +2 -2
- data/sig/anthropic/resources/beta/skills/versions.rbs +40 -0
- data/sig/anthropic/resources/beta/skills.rbs +38 -0
- data/sig/anthropic/resources/beta.rbs +2 -0
- metadata +83 -2
|
@@ -61,7 +61,7 @@ module Anthropic
|
|
|
61
61
|
# only specifies the absolute maximum number of tokens to generate.
|
|
62
62
|
#
|
|
63
63
|
# Different models have different maximum values for this parameter. See
|
|
64
|
-
# [models](https://docs.
|
|
64
|
+
# [models](https://docs.claude.com/en/docs/models-overview) for details.
|
|
65
65
|
max_tokens:,
|
|
66
66
|
# Input messages.
|
|
67
67
|
#
|
|
@@ -120,12 +120,12 @@ module Anthropic
|
|
|
120
120
|
# { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
121
121
|
# ```
|
|
122
122
|
#
|
|
123
|
-
# See [input examples](https://docs.
|
|
123
|
+
# See [input examples](https://docs.claude.com/en/api/messages-examples).
|
|
124
124
|
#
|
|
125
125
|
# Note that if you want to include a
|
|
126
|
-
# [system prompt](https://docs.
|
|
127
|
-
#
|
|
128
|
-
#
|
|
126
|
+
# [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
|
|
127
|
+
# top-level `system` parameter — there is no `"system"` role for input messages in
|
|
128
|
+
# the Messages API.
|
|
129
129
|
#
|
|
130
130
|
# There is a limit of 100,000 messages in a single request.
|
|
131
131
|
messages:,
|
|
@@ -139,7 +139,7 @@ module Anthropic
|
|
|
139
139
|
# for this request.
|
|
140
140
|
#
|
|
141
141
|
# Anthropic offers different levels of service for your API requests. See
|
|
142
|
-
# [service-tiers](https://docs.
|
|
142
|
+
# [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
|
|
143
143
|
service_tier: nil,
|
|
144
144
|
# Custom text sequences that will cause the model to stop generating.
|
|
145
145
|
#
|
|
@@ -155,7 +155,7 @@ module Anthropic
|
|
|
155
155
|
#
|
|
156
156
|
# A system prompt is a way of providing context and instructions to Claude, such
|
|
157
157
|
# as specifying a particular goal or role. See our
|
|
158
|
-
# [guide to system prompts](https://docs.
|
|
158
|
+
# [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
|
|
159
159
|
system_: nil,
|
|
160
160
|
# Amount of randomness injected into the response.
|
|
161
161
|
#
|
|
@@ -173,7 +173,7 @@ module Anthropic
|
|
|
173
173
|
# tokens and counts towards your `max_tokens` limit.
|
|
174
174
|
#
|
|
175
175
|
# See
|
|
176
|
-
# [extended thinking](https://docs.
|
|
176
|
+
# [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
|
|
177
177
|
# for details.
|
|
178
178
|
thinking: nil,
|
|
179
179
|
# How the model should use the provided tools. The model can use a specific tool,
|
|
@@ -188,9 +188,9 @@ module Anthropic
|
|
|
188
188
|
#
|
|
189
189
|
# There are two types of tools: **client tools** and **server tools**. The
|
|
190
190
|
# behavior described below applies to client tools. For
|
|
191
|
-
# [server tools](https://docs.
|
|
191
|
+
# [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
|
|
192
192
|
# see their individual documentation as each has its own behavior (e.g., the
|
|
193
|
-
# [web search tool](https://docs.
|
|
193
|
+
# [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
|
|
194
194
|
#
|
|
195
195
|
# Each tool definition includes:
|
|
196
196
|
#
|
|
@@ -253,7 +253,7 @@ module Anthropic
|
|
|
253
253
|
# functions, or more generally whenever you want the model to produce a particular
|
|
254
254
|
# JSON structure of output.
|
|
255
255
|
#
|
|
256
|
-
# See our [guide](https://docs.
|
|
256
|
+
# See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
|
|
257
257
|
tools: nil,
|
|
258
258
|
# Only sample from the top K options for each subsequent token.
|
|
259
259
|
#
|
|
@@ -630,7 +630,7 @@ module Anthropic
|
|
|
630
630
|
# only specifies the absolute maximum number of tokens to generate.
|
|
631
631
|
#
|
|
632
632
|
# Different models have different maximum values for this parameter. See
|
|
633
|
-
# [models](https://docs.
|
|
633
|
+
# [models](https://docs.claude.com/en/docs/models-overview) for details.
|
|
634
634
|
max_tokens:,
|
|
635
635
|
# Input messages.
|
|
636
636
|
#
|
|
@@ -689,12 +689,12 @@ module Anthropic
|
|
|
689
689
|
# { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
690
690
|
# ```
|
|
691
691
|
#
|
|
692
|
-
# See [input examples](https://docs.
|
|
692
|
+
# See [input examples](https://docs.claude.com/en/api/messages-examples).
|
|
693
693
|
#
|
|
694
694
|
# Note that if you want to include a
|
|
695
|
-
# [system prompt](https://docs.
|
|
696
|
-
#
|
|
697
|
-
#
|
|
695
|
+
# [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
|
|
696
|
+
# top-level `system` parameter — there is no `"system"` role for input messages in
|
|
697
|
+
# the Messages API.
|
|
698
698
|
#
|
|
699
699
|
# There is a limit of 100,000 messages in a single request.
|
|
700
700
|
messages:,
|
|
@@ -708,7 +708,7 @@ module Anthropic
|
|
|
708
708
|
# for this request.
|
|
709
709
|
#
|
|
710
710
|
# Anthropic offers different levels of service for your API requests. See
|
|
711
|
-
# [service-tiers](https://docs.
|
|
711
|
+
# [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
|
|
712
712
|
service_tier: nil,
|
|
713
713
|
# Custom text sequences that will cause the model to stop generating.
|
|
714
714
|
#
|
|
@@ -724,7 +724,7 @@ module Anthropic
|
|
|
724
724
|
#
|
|
725
725
|
# A system prompt is a way of providing context and instructions to Claude, such
|
|
726
726
|
# as specifying a particular goal or role. See our
|
|
727
|
-
# [guide to system prompts](https://docs.
|
|
727
|
+
# [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
|
|
728
728
|
system_: nil,
|
|
729
729
|
# Amount of randomness injected into the response.
|
|
730
730
|
#
|
|
@@ -742,7 +742,7 @@ module Anthropic
|
|
|
742
742
|
# tokens and counts towards your `max_tokens` limit.
|
|
743
743
|
#
|
|
744
744
|
# See
|
|
745
|
-
# [extended thinking](https://docs.
|
|
745
|
+
# [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
|
|
746
746
|
# for details.
|
|
747
747
|
thinking: nil,
|
|
748
748
|
# How the model should use the provided tools. The model can use a specific tool,
|
|
@@ -757,9 +757,9 @@ module Anthropic
|
|
|
757
757
|
#
|
|
758
758
|
# There are two types of tools: **client tools** and **server tools**. The
|
|
759
759
|
# behavior described below applies to client tools. For
|
|
760
|
-
# [server tools](https://docs.
|
|
760
|
+
# [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
|
|
761
761
|
# see their individual documentation as each has its own behavior (e.g., the
|
|
762
|
-
# [web search tool](https://docs.
|
|
762
|
+
# [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
|
|
763
763
|
#
|
|
764
764
|
# Each tool definition includes:
|
|
765
765
|
#
|
|
@@ -822,7 +822,7 @@ module Anthropic
|
|
|
822
822
|
# functions, or more generally whenever you want the model to produce a particular
|
|
823
823
|
# JSON structure of output.
|
|
824
824
|
#
|
|
825
|
-
# See our [guide](https://docs.
|
|
825
|
+
# See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
|
|
826
826
|
tools: nil,
|
|
827
827
|
# Only sample from the top K options for each subsequent token.
|
|
828
828
|
#
|
|
@@ -945,12 +945,12 @@ module Anthropic
|
|
|
945
945
|
# { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
|
|
946
946
|
# ```
|
|
947
947
|
#
|
|
948
|
-
# See [input examples](https://docs.
|
|
948
|
+
# See [input examples](https://docs.claude.com/en/api/messages-examples).
|
|
949
949
|
#
|
|
950
950
|
# Note that if you want to include a
|
|
951
|
-
# [system prompt](https://docs.
|
|
952
|
-
#
|
|
953
|
-
#
|
|
951
|
+
# [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
|
|
952
|
+
# top-level `system` parameter — there is no `"system"` role for input messages in
|
|
953
|
+
# the Messages API.
|
|
954
954
|
#
|
|
955
955
|
# There is a limit of 100,000 messages in a single request.
|
|
956
956
|
messages:,
|
|
@@ -962,7 +962,7 @@ module Anthropic
|
|
|
962
962
|
#
|
|
963
963
|
# A system prompt is a way of providing context and instructions to Claude, such
|
|
964
964
|
# as specifying a particular goal or role. See our
|
|
965
|
-
# [guide to system prompts](https://docs.
|
|
965
|
+
# [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
|
|
966
966
|
system_: nil,
|
|
967
967
|
# Configuration for enabling Claude's extended thinking.
|
|
968
968
|
#
|
|
@@ -971,7 +971,7 @@ module Anthropic
|
|
|
971
971
|
# tokens and counts towards your `max_tokens` limit.
|
|
972
972
|
#
|
|
973
973
|
# See
|
|
974
|
-
# [extended thinking](https://docs.
|
|
974
|
+
# [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
|
|
975
975
|
# for details.
|
|
976
976
|
thinking: nil,
|
|
977
977
|
# How the model should use the provided tools. The model can use a specific tool,
|
|
@@ -986,9 +986,9 @@ module Anthropic
|
|
|
986
986
|
#
|
|
987
987
|
# There are two types of tools: **client tools** and **server tools**. The
|
|
988
988
|
# behavior described below applies to client tools. For
|
|
989
|
-
# [server tools](https://docs.
|
|
989
|
+
# [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
|
|
990
990
|
# see their individual documentation as each has its own behavior (e.g., the
|
|
991
|
-
# [web search tool](https://docs.
|
|
991
|
+
# [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
|
|
992
992
|
#
|
|
993
993
|
# Each tool definition includes:
|
|
994
994
|
#
|
|
@@ -1051,7 +1051,7 @@ module Anthropic
|
|
|
1051
1051
|
# functions, or more generally whenever you want the model to produce a particular
|
|
1052
1052
|
# JSON structure of output.
|
|
1053
1053
|
#
|
|
1054
|
-
# See our [guide](https://docs.
|
|
1054
|
+
# See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
|
|
1055
1055
|
tools: nil,
|
|
1056
1056
|
request_options: {}
|
|
1057
1057
|
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Internal
|
|
3
|
+
class PageCursor[Elem]
|
|
4
|
+
include Anthropic::Internal::Type::BasePage[Elem]
|
|
5
|
+
|
|
6
|
+
attr_accessor data: ::Array[Elem]?
|
|
7
|
+
|
|
8
|
+
attr_accessor has_more: bool
|
|
9
|
+
|
|
10
|
+
attr_accessor next_page_: String?
|
|
11
|
+
|
|
12
|
+
def inspect: -> String
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Internal
|
|
3
|
+
class TokenPage[Elem]
|
|
4
|
+
include Anthropic::Internal::Type::BasePage[Elem]
|
|
5
|
+
|
|
6
|
+
attr_accessor data: ::Array[Elem]?
|
|
7
|
+
|
|
8
|
+
attr_accessor has_more: bool
|
|
9
|
+
|
|
10
|
+
attr_accessor next_page_: String?
|
|
11
|
+
|
|
12
|
+
def inspect: -> String
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -19,6 +19,7 @@ module Anthropic
|
|
|
19
19
|
| :"context-1m-2025-08-07"
|
|
20
20
|
| :"context-management-2025-06-27"
|
|
21
21
|
| :"model-context-window-exceeded-2025-08-26"
|
|
22
|
+
| :"skills-2025-10-02"
|
|
22
23
|
|
|
23
24
|
module AnthropicBeta
|
|
24
25
|
extend Anthropic::Internal::Type::Union
|
|
@@ -42,6 +43,7 @@ module Anthropic
|
|
|
42
43
|
CONTEXT_1M_2025_08_07: :"context-1m-2025-08-07"
|
|
43
44
|
CONTEXT_MANAGEMENT_2025_06_27: :"context-management-2025-06-27"
|
|
44
45
|
MODEL_CONTEXT_WINDOW_EXCEEDED_2025_08_26: :"model-context-window-exceeded-2025-08-26"
|
|
46
|
+
SKILLS_2025_10_02: :"skills-2025-10-02"
|
|
45
47
|
end
|
|
46
48
|
end
|
|
47
49
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaAllThinkingTurns = Beta::BetaAllThinkingTurns
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_all_thinking_turns = { type: :all }
|
|
7
|
+
|
|
8
|
+
class BetaAllThinkingTurns < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor type: :all
|
|
10
|
+
|
|
11
|
+
def initialize: (?type: :all) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { type: :all }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaClearThinking20251015Edit = Beta::BetaClearThinking20251015Edit
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_clear_thinking20251015_edit =
|
|
7
|
+
{
|
|
8
|
+
type: :clear_thinking_20251015,
|
|
9
|
+
keep: Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class BetaClearThinking20251015Edit < Anthropic::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor type: :clear_thinking_20251015
|
|
14
|
+
|
|
15
|
+
attr_reader keep: Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep?
|
|
16
|
+
|
|
17
|
+
def keep=: (
|
|
18
|
+
Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep
|
|
19
|
+
) -> Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
?keep: Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep,
|
|
23
|
+
?type: :clear_thinking_20251015
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
type: :clear_thinking_20251015,
|
|
28
|
+
keep: Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
type keep =
|
|
32
|
+
Anthropic::Beta::BetaThinkingTurns
|
|
33
|
+
| Anthropic::Beta::BetaAllThinkingTurns
|
|
34
|
+
| :all
|
|
35
|
+
|
|
36
|
+
module Keep
|
|
37
|
+
extend Anthropic::Internal::Type::Union
|
|
38
|
+
|
|
39
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaClearThinking20251015Edit::keep]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaClearThinking20251015EditResponse = Beta::BetaClearThinking20251015EditResponse
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_clear_thinking20251015_edit_response =
|
|
7
|
+
{
|
|
8
|
+
cleared_input_tokens: Integer,
|
|
9
|
+
cleared_thinking_turns: Integer,
|
|
10
|
+
type: :clear_thinking_20251015
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BetaClearThinking20251015EditResponse < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor cleared_input_tokens: Integer
|
|
15
|
+
|
|
16
|
+
attr_accessor cleared_thinking_turns: Integer
|
|
17
|
+
|
|
18
|
+
attr_accessor type: :clear_thinking_20251015
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
cleared_input_tokens: Integer,
|
|
22
|
+
cleared_thinking_turns: Integer,
|
|
23
|
+
?type: :clear_thinking_20251015
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
cleared_input_tokens: Integer,
|
|
28
|
+
cleared_thinking_turns: Integer,
|
|
29
|
+
type: :clear_thinking_20251015
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -3,16 +3,31 @@ module Anthropic
|
|
|
3
3
|
class BetaContainer = Beta::BetaContainer
|
|
4
4
|
|
|
5
5
|
module Beta
|
|
6
|
-
type beta_container =
|
|
6
|
+
type beta_container =
|
|
7
|
+
{
|
|
8
|
+
id: String,
|
|
9
|
+
expires_at: Time,
|
|
10
|
+
skills: ::Array[Anthropic::Beta::BetaSkill]?
|
|
11
|
+
}
|
|
7
12
|
|
|
8
13
|
class BetaContainer < Anthropic::Internal::Type::BaseModel
|
|
9
14
|
attr_accessor id: String
|
|
10
15
|
|
|
11
16
|
attr_accessor expires_at: Time
|
|
12
17
|
|
|
13
|
-
|
|
18
|
+
attr_accessor skills: ::Array[Anthropic::Beta::BetaSkill]?
|
|
14
19
|
|
|
15
|
-
def
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
expires_at: Time,
|
|
23
|
+
skills: ::Array[Anthropic::Beta::BetaSkill]?
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
expires_at: Time,
|
|
29
|
+
skills: ::Array[Anthropic::Beta::BetaSkill]?
|
|
30
|
+
}
|
|
16
31
|
end
|
|
17
32
|
end
|
|
18
33
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaContainerParams = Beta::BetaContainerParams
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_container_params =
|
|
7
|
+
{ id: String?, skills: ::Array[Anthropic::Beta::BetaSkillParams]? }
|
|
8
|
+
|
|
9
|
+
class BetaContainerParams < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor id: String?
|
|
11
|
+
|
|
12
|
+
attr_accessor skills: ::Array[Anthropic::Beta::BetaSkillParams]?
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
?id: String?,
|
|
16
|
+
?skills: ::Array[Anthropic::Beta::BetaSkillParams]?
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
id: String?,
|
|
21
|
+
skills: ::Array[Anthropic::Beta::BetaSkillParams]?
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -4,22 +4,34 @@ module Anthropic
|
|
|
4
4
|
|
|
5
5
|
module Beta
|
|
6
6
|
type beta_context_management_config =
|
|
7
|
-
{
|
|
7
|
+
{
|
|
8
|
+
edits: ::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]
|
|
9
|
+
}
|
|
8
10
|
|
|
9
11
|
class BetaContextManagementConfig < Anthropic::Internal::Type::BaseModel
|
|
10
|
-
attr_reader edits: ::Array[Anthropic::Beta::
|
|
12
|
+
attr_reader edits: ::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]?
|
|
11
13
|
|
|
12
14
|
def edits=: (
|
|
13
|
-
::Array[Anthropic::Beta::
|
|
14
|
-
) -> ::Array[Anthropic::Beta::
|
|
15
|
+
::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]
|
|
16
|
+
) -> ::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]
|
|
15
17
|
|
|
16
18
|
def initialize: (
|
|
17
|
-
?edits: ::Array[Anthropic::Beta::
|
|
19
|
+
?edits: ::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]
|
|
18
20
|
) -> void
|
|
19
21
|
|
|
20
22
|
def to_hash: -> {
|
|
21
|
-
edits: ::Array[Anthropic::Beta::
|
|
23
|
+
edits: ::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]
|
|
22
24
|
}
|
|
25
|
+
|
|
26
|
+
type edit =
|
|
27
|
+
Anthropic::Beta::BetaClearToolUses20250919Edit
|
|
28
|
+
| Anthropic::Beta::BetaClearThinking20251015Edit
|
|
29
|
+
|
|
30
|
+
module Edit
|
|
31
|
+
extend Anthropic::Internal::Type::Union
|
|
32
|
+
|
|
33
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaContextManagementConfig::edit]
|
|
34
|
+
end
|
|
23
35
|
end
|
|
24
36
|
end
|
|
25
37
|
end
|
|
@@ -5,19 +5,29 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
type beta_context_management_response =
|
|
7
7
|
{
|
|
8
|
-
applied_edits: ::Array[Anthropic::Beta::
|
|
8
|
+
applied_edits: ::Array[Anthropic::Models::Beta::BetaContextManagementResponse::applied_edit]
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class BetaContextManagementResponse < Anthropic::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor applied_edits: ::Array[Anthropic::Beta::
|
|
12
|
+
attr_accessor applied_edits: ::Array[Anthropic::Models::Beta::BetaContextManagementResponse::applied_edit]
|
|
13
13
|
|
|
14
14
|
def initialize: (
|
|
15
|
-
applied_edits: ::Array[Anthropic::Beta::
|
|
15
|
+
applied_edits: ::Array[Anthropic::Models::Beta::BetaContextManagementResponse::applied_edit]
|
|
16
16
|
) -> void
|
|
17
17
|
|
|
18
18
|
def to_hash: -> {
|
|
19
|
-
applied_edits: ::Array[Anthropic::Beta::
|
|
19
|
+
applied_edits: ::Array[Anthropic::Models::Beta::BetaContextManagementResponse::applied_edit]
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
type applied_edit =
|
|
23
|
+
Anthropic::Beta::BetaClearToolUses20250919EditResponse
|
|
24
|
+
| Anthropic::Beta::BetaClearThinking20251015EditResponse
|
|
25
|
+
|
|
26
|
+
module AppliedEdit
|
|
27
|
+
extend Anthropic::Internal::Type::Union
|
|
28
|
+
|
|
29
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaContextManagementResponse::applied_edit]
|
|
30
|
+
end
|
|
21
31
|
end
|
|
22
32
|
end
|
|
23
33
|
end
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
type beta_mcp_tool_use_block =
|
|
7
7
|
{
|
|
8
8
|
id: String,
|
|
9
|
-
input: top,
|
|
9
|
+
input: ::Hash[Symbol, top],
|
|
10
10
|
name: String,
|
|
11
11
|
server_name: String,
|
|
12
12
|
type: :mcp_tool_use
|
|
@@ -15,7 +15,7 @@ module Anthropic
|
|
|
15
15
|
class BetaMCPToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
16
16
|
attr_accessor id: String
|
|
17
17
|
|
|
18
|
-
attr_accessor input: top
|
|
18
|
+
attr_accessor input: ::Hash[Symbol, top]
|
|
19
19
|
|
|
20
20
|
attr_accessor name: String
|
|
21
21
|
|
|
@@ -25,7 +25,7 @@ module Anthropic
|
|
|
25
25
|
|
|
26
26
|
def initialize: (
|
|
27
27
|
id: String,
|
|
28
|
-
input: top,
|
|
28
|
+
input: ::Hash[Symbol, top],
|
|
29
29
|
name: String,
|
|
30
30
|
server_name: String,
|
|
31
31
|
?type: :mcp_tool_use
|
|
@@ -33,7 +33,7 @@ module Anthropic
|
|
|
33
33
|
|
|
34
34
|
def to_hash: -> {
|
|
35
35
|
id: String,
|
|
36
|
-
input: top,
|
|
36
|
+
input: ::Hash[Symbol, top],
|
|
37
37
|
name: String,
|
|
38
38
|
server_name: String,
|
|
39
39
|
type: :mcp_tool_use
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
type beta_mcp_tool_use_block_param =
|
|
7
7
|
{
|
|
8
8
|
id: String,
|
|
9
|
-
input: top,
|
|
9
|
+
input: ::Hash[Symbol, top],
|
|
10
10
|
name: String,
|
|
11
11
|
server_name: String,
|
|
12
12
|
type: :mcp_tool_use,
|
|
@@ -16,7 +16,7 @@ module Anthropic
|
|
|
16
16
|
class BetaMCPToolUseBlockParam < Anthropic::Internal::Type::BaseModel
|
|
17
17
|
attr_accessor id: String
|
|
18
18
|
|
|
19
|
-
attr_accessor input: top
|
|
19
|
+
attr_accessor input: ::Hash[Symbol, top]
|
|
20
20
|
|
|
21
21
|
attr_accessor name: String
|
|
22
22
|
|
|
@@ -28,7 +28,7 @@ module Anthropic
|
|
|
28
28
|
|
|
29
29
|
def initialize: (
|
|
30
30
|
id: String,
|
|
31
|
-
input: top,
|
|
31
|
+
input: ::Hash[Symbol, top],
|
|
32
32
|
name: String,
|
|
33
33
|
server_name: String,
|
|
34
34
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
@@ -37,7 +37,7 @@ module Anthropic
|
|
|
37
37
|
|
|
38
38
|
def to_hash: -> {
|
|
39
39
|
id: String,
|
|
40
|
-
input: top,
|
|
40
|
+
input: ::Hash[Symbol, top],
|
|
41
41
|
name: String,
|
|
42
42
|
server_name: String,
|
|
43
43
|
type: :mcp_tool_use,
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
type beta_server_tool_use_block =
|
|
7
7
|
{
|
|
8
8
|
id: String,
|
|
9
|
-
input: top,
|
|
9
|
+
input: ::Hash[Symbol, top],
|
|
10
10
|
name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_,
|
|
11
11
|
type: :server_tool_use
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@ module Anthropic
|
|
|
14
14
|
class BetaServerToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
15
15
|
attr_accessor id: String
|
|
16
16
|
|
|
17
|
-
attr_accessor input: top
|
|
17
|
+
attr_accessor input: ::Hash[Symbol, top]
|
|
18
18
|
|
|
19
19
|
attr_accessor name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_
|
|
20
20
|
|
|
@@ -22,14 +22,14 @@ module Anthropic
|
|
|
22
22
|
|
|
23
23
|
def initialize: (
|
|
24
24
|
id: String,
|
|
25
|
-
input: top,
|
|
25
|
+
input: ::Hash[Symbol, top],
|
|
26
26
|
name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_,
|
|
27
27
|
?type: :server_tool_use
|
|
28
28
|
) -> void
|
|
29
29
|
|
|
30
30
|
def to_hash: -> {
|
|
31
31
|
id: String,
|
|
32
|
-
input: top,
|
|
32
|
+
input: ::Hash[Symbol, top],
|
|
33
33
|
name: Anthropic::Models::Beta::BetaServerToolUseBlock::name_,
|
|
34
34
|
type: :server_tool_use
|
|
35
35
|
}
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
type beta_server_tool_use_block_param =
|
|
7
7
|
{
|
|
8
8
|
id: String,
|
|
9
|
-
input: top,
|
|
9
|
+
input: ::Hash[Symbol, top],
|
|
10
10
|
name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_,
|
|
11
11
|
type: :server_tool_use,
|
|
12
12
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
@@ -15,7 +15,7 @@ module Anthropic
|
|
|
15
15
|
class BetaServerToolUseBlockParam < Anthropic::Internal::Type::BaseModel
|
|
16
16
|
attr_accessor id: String
|
|
17
17
|
|
|
18
|
-
attr_accessor input: top
|
|
18
|
+
attr_accessor input: ::Hash[Symbol, top]
|
|
19
19
|
|
|
20
20
|
attr_accessor name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_
|
|
21
21
|
|
|
@@ -25,7 +25,7 @@ module Anthropic
|
|
|
25
25
|
|
|
26
26
|
def initialize: (
|
|
27
27
|
id: String,
|
|
28
|
-
input: top,
|
|
28
|
+
input: ::Hash[Symbol, top],
|
|
29
29
|
name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_,
|
|
30
30
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
31
31
|
?type: :server_tool_use
|
|
@@ -33,7 +33,7 @@ module Anthropic
|
|
|
33
33
|
|
|
34
34
|
def to_hash: -> {
|
|
35
35
|
id: String,
|
|
36
|
-
input: top,
|
|
36
|
+
input: ::Hash[Symbol, top],
|
|
37
37
|
name: Anthropic::Models::Beta::BetaServerToolUseBlockParam::name_,
|
|
38
38
|
type: :server_tool_use,
|
|
39
39
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaSkill = Beta::BetaSkill
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_skill =
|
|
7
|
+
{
|
|
8
|
+
skill_id: String,
|
|
9
|
+
type: Anthropic::Models::Beta::BetaSkill::type_,
|
|
10
|
+
version: String
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BetaSkill < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor skill_id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor type: Anthropic::Models::Beta::BetaSkill::type_
|
|
17
|
+
|
|
18
|
+
attr_accessor version: String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
skill_id: String,
|
|
22
|
+
type: Anthropic::Models::Beta::BetaSkill::type_,
|
|
23
|
+
version: String
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
skill_id: String,
|
|
28
|
+
type: Anthropic::Models::Beta::BetaSkill::type_,
|
|
29
|
+
version: String
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type type_ = :anthropic | :custom
|
|
33
|
+
|
|
34
|
+
module Type
|
|
35
|
+
extend Anthropic::Internal::Type::Enum
|
|
36
|
+
|
|
37
|
+
ANTHROPIC: :anthropic
|
|
38
|
+
CUSTOM: :custom
|
|
39
|
+
|
|
40
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaSkill::type_]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|