anthropic 1.11.0 → 1.12.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 +8 -0
- data/README.md +1 -1
- data/lib/anthropic/internal/page_cursor.rb +92 -0
- data/lib/anthropic/internal/token_page.rb +92 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -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 +0 -2
- data/lib/anthropic/models/beta/beta_context_management_response.rb +0 -2
- 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_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/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/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/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 +23 -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_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 +0 -1
- data/rbi/anthropic/models/beta/beta_context_management_response.rbi +0 -1
- 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_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/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/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/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_container.rbs +18 -3
- data/sig/anthropic/models/beta/beta_container_params.rbs +26 -0
- 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/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/stop_reason.rbs +0 -2
- 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 +71 -2
@@ -0,0 +1,79 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionCreateParams < Anthropic::Internal::Type::BaseModel
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
OrHash =
|
12
|
+
T.type_alias do
|
13
|
+
T.any(
|
14
|
+
Anthropic::Beta::Skills::VersionCreateParams,
|
15
|
+
Anthropic::Internal::AnyHash
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Files to upload for the skill.
|
20
|
+
#
|
21
|
+
# All files must be in the same top-level directory and must include a SKILL.md
|
22
|
+
# file at the root of that directory.
|
23
|
+
sig { returns(T.nilable(T::Array[Anthropic::Internal::FileInput])) }
|
24
|
+
attr_accessor :files
|
25
|
+
|
26
|
+
# Optional header to specify the beta version(s) you want to use.
|
27
|
+
sig do
|
28
|
+
returns(
|
29
|
+
T.nilable(
|
30
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
31
|
+
)
|
32
|
+
)
|
33
|
+
end
|
34
|
+
attr_reader :betas
|
35
|
+
|
36
|
+
sig do
|
37
|
+
params(
|
38
|
+
betas: T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
39
|
+
).void
|
40
|
+
end
|
41
|
+
attr_writer :betas
|
42
|
+
|
43
|
+
sig do
|
44
|
+
params(
|
45
|
+
files: T.nilable(T::Array[Anthropic::Internal::FileInput]),
|
46
|
+
betas:
|
47
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
48
|
+
request_options: Anthropic::RequestOptions::OrHash
|
49
|
+
).returns(T.attached_class)
|
50
|
+
end
|
51
|
+
def self.new(
|
52
|
+
# Files to upload for the skill.
|
53
|
+
#
|
54
|
+
# All files must be in the same top-level directory and must include a SKILL.md
|
55
|
+
# file at the root of that directory.
|
56
|
+
files: nil,
|
57
|
+
# Optional header to specify the beta version(s) you want to use.
|
58
|
+
betas: nil,
|
59
|
+
request_options: {}
|
60
|
+
)
|
61
|
+
end
|
62
|
+
|
63
|
+
sig do
|
64
|
+
override.returns(
|
65
|
+
{
|
66
|
+
files: T.nilable(T::Array[Anthropic::Internal::FileInput]),
|
67
|
+
betas:
|
68
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
69
|
+
request_options: Anthropic::RequestOptions
|
70
|
+
}
|
71
|
+
)
|
72
|
+
end
|
73
|
+
def to_hash
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionCreateResponse < Anthropic::Internal::Type::BaseModel
|
8
|
+
OrHash =
|
9
|
+
T.type_alias do
|
10
|
+
T.any(
|
11
|
+
Anthropic::Models::Beta::Skills::VersionCreateResponse,
|
12
|
+
Anthropic::Internal::AnyHash
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Unique identifier for the skill version.
|
17
|
+
#
|
18
|
+
# The format and length of IDs may change over time.
|
19
|
+
sig { returns(String) }
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# ISO 8601 timestamp of when the skill version was created.
|
23
|
+
sig { returns(String) }
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
26
|
+
# Description of the skill version.
|
27
|
+
#
|
28
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
29
|
+
sig { returns(String) }
|
30
|
+
attr_accessor :description
|
31
|
+
|
32
|
+
# Directory name of the skill version.
|
33
|
+
#
|
34
|
+
# This is the top-level directory name that was extracted from the uploaded files.
|
35
|
+
sig { returns(String) }
|
36
|
+
attr_accessor :directory
|
37
|
+
|
38
|
+
# Human-readable name of the skill version.
|
39
|
+
#
|
40
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
41
|
+
sig { returns(String) }
|
42
|
+
attr_accessor :name
|
43
|
+
|
44
|
+
# Identifier for the skill that this version belongs to.
|
45
|
+
sig { returns(String) }
|
46
|
+
attr_accessor :skill_id
|
47
|
+
|
48
|
+
# Object type.
|
49
|
+
#
|
50
|
+
# For Skill Versions, this is always `"skill_version"`.
|
51
|
+
sig { returns(String) }
|
52
|
+
attr_accessor :type
|
53
|
+
|
54
|
+
# Version identifier for the skill.
|
55
|
+
#
|
56
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
57
|
+
sig { returns(String) }
|
58
|
+
attr_accessor :version
|
59
|
+
|
60
|
+
sig do
|
61
|
+
params(
|
62
|
+
id: String,
|
63
|
+
created_at: String,
|
64
|
+
description: String,
|
65
|
+
directory: String,
|
66
|
+
name: String,
|
67
|
+
skill_id: String,
|
68
|
+
type: String,
|
69
|
+
version: String
|
70
|
+
).returns(T.attached_class)
|
71
|
+
end
|
72
|
+
def self.new(
|
73
|
+
# Unique identifier for the skill version.
|
74
|
+
#
|
75
|
+
# The format and length of IDs may change over time.
|
76
|
+
id:,
|
77
|
+
# ISO 8601 timestamp of when the skill version was created.
|
78
|
+
created_at:,
|
79
|
+
# Description of the skill version.
|
80
|
+
#
|
81
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
82
|
+
description:,
|
83
|
+
# Directory name of the skill version.
|
84
|
+
#
|
85
|
+
# This is the top-level directory name that was extracted from the uploaded files.
|
86
|
+
directory:,
|
87
|
+
# Human-readable name of the skill version.
|
88
|
+
#
|
89
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
90
|
+
name:,
|
91
|
+
# Identifier for the skill that this version belongs to.
|
92
|
+
skill_id:,
|
93
|
+
# Object type.
|
94
|
+
#
|
95
|
+
# For Skill Versions, this is always `"skill_version"`.
|
96
|
+
type:,
|
97
|
+
# Version identifier for the skill.
|
98
|
+
#
|
99
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
100
|
+
version:
|
101
|
+
)
|
102
|
+
end
|
103
|
+
|
104
|
+
sig do
|
105
|
+
override.returns(
|
106
|
+
{
|
107
|
+
id: String,
|
108
|
+
created_at: String,
|
109
|
+
description: String,
|
110
|
+
directory: String,
|
111
|
+
name: String,
|
112
|
+
skill_id: String,
|
113
|
+
type: String,
|
114
|
+
version: String
|
115
|
+
}
|
116
|
+
)
|
117
|
+
end
|
118
|
+
def to_hash
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionDeleteParams < Anthropic::Internal::Type::BaseModel
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
OrHash =
|
12
|
+
T.type_alias do
|
13
|
+
T.any(
|
14
|
+
Anthropic::Beta::Skills::VersionDeleteParams,
|
15
|
+
Anthropic::Internal::AnyHash
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Unique identifier for the skill.
|
20
|
+
#
|
21
|
+
# The format and length of IDs may change over time.
|
22
|
+
sig { returns(String) }
|
23
|
+
attr_accessor :skill_id
|
24
|
+
|
25
|
+
# Optional header to specify the beta version(s) you want to use.
|
26
|
+
sig do
|
27
|
+
returns(
|
28
|
+
T.nilable(
|
29
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
30
|
+
)
|
31
|
+
)
|
32
|
+
end
|
33
|
+
attr_reader :betas
|
34
|
+
|
35
|
+
sig do
|
36
|
+
params(
|
37
|
+
betas: T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
38
|
+
).void
|
39
|
+
end
|
40
|
+
attr_writer :betas
|
41
|
+
|
42
|
+
sig do
|
43
|
+
params(
|
44
|
+
skill_id: String,
|
45
|
+
betas:
|
46
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
47
|
+
request_options: Anthropic::RequestOptions::OrHash
|
48
|
+
).returns(T.attached_class)
|
49
|
+
end
|
50
|
+
def self.new(
|
51
|
+
# Unique identifier for the skill.
|
52
|
+
#
|
53
|
+
# The format and length of IDs may change over time.
|
54
|
+
skill_id:,
|
55
|
+
# Optional header to specify the beta version(s) you want to use.
|
56
|
+
betas: nil,
|
57
|
+
request_options: {}
|
58
|
+
)
|
59
|
+
end
|
60
|
+
|
61
|
+
sig do
|
62
|
+
override.returns(
|
63
|
+
{
|
64
|
+
skill_id: String,
|
65
|
+
betas:
|
66
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
67
|
+
request_options: Anthropic::RequestOptions
|
68
|
+
}
|
69
|
+
)
|
70
|
+
end
|
71
|
+
def to_hash
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionDeleteResponse < Anthropic::Internal::Type::BaseModel
|
8
|
+
OrHash =
|
9
|
+
T.type_alias do
|
10
|
+
T.any(
|
11
|
+
Anthropic::Models::Beta::Skills::VersionDeleteResponse,
|
12
|
+
Anthropic::Internal::AnyHash
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Version identifier for the skill.
|
17
|
+
#
|
18
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
19
|
+
sig { returns(String) }
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# Deleted object type.
|
23
|
+
#
|
24
|
+
# For Skill Versions, this is always `"skill_version_deleted"`.
|
25
|
+
sig { returns(String) }
|
26
|
+
attr_accessor :type
|
27
|
+
|
28
|
+
sig { params(id: String, type: String).returns(T.attached_class) }
|
29
|
+
def self.new(
|
30
|
+
# Version identifier for the skill.
|
31
|
+
#
|
32
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
33
|
+
id:,
|
34
|
+
# Deleted object type.
|
35
|
+
#
|
36
|
+
# For Skill Versions, this is always `"skill_version_deleted"`.
|
37
|
+
type:
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
sig { override.returns({ id: String, type: String }) }
|
42
|
+
def to_hash
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionListParams < Anthropic::Internal::Type::BaseModel
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
OrHash =
|
12
|
+
T.type_alias do
|
13
|
+
T.any(
|
14
|
+
Anthropic::Beta::Skills::VersionListParams,
|
15
|
+
Anthropic::Internal::AnyHash
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Number of items to return per page.
|
20
|
+
#
|
21
|
+
# Defaults to `20`. Ranges from `1` to `1000`.
|
22
|
+
sig { returns(T.nilable(Integer)) }
|
23
|
+
attr_accessor :limit
|
24
|
+
|
25
|
+
# Optionally set to the `next_page` token from the previous response.
|
26
|
+
sig { returns(T.nilable(String)) }
|
27
|
+
attr_accessor :page
|
28
|
+
|
29
|
+
# Optional header to specify the beta version(s) you want to use.
|
30
|
+
sig do
|
31
|
+
returns(
|
32
|
+
T.nilable(
|
33
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
34
|
+
)
|
35
|
+
)
|
36
|
+
end
|
37
|
+
attr_reader :betas
|
38
|
+
|
39
|
+
sig do
|
40
|
+
params(
|
41
|
+
betas: T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
42
|
+
).void
|
43
|
+
end
|
44
|
+
attr_writer :betas
|
45
|
+
|
46
|
+
sig do
|
47
|
+
params(
|
48
|
+
limit: T.nilable(Integer),
|
49
|
+
page: T.nilable(String),
|
50
|
+
betas:
|
51
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
52
|
+
request_options: Anthropic::RequestOptions::OrHash
|
53
|
+
).returns(T.attached_class)
|
54
|
+
end
|
55
|
+
def self.new(
|
56
|
+
# Number of items to return per page.
|
57
|
+
#
|
58
|
+
# Defaults to `20`. Ranges from `1` to `1000`.
|
59
|
+
limit: nil,
|
60
|
+
# Optionally set to the `next_page` token from the previous response.
|
61
|
+
page: nil,
|
62
|
+
# Optional header to specify the beta version(s) you want to use.
|
63
|
+
betas: nil,
|
64
|
+
request_options: {}
|
65
|
+
)
|
66
|
+
end
|
67
|
+
|
68
|
+
sig do
|
69
|
+
override.returns(
|
70
|
+
{
|
71
|
+
limit: T.nilable(Integer),
|
72
|
+
page: T.nilable(String),
|
73
|
+
betas:
|
74
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
75
|
+
request_options: Anthropic::RequestOptions
|
76
|
+
}
|
77
|
+
)
|
78
|
+
end
|
79
|
+
def to_hash
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionListResponse < Anthropic::Internal::Type::BaseModel
|
8
|
+
OrHash =
|
9
|
+
T.type_alias do
|
10
|
+
T.any(
|
11
|
+
Anthropic::Models::Beta::Skills::VersionListResponse,
|
12
|
+
Anthropic::Internal::AnyHash
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Unique identifier for the skill version.
|
17
|
+
#
|
18
|
+
# The format and length of IDs may change over time.
|
19
|
+
sig { returns(String) }
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# ISO 8601 timestamp of when the skill version was created.
|
23
|
+
sig { returns(String) }
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
26
|
+
# Description of the skill version.
|
27
|
+
#
|
28
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
29
|
+
sig { returns(String) }
|
30
|
+
attr_accessor :description
|
31
|
+
|
32
|
+
# Directory name of the skill version.
|
33
|
+
#
|
34
|
+
# This is the top-level directory name that was extracted from the uploaded files.
|
35
|
+
sig { returns(String) }
|
36
|
+
attr_accessor :directory
|
37
|
+
|
38
|
+
# Human-readable name of the skill version.
|
39
|
+
#
|
40
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
41
|
+
sig { returns(String) }
|
42
|
+
attr_accessor :name
|
43
|
+
|
44
|
+
# Identifier for the skill that this version belongs to.
|
45
|
+
sig { returns(String) }
|
46
|
+
attr_accessor :skill_id
|
47
|
+
|
48
|
+
# Object type.
|
49
|
+
#
|
50
|
+
# For Skill Versions, this is always `"skill_version"`.
|
51
|
+
sig { returns(String) }
|
52
|
+
attr_accessor :type
|
53
|
+
|
54
|
+
# Version identifier for the skill.
|
55
|
+
#
|
56
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
57
|
+
sig { returns(String) }
|
58
|
+
attr_accessor :version
|
59
|
+
|
60
|
+
sig do
|
61
|
+
params(
|
62
|
+
id: String,
|
63
|
+
created_at: String,
|
64
|
+
description: String,
|
65
|
+
directory: String,
|
66
|
+
name: String,
|
67
|
+
skill_id: String,
|
68
|
+
type: String,
|
69
|
+
version: String
|
70
|
+
).returns(T.attached_class)
|
71
|
+
end
|
72
|
+
def self.new(
|
73
|
+
# Unique identifier for the skill version.
|
74
|
+
#
|
75
|
+
# The format and length of IDs may change over time.
|
76
|
+
id:,
|
77
|
+
# ISO 8601 timestamp of when the skill version was created.
|
78
|
+
created_at:,
|
79
|
+
# Description of the skill version.
|
80
|
+
#
|
81
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
82
|
+
description:,
|
83
|
+
# Directory name of the skill version.
|
84
|
+
#
|
85
|
+
# This is the top-level directory name that was extracted from the uploaded files.
|
86
|
+
directory:,
|
87
|
+
# Human-readable name of the skill version.
|
88
|
+
#
|
89
|
+
# This is extracted from the SKILL.md file in the skill upload.
|
90
|
+
name:,
|
91
|
+
# Identifier for the skill that this version belongs to.
|
92
|
+
skill_id:,
|
93
|
+
# Object type.
|
94
|
+
#
|
95
|
+
# For Skill Versions, this is always `"skill_version"`.
|
96
|
+
type:,
|
97
|
+
# Version identifier for the skill.
|
98
|
+
#
|
99
|
+
# Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
|
100
|
+
version:
|
101
|
+
)
|
102
|
+
end
|
103
|
+
|
104
|
+
sig do
|
105
|
+
override.returns(
|
106
|
+
{
|
107
|
+
id: String,
|
108
|
+
created_at: String,
|
109
|
+
description: String,
|
110
|
+
directory: String,
|
111
|
+
name: String,
|
112
|
+
skill_id: String,
|
113
|
+
type: String,
|
114
|
+
version: String
|
115
|
+
}
|
116
|
+
)
|
117
|
+
end
|
118
|
+
def to_hash
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Anthropic
|
4
|
+
module Models
|
5
|
+
module Beta
|
6
|
+
module Skills
|
7
|
+
class VersionRetrieveParams < Anthropic::Internal::Type::BaseModel
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
OrHash =
|
12
|
+
T.type_alias do
|
13
|
+
T.any(
|
14
|
+
Anthropic::Beta::Skills::VersionRetrieveParams,
|
15
|
+
Anthropic::Internal::AnyHash
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Unique identifier for the skill.
|
20
|
+
#
|
21
|
+
# The format and length of IDs may change over time.
|
22
|
+
sig { returns(String) }
|
23
|
+
attr_accessor :skill_id
|
24
|
+
|
25
|
+
# Optional header to specify the beta version(s) you want to use.
|
26
|
+
sig do
|
27
|
+
returns(
|
28
|
+
T.nilable(
|
29
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
30
|
+
)
|
31
|
+
)
|
32
|
+
end
|
33
|
+
attr_reader :betas
|
34
|
+
|
35
|
+
sig do
|
36
|
+
params(
|
37
|
+
betas: T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)]
|
38
|
+
).void
|
39
|
+
end
|
40
|
+
attr_writer :betas
|
41
|
+
|
42
|
+
sig do
|
43
|
+
params(
|
44
|
+
skill_id: String,
|
45
|
+
betas:
|
46
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
47
|
+
request_options: Anthropic::RequestOptions::OrHash
|
48
|
+
).returns(T.attached_class)
|
49
|
+
end
|
50
|
+
def self.new(
|
51
|
+
# Unique identifier for the skill.
|
52
|
+
#
|
53
|
+
# The format and length of IDs may change over time.
|
54
|
+
skill_id:,
|
55
|
+
# Optional header to specify the beta version(s) you want to use.
|
56
|
+
betas: nil,
|
57
|
+
request_options: {}
|
58
|
+
)
|
59
|
+
end
|
60
|
+
|
61
|
+
sig do
|
62
|
+
override.returns(
|
63
|
+
{
|
64
|
+
skill_id: String,
|
65
|
+
betas:
|
66
|
+
T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
|
67
|
+
request_options: Anthropic::RequestOptions
|
68
|
+
}
|
69
|
+
)
|
70
|
+
end
|
71
|
+
def to_hash
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|