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,49 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
type skill_list_params =
|
5
|
+
{
|
6
|
+
limit: Integer,
|
7
|
+
page: String?,
|
8
|
+
source: String?,
|
9
|
+
betas: ::Array[Anthropic::Models::anthropic_beta]
|
10
|
+
}
|
11
|
+
& Anthropic::Internal::Type::request_parameters
|
12
|
+
|
13
|
+
class SkillListParams < Anthropic::Internal::Type::BaseModel
|
14
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
15
|
+
include Anthropic::Internal::Type::RequestParameters
|
16
|
+
|
17
|
+
attr_reader limit: Integer?
|
18
|
+
|
19
|
+
def limit=: (Integer) -> Integer
|
20
|
+
|
21
|
+
attr_accessor page: String?
|
22
|
+
|
23
|
+
attr_accessor source: String?
|
24
|
+
|
25
|
+
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
26
|
+
|
27
|
+
def betas=: (
|
28
|
+
::Array[Anthropic::Models::anthropic_beta]
|
29
|
+
) -> ::Array[Anthropic::Models::anthropic_beta]
|
30
|
+
|
31
|
+
def initialize: (
|
32
|
+
?limit: Integer,
|
33
|
+
?page: String?,
|
34
|
+
?source: String?,
|
35
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
36
|
+
?request_options: Anthropic::request_opts
|
37
|
+
) -> void
|
38
|
+
|
39
|
+
def to_hash: -> {
|
40
|
+
limit: Integer,
|
41
|
+
page: String?,
|
42
|
+
source: String?,
|
43
|
+
betas: ::Array[Anthropic::Models::anthropic_beta],
|
44
|
+
request_options: Anthropic::RequestOptions
|
45
|
+
}
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
type skill_list_response =
|
5
|
+
{
|
6
|
+
id: String,
|
7
|
+
created_at: String,
|
8
|
+
display_title: String?,
|
9
|
+
latest_version: String?,
|
10
|
+
source: String,
|
11
|
+
type: String,
|
12
|
+
updated_at: String
|
13
|
+
}
|
14
|
+
|
15
|
+
class SkillListResponse < Anthropic::Internal::Type::BaseModel
|
16
|
+
attr_accessor id: String
|
17
|
+
|
18
|
+
attr_accessor created_at: String
|
19
|
+
|
20
|
+
attr_accessor display_title: String?
|
21
|
+
|
22
|
+
attr_accessor latest_version: String?
|
23
|
+
|
24
|
+
attr_accessor source: String
|
25
|
+
|
26
|
+
attr_accessor type: String
|
27
|
+
|
28
|
+
attr_accessor updated_at: String
|
29
|
+
|
30
|
+
def initialize: (
|
31
|
+
id: String,
|
32
|
+
created_at: String,
|
33
|
+
display_title: String?,
|
34
|
+
latest_version: String?,
|
35
|
+
source: String,
|
36
|
+
type: String,
|
37
|
+
updated_at: String
|
38
|
+
) -> void
|
39
|
+
|
40
|
+
def to_hash: -> {
|
41
|
+
id: String,
|
42
|
+
created_at: String,
|
43
|
+
display_title: String?,
|
44
|
+
latest_version: String?,
|
45
|
+
source: String,
|
46
|
+
type: String,
|
47
|
+
updated_at: String
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
type skill_retrieve_params =
|
5
|
+
{ betas: ::Array[Anthropic::Models::anthropic_beta] }
|
6
|
+
& Anthropic::Internal::Type::request_parameters
|
7
|
+
|
8
|
+
class SkillRetrieveParams < Anthropic::Internal::Type::BaseModel
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
11
|
+
|
12
|
+
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
13
|
+
|
14
|
+
def betas=: (
|
15
|
+
::Array[Anthropic::Models::anthropic_beta]
|
16
|
+
) -> ::Array[Anthropic::Models::anthropic_beta]
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
20
|
+
?request_options: Anthropic::request_opts
|
21
|
+
) -> void
|
22
|
+
|
23
|
+
def to_hash: -> {
|
24
|
+
betas: ::Array[Anthropic::Models::anthropic_beta],
|
25
|
+
request_options: Anthropic::RequestOptions
|
26
|
+
}
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
type skill_retrieve_response =
|
5
|
+
{
|
6
|
+
id: String,
|
7
|
+
created_at: String,
|
8
|
+
display_title: String?,
|
9
|
+
latest_version: String?,
|
10
|
+
source: String,
|
11
|
+
type: String,
|
12
|
+
updated_at: String
|
13
|
+
}
|
14
|
+
|
15
|
+
class SkillRetrieveResponse < Anthropic::Internal::Type::BaseModel
|
16
|
+
attr_accessor id: String
|
17
|
+
|
18
|
+
attr_accessor created_at: String
|
19
|
+
|
20
|
+
attr_accessor display_title: String?
|
21
|
+
|
22
|
+
attr_accessor latest_version: String?
|
23
|
+
|
24
|
+
attr_accessor source: String
|
25
|
+
|
26
|
+
attr_accessor type: String
|
27
|
+
|
28
|
+
attr_accessor updated_at: String
|
29
|
+
|
30
|
+
def initialize: (
|
31
|
+
id: String,
|
32
|
+
created_at: String,
|
33
|
+
display_title: String?,
|
34
|
+
latest_version: String?,
|
35
|
+
source: String,
|
36
|
+
type: String,
|
37
|
+
updated_at: String
|
38
|
+
) -> void
|
39
|
+
|
40
|
+
def to_hash: -> {
|
41
|
+
id: String,
|
42
|
+
created_at: String,
|
43
|
+
display_title: String?,
|
44
|
+
latest_version: String?,
|
45
|
+
source: String,
|
46
|
+
type: String,
|
47
|
+
updated_at: String
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_create_params =
|
6
|
+
{
|
7
|
+
files: ::Array[Anthropic::Internal::file_input]?,
|
8
|
+
betas: ::Array[Anthropic::Models::anthropic_beta]
|
9
|
+
}
|
10
|
+
& Anthropic::Internal::Type::request_parameters
|
11
|
+
|
12
|
+
class VersionCreateParams < Anthropic::Internal::Type::BaseModel
|
13
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
14
|
+
include Anthropic::Internal::Type::RequestParameters
|
15
|
+
|
16
|
+
attr_accessor files: ::Array[Anthropic::Internal::file_input]?
|
17
|
+
|
18
|
+
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
19
|
+
|
20
|
+
def betas=: (
|
21
|
+
::Array[Anthropic::Models::anthropic_beta]
|
22
|
+
) -> ::Array[Anthropic::Models::anthropic_beta]
|
23
|
+
|
24
|
+
def initialize: (
|
25
|
+
?files: ::Array[Anthropic::Internal::file_input]?,
|
26
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
27
|
+
?request_options: Anthropic::request_opts
|
28
|
+
) -> void
|
29
|
+
|
30
|
+
def to_hash: -> {
|
31
|
+
files: ::Array[Anthropic::Internal::file_input]?,
|
32
|
+
betas: ::Array[Anthropic::Models::anthropic_beta],
|
33
|
+
request_options: Anthropic::RequestOptions
|
34
|
+
}
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_create_response =
|
6
|
+
{
|
7
|
+
id: String,
|
8
|
+
created_at: String,
|
9
|
+
description: String,
|
10
|
+
directory: String,
|
11
|
+
name: String,
|
12
|
+
skill_id: String,
|
13
|
+
type: String,
|
14
|
+
version: String
|
15
|
+
}
|
16
|
+
|
17
|
+
class VersionCreateResponse < Anthropic::Internal::Type::BaseModel
|
18
|
+
attr_accessor id: String
|
19
|
+
|
20
|
+
attr_accessor created_at: String
|
21
|
+
|
22
|
+
attr_accessor description: String
|
23
|
+
|
24
|
+
attr_accessor directory: String
|
25
|
+
|
26
|
+
attr_accessor name: String
|
27
|
+
|
28
|
+
attr_accessor skill_id: String
|
29
|
+
|
30
|
+
attr_accessor type: String
|
31
|
+
|
32
|
+
attr_accessor version: String
|
33
|
+
|
34
|
+
def initialize: (
|
35
|
+
id: String,
|
36
|
+
created_at: String,
|
37
|
+
description: String,
|
38
|
+
directory: String,
|
39
|
+
name: String,
|
40
|
+
skill_id: String,
|
41
|
+
type: String,
|
42
|
+
version: String
|
43
|
+
) -> void
|
44
|
+
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
created_at: String,
|
48
|
+
description: String,
|
49
|
+
directory: String,
|
50
|
+
name: String,
|
51
|
+
skill_id: String,
|
52
|
+
type: String,
|
53
|
+
version: String
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_delete_params =
|
6
|
+
{
|
7
|
+
skill_id: String,
|
8
|
+
betas: ::Array[Anthropic::Models::anthropic_beta]
|
9
|
+
}
|
10
|
+
& Anthropic::Internal::Type::request_parameters
|
11
|
+
|
12
|
+
class VersionDeleteParams < Anthropic::Internal::Type::BaseModel
|
13
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
14
|
+
include Anthropic::Internal::Type::RequestParameters
|
15
|
+
|
16
|
+
attr_accessor skill_id: String
|
17
|
+
|
18
|
+
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
19
|
+
|
20
|
+
def betas=: (
|
21
|
+
::Array[Anthropic::Models::anthropic_beta]
|
22
|
+
) -> ::Array[Anthropic::Models::anthropic_beta]
|
23
|
+
|
24
|
+
def initialize: (
|
25
|
+
skill_id: String,
|
26
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
27
|
+
?request_options: Anthropic::request_opts
|
28
|
+
) -> void
|
29
|
+
|
30
|
+
def to_hash: -> {
|
31
|
+
skill_id: String,
|
32
|
+
betas: ::Array[Anthropic::Models::anthropic_beta],
|
33
|
+
request_options: Anthropic::RequestOptions
|
34
|
+
}
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_delete_response = { id: String, type: String }
|
6
|
+
|
7
|
+
class VersionDeleteResponse < Anthropic::Internal::Type::BaseModel
|
8
|
+
attr_accessor id: String
|
9
|
+
|
10
|
+
attr_accessor type: String
|
11
|
+
|
12
|
+
def initialize: (id: String, type: String) -> void
|
13
|
+
|
14
|
+
def to_hash: -> { id: String, type: String }
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_list_params =
|
6
|
+
{
|
7
|
+
limit: Integer?,
|
8
|
+
page: String?,
|
9
|
+
betas: ::Array[Anthropic::Models::anthropic_beta]
|
10
|
+
}
|
11
|
+
& Anthropic::Internal::Type::request_parameters
|
12
|
+
|
13
|
+
class VersionListParams < Anthropic::Internal::Type::BaseModel
|
14
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
15
|
+
include Anthropic::Internal::Type::RequestParameters
|
16
|
+
|
17
|
+
attr_accessor limit: Integer?
|
18
|
+
|
19
|
+
attr_accessor page: String?
|
20
|
+
|
21
|
+
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
22
|
+
|
23
|
+
def betas=: (
|
24
|
+
::Array[Anthropic::Models::anthropic_beta]
|
25
|
+
) -> ::Array[Anthropic::Models::anthropic_beta]
|
26
|
+
|
27
|
+
def initialize: (
|
28
|
+
?limit: Integer?,
|
29
|
+
?page: String?,
|
30
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
31
|
+
?request_options: Anthropic::request_opts
|
32
|
+
) -> void
|
33
|
+
|
34
|
+
def to_hash: -> {
|
35
|
+
limit: Integer?,
|
36
|
+
page: String?,
|
37
|
+
betas: ::Array[Anthropic::Models::anthropic_beta],
|
38
|
+
request_options: Anthropic::RequestOptions
|
39
|
+
}
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_list_response =
|
6
|
+
{
|
7
|
+
id: String,
|
8
|
+
created_at: String,
|
9
|
+
description: String,
|
10
|
+
directory: String,
|
11
|
+
name: String,
|
12
|
+
skill_id: String,
|
13
|
+
type: String,
|
14
|
+
version: String
|
15
|
+
}
|
16
|
+
|
17
|
+
class VersionListResponse < Anthropic::Internal::Type::BaseModel
|
18
|
+
attr_accessor id: String
|
19
|
+
|
20
|
+
attr_accessor created_at: String
|
21
|
+
|
22
|
+
attr_accessor description: String
|
23
|
+
|
24
|
+
attr_accessor directory: String
|
25
|
+
|
26
|
+
attr_accessor name: String
|
27
|
+
|
28
|
+
attr_accessor skill_id: String
|
29
|
+
|
30
|
+
attr_accessor type: String
|
31
|
+
|
32
|
+
attr_accessor version: String
|
33
|
+
|
34
|
+
def initialize: (
|
35
|
+
id: String,
|
36
|
+
created_at: String,
|
37
|
+
description: String,
|
38
|
+
directory: String,
|
39
|
+
name: String,
|
40
|
+
skill_id: String,
|
41
|
+
type: String,
|
42
|
+
version: String
|
43
|
+
) -> void
|
44
|
+
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
created_at: String,
|
48
|
+
description: String,
|
49
|
+
directory: String,
|
50
|
+
name: String,
|
51
|
+
skill_id: String,
|
52
|
+
type: String,
|
53
|
+
version: String
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_retrieve_params =
|
6
|
+
{
|
7
|
+
skill_id: String,
|
8
|
+
betas: ::Array[Anthropic::Models::anthropic_beta]
|
9
|
+
}
|
10
|
+
& Anthropic::Internal::Type::request_parameters
|
11
|
+
|
12
|
+
class VersionRetrieveParams < Anthropic::Internal::Type::BaseModel
|
13
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
14
|
+
include Anthropic::Internal::Type::RequestParameters
|
15
|
+
|
16
|
+
attr_accessor skill_id: String
|
17
|
+
|
18
|
+
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
19
|
+
|
20
|
+
def betas=: (
|
21
|
+
::Array[Anthropic::Models::anthropic_beta]
|
22
|
+
) -> ::Array[Anthropic::Models::anthropic_beta]
|
23
|
+
|
24
|
+
def initialize: (
|
25
|
+
skill_id: String,
|
26
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
27
|
+
?request_options: Anthropic::request_opts
|
28
|
+
) -> void
|
29
|
+
|
30
|
+
def to_hash: -> {
|
31
|
+
skill_id: String,
|
32
|
+
betas: ::Array[Anthropic::Models::anthropic_beta],
|
33
|
+
request_options: Anthropic::RequestOptions
|
34
|
+
}
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Models
|
3
|
+
module Beta
|
4
|
+
module Skills
|
5
|
+
type version_retrieve_response =
|
6
|
+
{
|
7
|
+
id: String,
|
8
|
+
created_at: String,
|
9
|
+
description: String,
|
10
|
+
directory: String,
|
11
|
+
name: String,
|
12
|
+
skill_id: String,
|
13
|
+
type: String,
|
14
|
+
version: String
|
15
|
+
}
|
16
|
+
|
17
|
+
class VersionRetrieveResponse < Anthropic::Internal::Type::BaseModel
|
18
|
+
attr_accessor id: String
|
19
|
+
|
20
|
+
attr_accessor created_at: String
|
21
|
+
|
22
|
+
attr_accessor description: String
|
23
|
+
|
24
|
+
attr_accessor directory: String
|
25
|
+
|
26
|
+
attr_accessor name: String
|
27
|
+
|
28
|
+
attr_accessor skill_id: String
|
29
|
+
|
30
|
+
attr_accessor type: String
|
31
|
+
|
32
|
+
attr_accessor version: String
|
33
|
+
|
34
|
+
def initialize: (
|
35
|
+
id: String,
|
36
|
+
created_at: String,
|
37
|
+
description: String,
|
38
|
+
directory: String,
|
39
|
+
name: String,
|
40
|
+
skill_id: String,
|
41
|
+
type: String,
|
42
|
+
version: String
|
43
|
+
) -> void
|
44
|
+
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
created_at: String,
|
48
|
+
description: String,
|
49
|
+
directory: String,
|
50
|
+
name: String,
|
51
|
+
skill_id: String,
|
52
|
+
type: String,
|
53
|
+
version: String
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -7,7 +7,6 @@ module Anthropic
|
|
7
7
|
| :tool_use
|
8
8
|
| :pause_turn
|
9
9
|
| :refusal
|
10
|
-
| :model_context_window_exceeded
|
11
10
|
|
12
11
|
module StopReason
|
13
12
|
extend Anthropic::Internal::Type::Enum
|
@@ -18,7 +17,6 @@ module Anthropic
|
|
18
17
|
TOOL_USE: :tool_use
|
19
18
|
PAUSE_TURN: :pause_turn
|
20
19
|
REFUSAL: :refusal
|
21
|
-
MODEL_CONTEXT_WINDOW_EXCEEDED: :model_context_window_exceeded
|
22
20
|
|
23
21
|
def self?.values: -> ::Array[Anthropic::Models::stop_reason]
|
24
22
|
end
|
@@ -8,7 +8,7 @@ module Anthropic
|
|
8
8
|
max_tokens: Integer,
|
9
9
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
10
10
|
model: Anthropic::Models::model,
|
11
|
-
?container:
|
11
|
+
?container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
12
12
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
13
13
|
?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
14
14
|
?metadata: Anthropic::Beta::BetaMetadata,
|
@@ -29,7 +29,7 @@ module Anthropic
|
|
29
29
|
max_tokens: Integer,
|
30
30
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
31
31
|
model: Anthropic::Models::model,
|
32
|
-
?container:
|
32
|
+
?container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
33
33
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
34
34
|
?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
35
35
|
?metadata: Anthropic::Beta::BetaMetadata,
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Resources
|
3
|
+
class Beta
|
4
|
+
class Skills
|
5
|
+
class Versions
|
6
|
+
def create: (
|
7
|
+
String skill_id,
|
8
|
+
?files: ::Array[Anthropic::Internal::file_input]?,
|
9
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
10
|
+
?request_options: Anthropic::request_opts
|
11
|
+
) -> Anthropic::Models::Beta::Skills::VersionCreateResponse
|
12
|
+
|
13
|
+
def retrieve: (
|
14
|
+
String version,
|
15
|
+
skill_id: String,
|
16
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
17
|
+
?request_options: Anthropic::request_opts
|
18
|
+
) -> Anthropic::Models::Beta::Skills::VersionRetrieveResponse
|
19
|
+
|
20
|
+
def list: (
|
21
|
+
String skill_id,
|
22
|
+
?limit: Integer?,
|
23
|
+
?page: String?,
|
24
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
25
|
+
?request_options: Anthropic::request_opts
|
26
|
+
) -> Anthropic::Internal::PageCursor[Anthropic::Models::Beta::Skills::VersionListResponse]
|
27
|
+
|
28
|
+
def delete: (
|
29
|
+
String version,
|
30
|
+
skill_id: String,
|
31
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
32
|
+
?request_options: Anthropic::request_opts
|
33
|
+
) -> Anthropic::Models::Beta::Skills::VersionDeleteResponse
|
34
|
+
|
35
|
+
def initialize: (client: Anthropic::Client) -> void
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Anthropic
|
2
|
+
module Resources
|
3
|
+
class Beta
|
4
|
+
class Skills
|
5
|
+
attr_reader versions: Anthropic::Resources::Beta::Skills::Versions
|
6
|
+
|
7
|
+
def create: (
|
8
|
+
?display_title: String?,
|
9
|
+
?files: ::Array[Anthropic::Internal::file_input]?,
|
10
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
11
|
+
?request_options: Anthropic::request_opts
|
12
|
+
) -> Anthropic::Models::Beta::SkillCreateResponse
|
13
|
+
|
14
|
+
def retrieve: (
|
15
|
+
String skill_id,
|
16
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
17
|
+
?request_options: Anthropic::request_opts
|
18
|
+
) -> Anthropic::Models::Beta::SkillRetrieveResponse
|
19
|
+
|
20
|
+
def list: (
|
21
|
+
?limit: Integer,
|
22
|
+
?page: String?,
|
23
|
+
?source: String?,
|
24
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
25
|
+
?request_options: Anthropic::request_opts
|
26
|
+
) -> Anthropic::Internal::PageCursor[Anthropic::Models::Beta::SkillListResponse]
|
27
|
+
|
28
|
+
def delete: (
|
29
|
+
String skill_id,
|
30
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
31
|
+
?request_options: Anthropic::request_opts
|
32
|
+
) -> Anthropic::Models::Beta::SkillDeleteResponse
|
33
|
+
|
34
|
+
def initialize: (client: Anthropic::Client) -> void
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|