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
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#create
|
|
7
|
+
class SkillCreateResponse < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for the skill.
|
|
10
|
+
#
|
|
11
|
+
# The format and length of IDs may change over time.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute created_at
|
|
17
|
+
# ISO 8601 timestamp of when the skill was created.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :created_at, String
|
|
21
|
+
|
|
22
|
+
# @!attribute display_title
|
|
23
|
+
# Display title for the skill.
|
|
24
|
+
#
|
|
25
|
+
# This is a human-readable label that is not included in the prompt sent to the
|
|
26
|
+
# model.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :display_title, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute latest_version
|
|
32
|
+
# The latest version identifier for the skill.
|
|
33
|
+
#
|
|
34
|
+
# This represents the most recent version of the skill that has been created.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
required :latest_version, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute source
|
|
40
|
+
# Source of the skill.
|
|
41
|
+
#
|
|
42
|
+
# This may be one of the following values:
|
|
43
|
+
#
|
|
44
|
+
# - `"custom"`: the skill was created by a user
|
|
45
|
+
# - `"anthropic"`: the skill was created by Anthropic
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
required :source, String
|
|
49
|
+
|
|
50
|
+
# @!attribute type
|
|
51
|
+
# Object type.
|
|
52
|
+
#
|
|
53
|
+
# For Skills, this is always `"skill"`.
|
|
54
|
+
#
|
|
55
|
+
# @return [String]
|
|
56
|
+
required :type, String
|
|
57
|
+
|
|
58
|
+
# @!attribute updated_at
|
|
59
|
+
# ISO 8601 timestamp of when the skill was last updated.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
required :updated_at, String
|
|
63
|
+
|
|
64
|
+
# @!method initialize(id:, created_at:, display_title:, latest_version:, source:, type:, updated_at:)
|
|
65
|
+
# Some parameter documentations has been truncated, see
|
|
66
|
+
# {Anthropic::Models::Beta::SkillCreateResponse} for more details.
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] Unique identifier for the skill.
|
|
69
|
+
#
|
|
70
|
+
# @param created_at [String] ISO 8601 timestamp of when the skill was created.
|
|
71
|
+
#
|
|
72
|
+
# @param display_title [String, nil] Display title for the skill.
|
|
73
|
+
#
|
|
74
|
+
# @param latest_version [String, nil] The latest version identifier for the skill.
|
|
75
|
+
#
|
|
76
|
+
# @param source [String] Source of the skill.
|
|
77
|
+
#
|
|
78
|
+
# @param type [String] Object type.
|
|
79
|
+
#
|
|
80
|
+
# @param updated_at [String] ISO 8601 timestamp of when the skill was last updated.
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#delete
|
|
7
|
+
class SkillDeleteParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute betas
|
|
12
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
15
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(betas: nil, request_options: {})
|
|
18
|
+
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
19
|
+
#
|
|
20
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#delete
|
|
7
|
+
class SkillDeleteResponse < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for the skill.
|
|
10
|
+
#
|
|
11
|
+
# The format and length of IDs may change over time.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute type
|
|
17
|
+
# Deleted object type.
|
|
18
|
+
#
|
|
19
|
+
# For Skills, this is always `"skill_deleted"`.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :type, String
|
|
23
|
+
|
|
24
|
+
# @!method initialize(id:, type:)
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Anthropic::Models::Beta::SkillDeleteResponse} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param id [String] Unique identifier for the skill.
|
|
29
|
+
#
|
|
30
|
+
# @param type [String] Deleted object type.
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#list
|
|
7
|
+
class SkillListParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute limit
|
|
12
|
+
# Number of results to return per page.
|
|
13
|
+
#
|
|
14
|
+
# Maximum value is 100. Defaults to 20.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer, nil]
|
|
17
|
+
optional :limit, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute page
|
|
20
|
+
# Pagination token for fetching a specific page of results.
|
|
21
|
+
#
|
|
22
|
+
# Pass the value from a previous response's `next_page` field to get the next page
|
|
23
|
+
# of results.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :page, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute source
|
|
29
|
+
# Filter skills by source.
|
|
30
|
+
#
|
|
31
|
+
# If provided, only skills from the specified source will be returned:
|
|
32
|
+
#
|
|
33
|
+
# - `"custom"`: only return user-created skills
|
|
34
|
+
# - `"anthropic"`: only return Anthropic-created skills
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :source, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute betas
|
|
40
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
41
|
+
#
|
|
42
|
+
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
43
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(limit: nil, page: nil, source: nil, betas: nil, request_options: {})
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {Anthropic::Models::Beta::SkillListParams} for more details.
|
|
48
|
+
#
|
|
49
|
+
# @param limit [Integer] Number of results to return per page.
|
|
50
|
+
#
|
|
51
|
+
# @param page [String, nil] Pagination token for fetching a specific page of results.
|
|
52
|
+
#
|
|
53
|
+
# @param source [String, nil] Filter skills by source.
|
|
54
|
+
#
|
|
55
|
+
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
56
|
+
#
|
|
57
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#list
|
|
7
|
+
class SkillListResponse < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for the skill.
|
|
10
|
+
#
|
|
11
|
+
# The format and length of IDs may change over time.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute created_at
|
|
17
|
+
# ISO 8601 timestamp of when the skill was created.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :created_at, String
|
|
21
|
+
|
|
22
|
+
# @!attribute display_title
|
|
23
|
+
# Display title for the skill.
|
|
24
|
+
#
|
|
25
|
+
# This is a human-readable label that is not included in the prompt sent to the
|
|
26
|
+
# model.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :display_title, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute latest_version
|
|
32
|
+
# The latest version identifier for the skill.
|
|
33
|
+
#
|
|
34
|
+
# This represents the most recent version of the skill that has been created.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
required :latest_version, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute source
|
|
40
|
+
# Source of the skill.
|
|
41
|
+
#
|
|
42
|
+
# This may be one of the following values:
|
|
43
|
+
#
|
|
44
|
+
# - `"custom"`: the skill was created by a user
|
|
45
|
+
# - `"anthropic"`: the skill was created by Anthropic
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
required :source, String
|
|
49
|
+
|
|
50
|
+
# @!attribute type
|
|
51
|
+
# Object type.
|
|
52
|
+
#
|
|
53
|
+
# For Skills, this is always `"skill"`.
|
|
54
|
+
#
|
|
55
|
+
# @return [String]
|
|
56
|
+
required :type, String
|
|
57
|
+
|
|
58
|
+
# @!attribute updated_at
|
|
59
|
+
# ISO 8601 timestamp of when the skill was last updated.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
required :updated_at, String
|
|
63
|
+
|
|
64
|
+
# @!method initialize(id:, created_at:, display_title:, latest_version:, source:, type:, updated_at:)
|
|
65
|
+
# Some parameter documentations has been truncated, see
|
|
66
|
+
# {Anthropic::Models::Beta::SkillListResponse} for more details.
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] Unique identifier for the skill.
|
|
69
|
+
#
|
|
70
|
+
# @param created_at [String] ISO 8601 timestamp of when the skill was created.
|
|
71
|
+
#
|
|
72
|
+
# @param display_title [String, nil] Display title for the skill.
|
|
73
|
+
#
|
|
74
|
+
# @param latest_version [String, nil] The latest version identifier for the skill.
|
|
75
|
+
#
|
|
76
|
+
# @param source [String] Source of the skill.
|
|
77
|
+
#
|
|
78
|
+
# @param type [String] Object type.
|
|
79
|
+
#
|
|
80
|
+
# @param updated_at [String] ISO 8601 timestamp of when the skill was last updated.
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#retrieve
|
|
7
|
+
class SkillRetrieveParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute betas
|
|
12
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
15
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(betas: nil, request_options: {})
|
|
18
|
+
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
19
|
+
#
|
|
20
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#retrieve
|
|
7
|
+
class SkillRetrieveResponse < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for the skill.
|
|
10
|
+
#
|
|
11
|
+
# The format and length of IDs may change over time.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute created_at
|
|
17
|
+
# ISO 8601 timestamp of when the skill was created.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :created_at, String
|
|
21
|
+
|
|
22
|
+
# @!attribute display_title
|
|
23
|
+
# Display title for the skill.
|
|
24
|
+
#
|
|
25
|
+
# This is a human-readable label that is not included in the prompt sent to the
|
|
26
|
+
# model.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :display_title, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute latest_version
|
|
32
|
+
# The latest version identifier for the skill.
|
|
33
|
+
#
|
|
34
|
+
# This represents the most recent version of the skill that has been created.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
required :latest_version, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute source
|
|
40
|
+
# Source of the skill.
|
|
41
|
+
#
|
|
42
|
+
# This may be one of the following values:
|
|
43
|
+
#
|
|
44
|
+
# - `"custom"`: the skill was created by a user
|
|
45
|
+
# - `"anthropic"`: the skill was created by Anthropic
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
required :source, String
|
|
49
|
+
|
|
50
|
+
# @!attribute type
|
|
51
|
+
# Object type.
|
|
52
|
+
#
|
|
53
|
+
# For Skills, this is always `"skill"`.
|
|
54
|
+
#
|
|
55
|
+
# @return [String]
|
|
56
|
+
required :type, String
|
|
57
|
+
|
|
58
|
+
# @!attribute updated_at
|
|
59
|
+
# ISO 8601 timestamp of when the skill was last updated.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
required :updated_at, String
|
|
63
|
+
|
|
64
|
+
# @!method initialize(id:, created_at:, display_title:, latest_version:, source:, type:, updated_at:)
|
|
65
|
+
# Some parameter documentations has been truncated, see
|
|
66
|
+
# {Anthropic::Models::Beta::SkillRetrieveResponse} for more details.
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] Unique identifier for the skill.
|
|
69
|
+
#
|
|
70
|
+
# @param created_at [String] ISO 8601 timestamp of when the skill was created.
|
|
71
|
+
#
|
|
72
|
+
# @param display_title [String, nil] Display title for the skill.
|
|
73
|
+
#
|
|
74
|
+
# @param latest_version [String, nil] The latest version identifier for the skill.
|
|
75
|
+
#
|
|
76
|
+
# @param source [String] Source of the skill.
|
|
77
|
+
#
|
|
78
|
+
# @param type [String] Object type.
|
|
79
|
+
#
|
|
80
|
+
# @param updated_at [String] ISO 8601 timestamp of when the skill was last updated.
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Skills
|
|
7
|
+
# @see Anthropic::Resources::Beta::Skills::Versions#create
|
|
8
|
+
class VersionCreateParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute files
|
|
13
|
+
# Files to upload for the skill.
|
|
14
|
+
#
|
|
15
|
+
# All files must be in the same top-level directory and must include a SKILL.md
|
|
16
|
+
# file at the root of that directory.
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<Pathname, StringIO, IO, String, Anthropic::FilePart>, nil]
|
|
19
|
+
optional :files,
|
|
20
|
+
Anthropic::Internal::Type::ArrayOf[Anthropic::Internal::Type::FileInput],
|
|
21
|
+
nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute betas
|
|
24
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
25
|
+
#
|
|
26
|
+
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
27
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
28
|
+
|
|
29
|
+
# @!method initialize(files: nil, betas: nil, request_options: {})
|
|
30
|
+
# Some parameter documentations has been truncated, see
|
|
31
|
+
# {Anthropic::Models::Beta::Skills::VersionCreateParams} for more details.
|
|
32
|
+
#
|
|
33
|
+
# @param files [Array<Pathname, StringIO, IO, String, Anthropic::FilePart>, nil] Files to upload for the skill.
|
|
34
|
+
#
|
|
35
|
+
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
36
|
+
#
|
|
37
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Skills
|
|
7
|
+
# @see Anthropic::Resources::Beta::Skills::Versions#create
|
|
8
|
+
class VersionCreateResponse < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# Unique identifier for the skill version.
|
|
11
|
+
#
|
|
12
|
+
# The format and length of IDs may change over time.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute created_at
|
|
18
|
+
# ISO 8601 timestamp of when the skill version was created.
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :created_at, String
|
|
22
|
+
|
|
23
|
+
# @!attribute description
|
|
24
|
+
# Description of the skill version.
|
|
25
|
+
#
|
|
26
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
|
27
|
+
#
|
|
28
|
+
# @return [String]
|
|
29
|
+
required :description, String
|
|
30
|
+
|
|
31
|
+
# @!attribute directory
|
|
32
|
+
# Directory name of the skill version.
|
|
33
|
+
#
|
|
34
|
+
# This is the top-level directory name that was extracted from the uploaded files.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :directory, String
|
|
38
|
+
|
|
39
|
+
# @!attribute name
|
|
40
|
+
# Human-readable name of the skill version.
|
|
41
|
+
#
|
|
42
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
required :name, String
|
|
46
|
+
|
|
47
|
+
# @!attribute skill_id
|
|
48
|
+
# Identifier for the skill that this version belongs to.
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
required :skill_id, String
|
|
52
|
+
|
|
53
|
+
# @!attribute type
|
|
54
|
+
# Object type.
|
|
55
|
+
#
|
|
56
|
+
# For Skill Versions, this is always `"skill_version"`.
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :type, String
|
|
60
|
+
|
|
61
|
+
# @!attribute version
|
|
62
|
+
# Version identifier for the skill.
|
|
63
|
+
#
|
|
64
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
|
65
|
+
#
|
|
66
|
+
# @return [String]
|
|
67
|
+
required :version, String
|
|
68
|
+
|
|
69
|
+
# @!method initialize(id:, created_at:, description:, directory:, name:, skill_id:, type:, version:)
|
|
70
|
+
# Some parameter documentations has been truncated, see
|
|
71
|
+
# {Anthropic::Models::Beta::Skills::VersionCreateResponse} for more details.
|
|
72
|
+
#
|
|
73
|
+
# @param id [String] Unique identifier for the skill version.
|
|
74
|
+
#
|
|
75
|
+
# @param created_at [String] ISO 8601 timestamp of when the skill version was created.
|
|
76
|
+
#
|
|
77
|
+
# @param description [String] Description of the skill version.
|
|
78
|
+
#
|
|
79
|
+
# @param directory [String] Directory name of the skill version.
|
|
80
|
+
#
|
|
81
|
+
# @param name [String] Human-readable name of the skill version.
|
|
82
|
+
#
|
|
83
|
+
# @param skill_id [String] Identifier for the skill that this version belongs to.
|
|
84
|
+
#
|
|
85
|
+
# @param type [String] Object type.
|
|
86
|
+
#
|
|
87
|
+
# @param version [String] Version identifier for the skill.
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Skills
|
|
7
|
+
# @see Anthropic::Resources::Beta::Skills::Versions#delete
|
|
8
|
+
class VersionDeleteParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute skill_id
|
|
13
|
+
# Unique identifier for the skill.
|
|
14
|
+
#
|
|
15
|
+
# The format and length of IDs may change over time.
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :skill_id, String
|
|
19
|
+
|
|
20
|
+
# @!attribute betas
|
|
21
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
22
|
+
#
|
|
23
|
+
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
24
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
25
|
+
|
|
26
|
+
# @!method initialize(skill_id:, betas: nil, request_options: {})
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Anthropic::Models::Beta::Skills::VersionDeleteParams} for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param skill_id [String] Unique identifier for the skill.
|
|
31
|
+
#
|
|
32
|
+
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
33
|
+
#
|
|
34
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Skills
|
|
7
|
+
# @see Anthropic::Resources::Beta::Skills::Versions#delete
|
|
8
|
+
class VersionDeleteResponse < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# Version identifier for the skill.
|
|
11
|
+
#
|
|
12
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute type
|
|
18
|
+
# Deleted object type.
|
|
19
|
+
#
|
|
20
|
+
# For Skill Versions, this is always `"skill_version_deleted"`.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :type, String
|
|
24
|
+
|
|
25
|
+
# @!method initialize(id:, type:)
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::Skills::VersionDeleteResponse} for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param id [String] Version identifier for the skill.
|
|
30
|
+
#
|
|
31
|
+
# @param type [String] Deleted object type.
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Skills
|
|
7
|
+
# @see Anthropic::Resources::Beta::Skills::Versions#list
|
|
8
|
+
class VersionListParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute limit
|
|
13
|
+
# Number of items to return per page.
|
|
14
|
+
#
|
|
15
|
+
# Defaults to `20`. Ranges from `1` to `1000`.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer, nil]
|
|
18
|
+
optional :limit, Integer, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute page
|
|
21
|
+
# Optionally set to the `next_page` token from the previous response.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :page, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute betas
|
|
27
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
28
|
+
#
|
|
29
|
+
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
30
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
31
|
+
|
|
32
|
+
# @!method initialize(limit: nil, page: nil, betas: nil, request_options: {})
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Anthropic::Models::Beta::Skills::VersionListParams} for more details.
|
|
35
|
+
#
|
|
36
|
+
# @param limit [Integer, nil] Number of items to return per page.
|
|
37
|
+
#
|
|
38
|
+
# @param page [String, nil] Optionally set to the `next_page` token from the previous response.
|
|
39
|
+
#
|
|
40
|
+
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
41
|
+
#
|
|
42
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|