cadenya 0.28.0 → 0.30.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 +16 -0
- data/README.md +1 -1
- data/lib/cadenya/models/context_lengths.rb +87 -0
- data/lib/cadenya/models/objective_diagnostics.rb +50 -0
- data/lib/cadenya/models/objective_retrieve_diagnostics_params.rb +26 -0
- data/lib/cadenya/models/objective_retrieve_diagnostics_response.rb +25 -0
- data/lib/cadenya/models/objectives/objective_tool_call.rb +1 -0
- data/lib/cadenya/models/objectives/objective_tool_call_with_result.rb +1 -0
- data/lib/cadenya/models/objectives/set_tool_call_content_request_audio_block.rb +26 -0
- data/lib/cadenya/models/objectives/set_tool_call_content_request_content_block.rb +32 -0
- data/lib/cadenya/models/objectives/set_tool_call_content_request_image_block.rb +26 -0
- data/lib/cadenya/models/objectives/set_tool_call_content_request_text_block.rb +17 -0
- data/lib/cadenya/models/objectives/tool_call_list_params.rb +31 -1
- data/lib/cadenya/models/objectives/tool_call_set_content_params.rb +51 -0
- data/lib/cadenya/models/tool_called.rb +33 -1
- data/lib/cadenya/models/tool_set_adapter.rb +18 -1
- data/lib/cadenya/models/tool_set_adapter_bare.rb +26 -0
- data/lib/cadenya/models/tool_sets/config_bare.rb +14 -0
- data/lib/cadenya/models/tool_sets/tool_spec_config.rb +16 -1
- data/lib/cadenya/models.rb +8 -0
- data/lib/cadenya/resources/objectives/tool_calls.rb +53 -2
- data/lib/cadenya/resources/objectives.rb +30 -0
- data/lib/cadenya/version.rb +1 -1
- data/lib/cadenya.rb +11 -0
- data/rbi/cadenya/models/context_lengths.rbi +103 -0
- data/rbi/cadenya/models/objective_diagnostics.rbi +76 -0
- data/rbi/cadenya/models/objective_retrieve_diagnostics_params.rbi +46 -0
- data/rbi/cadenya/models/objective_retrieve_diagnostics_response.rbi +43 -0
- data/rbi/cadenya/models/objectives/objective_tool_call.rbi +5 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_with_result.rbi +5 -0
- data/rbi/cadenya/models/objectives/set_tool_call_content_request_audio_block.rbi +40 -0
- data/rbi/cadenya/models/objectives/set_tool_call_content_request_content_block.rbi +89 -0
- data/rbi/cadenya/models/objectives/set_tool_call_content_request_image_block.rbi +40 -0
- data/rbi/cadenya/models/objectives/set_tool_call_content_request_text_block.rbi +28 -0
- data/rbi/cadenya/models/objectives/tool_call_list_params.rbi +85 -0
- data/rbi/cadenya/models/objectives/tool_call_set_content_params.rbi +80 -0
- data/rbi/cadenya/models/tool_called.rbi +55 -2
- data/rbi/cadenya/models/tool_set_adapter.rbi +24 -1
- data/rbi/cadenya/models/tool_set_adapter_bare.rbi +37 -0
- data/rbi/cadenya/models/tool_sets/config_bare.rbi +25 -0
- data/rbi/cadenya/models/tool_sets/tool_spec_config.rbi +20 -1
- data/rbi/cadenya/models.rbi +9 -0
- data/rbi/cadenya/resources/objectives/tool_calls.rbi +37 -0
- data/rbi/cadenya/resources/objectives.rbi +19 -0
- data/sig/cadenya/models/context_lengths.rbs +55 -0
- data/sig/cadenya/models/objective_diagnostics.rbs +30 -0
- data/sig/cadenya/models/objective_retrieve_diagnostics_params.rbs +28 -0
- data/sig/cadenya/models/objective_retrieve_diagnostics_response.rbs +14 -0
- data/sig/cadenya/models/objectives/objective_tool_call.rbs +2 -0
- data/sig/cadenya/models/objectives/objective_tool_call_with_result.rbs +2 -0
- data/sig/cadenya/models/objectives/set_tool_call_content_request_audio_block.rbs +18 -0
- data/sig/cadenya/models/objectives/set_tool_call_content_request_content_block.rbs +44 -0
- data/sig/cadenya/models/objectives/set_tool_call_content_request_image_block.rbs +18 -0
- data/sig/cadenya/models/objectives/set_tool_call_content_request_text_block.rbs +15 -0
- data/sig/cadenya/models/objectives/tool_call_list_params.rbs +30 -0
- data/sig/cadenya/models/objectives/tool_call_set_content_params.rbs +43 -0
- data/sig/cadenya/models/tool_called.rbs +33 -3
- data/sig/cadenya/models/tool_set_adapter.rbs +7 -0
- data/sig/cadenya/models/tool_set_adapter_bare.rbs +15 -0
- data/sig/cadenya/models/tool_sets/config_bare.rbs +13 -0
- data/sig/cadenya/models/tool_sets/tool_spec_config.rbs +9 -0
- data/sig/cadenya/models.rbs +8 -0
- data/sig/cadenya/resources/objectives/tool_calls.rbs +9 -0
- data/sig/cadenya/resources/objectives.rbs +6 -0
- metadata +35 -2
|
@@ -49,6 +49,7 @@ module Cadenya
|
|
|
49
49
|
| :TOOL_CALL_EXECUTION_STATUS_RUNNING
|
|
50
50
|
| :TOOL_CALL_EXECUTION_STATUS_COMPLETED
|
|
51
51
|
| :TOOL_CALL_EXECUTION_STATUS_ERRORED
|
|
52
|
+
| :TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT
|
|
52
53
|
|
|
53
54
|
module ExecutionStatus
|
|
54
55
|
extend Cadenya::Internal::Type::Enum
|
|
@@ -58,6 +59,7 @@ module Cadenya
|
|
|
58
59
|
TOOL_CALL_EXECUTION_STATUS_RUNNING: :TOOL_CALL_EXECUTION_STATUS_RUNNING
|
|
59
60
|
TOOL_CALL_EXECUTION_STATUS_COMPLETED: :TOOL_CALL_EXECUTION_STATUS_COMPLETED
|
|
60
61
|
TOOL_CALL_EXECUTION_STATUS_ERRORED: :TOOL_CALL_EXECUTION_STATUS_ERRORED
|
|
62
|
+
TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT: :TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT
|
|
61
63
|
|
|
62
64
|
def self?.values: -> ::Array[Cadenya::Models::Objectives::ObjectiveToolCall::execution_status]
|
|
63
65
|
end
|
|
@@ -63,6 +63,7 @@ module Cadenya
|
|
|
63
63
|
| :TOOL_CALL_EXECUTION_STATUS_RUNNING
|
|
64
64
|
| :TOOL_CALL_EXECUTION_STATUS_COMPLETED
|
|
65
65
|
| :TOOL_CALL_EXECUTION_STATUS_ERRORED
|
|
66
|
+
| :TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT
|
|
66
67
|
|
|
67
68
|
module ExecutionStatus
|
|
68
69
|
extend Cadenya::Internal::Type::Enum
|
|
@@ -72,6 +73,7 @@ module Cadenya
|
|
|
72
73
|
TOOL_CALL_EXECUTION_STATUS_RUNNING: :TOOL_CALL_EXECUTION_STATUS_RUNNING
|
|
73
74
|
TOOL_CALL_EXECUTION_STATUS_COMPLETED: :TOOL_CALL_EXECUTION_STATUS_COMPLETED
|
|
74
75
|
TOOL_CALL_EXECUTION_STATUS_ERRORED: :TOOL_CALL_EXECUTION_STATUS_ERRORED
|
|
76
|
+
TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT: :TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT
|
|
75
77
|
|
|
76
78
|
def self?.values: -> ::Array[Cadenya::Models::Objectives::ObjectiveToolCallWithResult::execution_status]
|
|
77
79
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
module Objectives
|
|
4
|
+
type set_tool_call_content_request_audio_block =
|
|
5
|
+
{ data: String, mime_type: String }
|
|
6
|
+
|
|
7
|
+
class SetToolCallContentRequestAudioBlock < Cadenya::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: String
|
|
9
|
+
|
|
10
|
+
attr_accessor mime_type: String
|
|
11
|
+
|
|
12
|
+
def initialize: (data: String, mime_type: String) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { data: String, mime_type: String }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
module Objectives
|
|
4
|
+
type set_tool_call_content_request_content_block =
|
|
5
|
+
{
|
|
6
|
+
audio: Cadenya::Objectives::SetToolCallContentRequestAudioBlock,
|
|
7
|
+
image: Cadenya::Objectives::SetToolCallContentRequestImageBlock,
|
|
8
|
+
text: Cadenya::Objectives::SetToolCallContentRequestTextBlock
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SetToolCallContentRequestContentBlock < Cadenya::Internal::Type::BaseModel
|
|
12
|
+
attr_reader audio: Cadenya::Objectives::SetToolCallContentRequestAudioBlock?
|
|
13
|
+
|
|
14
|
+
def audio=: (
|
|
15
|
+
Cadenya::Objectives::SetToolCallContentRequestAudioBlock
|
|
16
|
+
) -> Cadenya::Objectives::SetToolCallContentRequestAudioBlock
|
|
17
|
+
|
|
18
|
+
attr_reader image: Cadenya::Objectives::SetToolCallContentRequestImageBlock?
|
|
19
|
+
|
|
20
|
+
def image=: (
|
|
21
|
+
Cadenya::Objectives::SetToolCallContentRequestImageBlock
|
|
22
|
+
) -> Cadenya::Objectives::SetToolCallContentRequestImageBlock
|
|
23
|
+
|
|
24
|
+
attr_reader text: Cadenya::Objectives::SetToolCallContentRequestTextBlock?
|
|
25
|
+
|
|
26
|
+
def text=: (
|
|
27
|
+
Cadenya::Objectives::SetToolCallContentRequestTextBlock
|
|
28
|
+
) -> Cadenya::Objectives::SetToolCallContentRequestTextBlock
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
?audio: Cadenya::Objectives::SetToolCallContentRequestAudioBlock,
|
|
32
|
+
?image: Cadenya::Objectives::SetToolCallContentRequestImageBlock,
|
|
33
|
+
?text: Cadenya::Objectives::SetToolCallContentRequestTextBlock
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
audio: Cadenya::Objectives::SetToolCallContentRequestAudioBlock,
|
|
38
|
+
image: Cadenya::Objectives::SetToolCallContentRequestImageBlock,
|
|
39
|
+
text: Cadenya::Objectives::SetToolCallContentRequestTextBlock
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
module Objectives
|
|
4
|
+
type set_tool_call_content_request_image_block =
|
|
5
|
+
{ data: String, mime_type: String }
|
|
6
|
+
|
|
7
|
+
class SetToolCallContentRequestImageBlock < Cadenya::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: String
|
|
9
|
+
|
|
10
|
+
attr_accessor mime_type: String
|
|
11
|
+
|
|
12
|
+
def initialize: (data: String, mime_type: String) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { data: String, mime_type: String }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
module Objectives
|
|
4
|
+
type set_tool_call_content_request_text_block = { text: String }
|
|
5
|
+
|
|
6
|
+
class SetToolCallContentRequestTextBlock < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor text: String
|
|
8
|
+
|
|
9
|
+
def initialize: (text: String) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { text: String }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -6,6 +6,7 @@ module Cadenya
|
|
|
6
6
|
workspace_id: String,
|
|
7
7
|
objective_id: String,
|
|
8
8
|
cursor: String,
|
|
9
|
+
execution_status: Cadenya::Models::Objectives::ToolCallListParams::execution_status,
|
|
9
10
|
include_info: bool,
|
|
10
11
|
limit: Integer,
|
|
11
12
|
status: Cadenya::Models::Objectives::ToolCallListParams::status
|
|
@@ -24,6 +25,12 @@ module Cadenya
|
|
|
24
25
|
|
|
25
26
|
def cursor=: (String) -> String
|
|
26
27
|
|
|
28
|
+
attr_reader execution_status: Cadenya::Models::Objectives::ToolCallListParams::execution_status?
|
|
29
|
+
|
|
30
|
+
def execution_status=: (
|
|
31
|
+
Cadenya::Models::Objectives::ToolCallListParams::execution_status
|
|
32
|
+
) -> Cadenya::Models::Objectives::ToolCallListParams::execution_status
|
|
33
|
+
|
|
27
34
|
attr_reader include_info: bool?
|
|
28
35
|
|
|
29
36
|
def include_info=: (bool) -> bool
|
|
@@ -42,6 +49,7 @@ module Cadenya
|
|
|
42
49
|
workspace_id: String,
|
|
43
50
|
objective_id: String,
|
|
44
51
|
?cursor: String,
|
|
52
|
+
?execution_status: Cadenya::Models::Objectives::ToolCallListParams::execution_status,
|
|
45
53
|
?include_info: bool,
|
|
46
54
|
?limit: Integer,
|
|
47
55
|
?status: Cadenya::Models::Objectives::ToolCallListParams::status,
|
|
@@ -52,12 +60,34 @@ module Cadenya
|
|
|
52
60
|
workspace_id: String,
|
|
53
61
|
objective_id: String,
|
|
54
62
|
cursor: String,
|
|
63
|
+
execution_status: Cadenya::Models::Objectives::ToolCallListParams::execution_status,
|
|
55
64
|
include_info: bool,
|
|
56
65
|
limit: Integer,
|
|
57
66
|
status: Cadenya::Models::Objectives::ToolCallListParams::status,
|
|
58
67
|
request_options: Cadenya::RequestOptions
|
|
59
68
|
}
|
|
60
69
|
|
|
70
|
+
type execution_status =
|
|
71
|
+
:TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED
|
|
72
|
+
| :TOOL_CALL_EXECUTION_STATUS_PENDING
|
|
73
|
+
| :TOOL_CALL_EXECUTION_STATUS_RUNNING
|
|
74
|
+
| :TOOL_CALL_EXECUTION_STATUS_COMPLETED
|
|
75
|
+
| :TOOL_CALL_EXECUTION_STATUS_ERRORED
|
|
76
|
+
| :TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT
|
|
77
|
+
|
|
78
|
+
module ExecutionStatus
|
|
79
|
+
extend Cadenya::Internal::Type::Enum
|
|
80
|
+
|
|
81
|
+
TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED: :TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED
|
|
82
|
+
TOOL_CALL_EXECUTION_STATUS_PENDING: :TOOL_CALL_EXECUTION_STATUS_PENDING
|
|
83
|
+
TOOL_CALL_EXECUTION_STATUS_RUNNING: :TOOL_CALL_EXECUTION_STATUS_RUNNING
|
|
84
|
+
TOOL_CALL_EXECUTION_STATUS_COMPLETED: :TOOL_CALL_EXECUTION_STATUS_COMPLETED
|
|
85
|
+
TOOL_CALL_EXECUTION_STATUS_ERRORED: :TOOL_CALL_EXECUTION_STATUS_ERRORED
|
|
86
|
+
TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT: :TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT
|
|
87
|
+
|
|
88
|
+
def self?.values: -> ::Array[Cadenya::Models::Objectives::ToolCallListParams::execution_status]
|
|
89
|
+
end
|
|
90
|
+
|
|
61
91
|
type status =
|
|
62
92
|
:TOOL_CALL_STATUS_UNSPECIFIED
|
|
63
93
|
| :TOOL_CALL_STATUS_AUTO_APPROVED
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
module Objectives
|
|
4
|
+
type tool_call_set_content_params =
|
|
5
|
+
{
|
|
6
|
+
workspace_id: String,
|
|
7
|
+
objective_id: String,
|
|
8
|
+
tool_call_id: String,
|
|
9
|
+
content: ::Array[Cadenya::Objectives::SetToolCallContentRequestContentBlock]
|
|
10
|
+
}
|
|
11
|
+
& Cadenya::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class ToolCallSetContentParams < Cadenya::Internal::Type::BaseModel
|
|
14
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor workspace_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor objective_id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor tool_call_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor content: ::Array[Cadenya::Objectives::SetToolCallContentRequestContentBlock]
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
workspace_id: String,
|
|
27
|
+
objective_id: String,
|
|
28
|
+
tool_call_id: String,
|
|
29
|
+
content: ::Array[Cadenya::Objectives::SetToolCallContentRequestContentBlock],
|
|
30
|
+
?request_options: Cadenya::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
workspace_id: String,
|
|
35
|
+
objective_id: String,
|
|
36
|
+
tool_call_id: String,
|
|
37
|
+
content: ::Array[Cadenya::Objectives::SetToolCallContentRequestContentBlock],
|
|
38
|
+
request_options: Cadenya::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -1,15 +1,45 @@
|
|
|
1
1
|
module Cadenya
|
|
2
2
|
module Models
|
|
3
|
-
type tool_called =
|
|
3
|
+
type tool_called =
|
|
4
|
+
{
|
|
5
|
+
arguments: ::Hash[Symbol, top],
|
|
6
|
+
config: Cadenya::ToolSets::ToolSpecConfig,
|
|
7
|
+
tool: Cadenya::CallableTool,
|
|
8
|
+
tool_call_id: String
|
|
9
|
+
}
|
|
4
10
|
|
|
5
11
|
class ToolCalled < Cadenya::Internal::Type::BaseModel
|
|
12
|
+
attr_reader arguments: ::Hash[Symbol, top]?
|
|
13
|
+
|
|
14
|
+
def arguments=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
15
|
+
|
|
16
|
+
attr_reader config: Cadenya::ToolSets::ToolSpecConfig?
|
|
17
|
+
|
|
18
|
+
def config=: (
|
|
19
|
+
Cadenya::ToolSets::ToolSpecConfig
|
|
20
|
+
) -> Cadenya::ToolSets::ToolSpecConfig
|
|
21
|
+
|
|
22
|
+
attr_reader tool: Cadenya::CallableTool?
|
|
23
|
+
|
|
24
|
+
def tool=: (Cadenya::CallableTool) -> Cadenya::CallableTool
|
|
25
|
+
|
|
6
26
|
attr_reader tool_call_id: String?
|
|
7
27
|
|
|
8
28
|
def tool_call_id=: (String) -> String
|
|
9
29
|
|
|
10
|
-
def initialize: (
|
|
30
|
+
def initialize: (
|
|
31
|
+
?arguments: ::Hash[Symbol, top],
|
|
32
|
+
?config: Cadenya::ToolSets::ToolSpecConfig,
|
|
33
|
+
?tool: Cadenya::CallableTool,
|
|
34
|
+
?tool_call_id: String
|
|
35
|
+
) -> void
|
|
11
36
|
|
|
12
|
-
def to_hash: -> {
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
arguments: ::Hash[Symbol, top],
|
|
39
|
+
config: Cadenya::ToolSets::ToolSpecConfig,
|
|
40
|
+
tool: Cadenya::CallableTool,
|
|
41
|
+
tool_call_id: String
|
|
42
|
+
}
|
|
13
43
|
end
|
|
14
44
|
end
|
|
15
45
|
end
|
|
@@ -2,12 +2,17 @@ module Cadenya
|
|
|
2
2
|
module Models
|
|
3
3
|
type tool_set_adapter =
|
|
4
4
|
{
|
|
5
|
+
bare: Cadenya::ToolSetAdapterBare,
|
|
5
6
|
http: Cadenya::ToolSetAdapterHTTP,
|
|
6
7
|
mcp: Cadenya::ToolSetAdapterMcp,
|
|
7
8
|
openapi: Cadenya::ToolSetAdapterOpenAPI
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
class ToolSetAdapter < Cadenya::Internal::Type::BaseModel
|
|
12
|
+
attr_reader bare: Cadenya::ToolSetAdapterBare?
|
|
13
|
+
|
|
14
|
+
def bare=: (Cadenya::ToolSetAdapterBare) -> Cadenya::ToolSetAdapterBare
|
|
15
|
+
|
|
11
16
|
attr_reader http: Cadenya::ToolSetAdapterHTTP?
|
|
12
17
|
|
|
13
18
|
def http=: (Cadenya::ToolSetAdapterHTTP) -> Cadenya::ToolSetAdapterHTTP
|
|
@@ -23,12 +28,14 @@ module Cadenya
|
|
|
23
28
|
) -> Cadenya::ToolSetAdapterOpenAPI
|
|
24
29
|
|
|
25
30
|
def initialize: (
|
|
31
|
+
?bare: Cadenya::ToolSetAdapterBare,
|
|
26
32
|
?http: Cadenya::ToolSetAdapterHTTP,
|
|
27
33
|
?mcp: Cadenya::ToolSetAdapterMcp,
|
|
28
34
|
?openapi: Cadenya::ToolSetAdapterOpenAPI
|
|
29
35
|
) -> void
|
|
30
36
|
|
|
31
37
|
def to_hash: -> {
|
|
38
|
+
bare: Cadenya::ToolSetAdapterBare,
|
|
32
39
|
http: Cadenya::ToolSetAdapterHTTP,
|
|
33
40
|
mcp: Cadenya::ToolSetAdapterMcp,
|
|
34
41
|
openapi: Cadenya::ToolSetAdapterOpenAPI
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Cadenya
|
|
2
|
+
module Models
|
|
3
|
+
type tool_set_adapter_bare = { content_timeout: Integer }
|
|
4
|
+
|
|
5
|
+
class ToolSetAdapterBare < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
attr_reader content_timeout: Integer?
|
|
7
|
+
|
|
8
|
+
def content_timeout=: (Integer) -> Integer
|
|
9
|
+
|
|
10
|
+
def initialize: (?content_timeout: Integer) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { content_timeout: Integer }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -3,12 +3,19 @@ module Cadenya
|
|
|
3
3
|
module ToolSets
|
|
4
4
|
type tool_spec_config =
|
|
5
5
|
{
|
|
6
|
+
bare: Cadenya::ToolSets::ConfigBare,
|
|
6
7
|
http: Cadenya::ToolSets::ConfigHTTP,
|
|
7
8
|
mcp: Cadenya::ToolSets::ConfigMcp,
|
|
8
9
|
openapi: Cadenya::ToolSets::ConfigOpenAPI
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class ToolSpecConfig < Cadenya::Internal::Type::BaseModel
|
|
13
|
+
attr_reader bare: Cadenya::ToolSets::ConfigBare?
|
|
14
|
+
|
|
15
|
+
def bare=: (
|
|
16
|
+
Cadenya::ToolSets::ConfigBare
|
|
17
|
+
) -> Cadenya::ToolSets::ConfigBare
|
|
18
|
+
|
|
12
19
|
attr_reader http: Cadenya::ToolSets::ConfigHTTP?
|
|
13
20
|
|
|
14
21
|
def http=: (
|
|
@@ -26,12 +33,14 @@ module Cadenya
|
|
|
26
33
|
) -> Cadenya::ToolSets::ConfigOpenAPI
|
|
27
34
|
|
|
28
35
|
def initialize: (
|
|
36
|
+
?bare: Cadenya::ToolSets::ConfigBare,
|
|
29
37
|
?http: Cadenya::ToolSets::ConfigHTTP,
|
|
30
38
|
?mcp: Cadenya::ToolSets::ConfigMcp,
|
|
31
39
|
?openapi: Cadenya::ToolSets::ConfigOpenAPI
|
|
32
40
|
) -> void
|
|
33
41
|
|
|
34
42
|
def to_hash: -> {
|
|
43
|
+
bare: Cadenya::ToolSets::ConfigBare,
|
|
35
44
|
http: Cadenya::ToolSets::ConfigHTTP,
|
|
36
45
|
mcp: Cadenya::ToolSets::ConfigMcp,
|
|
37
46
|
openapi: Cadenya::ToolSets::ConfigOpenAPI
|
data/sig/cadenya/models.rbs
CHANGED
|
@@ -85,6 +85,8 @@ module Cadenya
|
|
|
85
85
|
|
|
86
86
|
class CallableTool = Cadenya::Models::CallableTool
|
|
87
87
|
|
|
88
|
+
class ContextLengths = Cadenya::Models::ContextLengths
|
|
89
|
+
|
|
88
90
|
class ContextWindowCompacted = Cadenya::Models::ContextWindowCompacted
|
|
89
91
|
|
|
90
92
|
class CreateOperationMetadata = Cadenya::Models::CreateOperationMetadata
|
|
@@ -143,6 +145,8 @@ module Cadenya
|
|
|
143
145
|
|
|
144
146
|
class ObjectiveCreateParams = Cadenya::Models::ObjectiveCreateParams
|
|
145
147
|
|
|
148
|
+
class ObjectiveDiagnostics = Cadenya::Models::ObjectiveDiagnostics
|
|
149
|
+
|
|
146
150
|
class ObjectiveError = Cadenya::Models::ObjectiveError
|
|
147
151
|
|
|
148
152
|
class ObjectiveEvent = Cadenya::Models::ObjectiveEvent
|
|
@@ -161,6 +165,8 @@ module Cadenya
|
|
|
161
165
|
|
|
162
166
|
class ObjectiveListParams = Cadenya::Models::ObjectiveListParams
|
|
163
167
|
|
|
168
|
+
class ObjectiveRetrieveDiagnosticsParams = Cadenya::Models::ObjectiveRetrieveDiagnosticsParams
|
|
169
|
+
|
|
164
170
|
class ObjectiveRetrieveParams = Cadenya::Models::ObjectiveRetrieveParams
|
|
165
171
|
|
|
166
172
|
module Objectives = Cadenya::Models::Objectives
|
|
@@ -217,6 +223,8 @@ module Cadenya
|
|
|
217
223
|
|
|
218
224
|
class ToolSetAdapter = Cadenya::Models::ToolSetAdapter
|
|
219
225
|
|
|
226
|
+
class ToolSetAdapterBare = Cadenya::Models::ToolSetAdapterBare
|
|
227
|
+
|
|
220
228
|
class ToolSetAdapterHTTP = Cadenya::Models::ToolSetAdapterHTTP
|
|
221
229
|
|
|
222
230
|
class ToolSetAdapterMcp = Cadenya::Models::ToolSetAdapterMcp
|
|
@@ -13,6 +13,7 @@ module Cadenya
|
|
|
13
13
|
String objective_id,
|
|
14
14
|
workspace_id: String,
|
|
15
15
|
?cursor: String,
|
|
16
|
+
?execution_status: Cadenya::Models::Objectives::ToolCallListParams::execution_status,
|
|
16
17
|
?include_info: bool,
|
|
17
18
|
?limit: Integer,
|
|
18
19
|
?status: Cadenya::Models::Objectives::ToolCallListParams::status,
|
|
@@ -34,6 +35,14 @@ module Cadenya
|
|
|
34
35
|
?request_options: Cadenya::request_opts
|
|
35
36
|
) -> Cadenya::Objectives::ObjectiveToolCall
|
|
36
37
|
|
|
38
|
+
def set_content: (
|
|
39
|
+
String tool_call_id,
|
|
40
|
+
workspace_id: String,
|
|
41
|
+
objective_id: String,
|
|
42
|
+
content: ::Array[Cadenya::Objectives::SetToolCallContentRequestContentBlock],
|
|
43
|
+
?request_options: Cadenya::request_opts
|
|
44
|
+
) -> Cadenya::Objectives::ObjectiveToolCall
|
|
45
|
+
|
|
37
46
|
def initialize: (client: Cadenya::Client) -> void
|
|
38
47
|
end
|
|
39
48
|
end
|
|
@@ -86,6 +86,12 @@ module Cadenya
|
|
|
86
86
|
?request_options: Cadenya::request_opts
|
|
87
87
|
) -> Cadenya::Internal::CursorPagination[Cadenya::ObjectiveEvent]
|
|
88
88
|
|
|
89
|
+
def retrieve_diagnostics: (
|
|
90
|
+
String objective_id,
|
|
91
|
+
workspace_id: String,
|
|
92
|
+
?request_options: Cadenya::request_opts
|
|
93
|
+
) -> Cadenya::Models::ObjectiveRetrieveDiagnosticsResponse
|
|
94
|
+
|
|
89
95
|
def stream_events_streaming: (
|
|
90
96
|
String objective_id,
|
|
91
97
|
workspace_id: String,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cadenya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.30.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cadenya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -170,6 +170,7 @@ files:
|
|
|
170
170
|
- lib/cadenya/models/attribute_filter.rb
|
|
171
171
|
- lib/cadenya/models/bare_metadata.rb
|
|
172
172
|
- lib/cadenya/models/callable_tool.rb
|
|
173
|
+
- lib/cadenya/models/context_lengths.rb
|
|
173
174
|
- lib/cadenya/models/context_window_compacted.rb
|
|
174
175
|
- lib/cadenya/models/create_operation_metadata.rb
|
|
175
176
|
- lib/cadenya/models/create_resource_metadata.rb
|
|
@@ -211,6 +212,7 @@ files:
|
|
|
211
212
|
- lib/cadenya/models/objective_context_window_data.rb
|
|
212
213
|
- lib/cadenya/models/objective_continue_params.rb
|
|
213
214
|
- lib/cadenya/models/objective_create_params.rb
|
|
215
|
+
- lib/cadenya/models/objective_diagnostics.rb
|
|
214
216
|
- lib/cadenya/models/objective_error.rb
|
|
215
217
|
- lib/cadenya/models/objective_event.rb
|
|
216
218
|
- lib/cadenya/models/objective_event_data.rb
|
|
@@ -220,6 +222,8 @@ files:
|
|
|
220
222
|
- lib/cadenya/models/objective_list_context_windows_params.rb
|
|
221
223
|
- lib/cadenya/models/objective_list_events_params.rb
|
|
222
224
|
- lib/cadenya/models/objective_list_params.rb
|
|
225
|
+
- lib/cadenya/models/objective_retrieve_diagnostics_params.rb
|
|
226
|
+
- lib/cadenya/models/objective_retrieve_diagnostics_response.rb
|
|
223
227
|
- lib/cadenya/models/objective_retrieve_params.rb
|
|
224
228
|
- lib/cadenya/models/objective_secret.rb
|
|
225
229
|
- lib/cadenya/models/objective_stream_events_params.rb
|
|
@@ -241,12 +245,17 @@ files:
|
|
|
241
245
|
- lib/cadenya/models/objectives/objective_tool_call_result_text_block.rb
|
|
242
246
|
- lib/cadenya/models/objectives/objective_tool_call_with_result.rb
|
|
243
247
|
- lib/cadenya/models/objectives/resolved_secret.rb
|
|
248
|
+
- lib/cadenya/models/objectives/set_tool_call_content_request_audio_block.rb
|
|
249
|
+
- lib/cadenya/models/objectives/set_tool_call_content_request_content_block.rb
|
|
250
|
+
- lib/cadenya/models/objectives/set_tool_call_content_request_image_block.rb
|
|
251
|
+
- lib/cadenya/models/objectives/set_tool_call_content_request_text_block.rb
|
|
244
252
|
- lib/cadenya/models/objectives/task_list_params.rb
|
|
245
253
|
- lib/cadenya/models/objectives/task_retrieve_params.rb
|
|
246
254
|
- lib/cadenya/models/objectives/tool_call_approve_params.rb
|
|
247
255
|
- lib/cadenya/models/objectives/tool_call_deny_params.rb
|
|
248
256
|
- lib/cadenya/models/objectives/tool_call_list_params.rb
|
|
249
257
|
- lib/cadenya/models/objectives/tool_call_retrieve_params.rb
|
|
258
|
+
- lib/cadenya/models/objectives/tool_call_set_content_params.rb
|
|
250
259
|
- lib/cadenya/models/objectives/tool_list_params.rb
|
|
251
260
|
- lib/cadenya/models/operation_metadata.rb
|
|
252
261
|
- lib/cadenya/models/page.rb
|
|
@@ -273,6 +282,7 @@ files:
|
|
|
273
282
|
- lib/cadenya/models/tool_result.rb
|
|
274
283
|
- lib/cadenya/models/tool_set.rb
|
|
275
284
|
- lib/cadenya/models/tool_set_adapter.rb
|
|
285
|
+
- lib/cadenya/models/tool_set_adapter_bare.rb
|
|
276
286
|
- lib/cadenya/models/tool_set_adapter_http.rb
|
|
277
287
|
- lib/cadenya/models/tool_set_adapter_mcp.rb
|
|
278
288
|
- lib/cadenya/models/tool_set_adapter_openapi.rb
|
|
@@ -290,6 +300,7 @@ files:
|
|
|
290
300
|
- lib/cadenya/models/tool_set_spec.rb
|
|
291
301
|
- lib/cadenya/models/tool_set_unarchive_params.rb
|
|
292
302
|
- lib/cadenya/models/tool_set_update_params.rb
|
|
303
|
+
- lib/cadenya/models/tool_sets/config_bare.rb
|
|
293
304
|
- lib/cadenya/models/tool_sets/config_http.rb
|
|
294
305
|
- lib/cadenya/models/tool_sets/config_mcp.rb
|
|
295
306
|
- lib/cadenya/models/tool_sets/config_openapi.rb
|
|
@@ -484,6 +495,7 @@ files:
|
|
|
484
495
|
- rbi/cadenya/models/attribute_filter.rbi
|
|
485
496
|
- rbi/cadenya/models/bare_metadata.rbi
|
|
486
497
|
- rbi/cadenya/models/callable_tool.rbi
|
|
498
|
+
- rbi/cadenya/models/context_lengths.rbi
|
|
487
499
|
- rbi/cadenya/models/context_window_compacted.rbi
|
|
488
500
|
- rbi/cadenya/models/create_operation_metadata.rbi
|
|
489
501
|
- rbi/cadenya/models/create_resource_metadata.rbi
|
|
@@ -525,6 +537,7 @@ files:
|
|
|
525
537
|
- rbi/cadenya/models/objective_context_window_data.rbi
|
|
526
538
|
- rbi/cadenya/models/objective_continue_params.rbi
|
|
527
539
|
- rbi/cadenya/models/objective_create_params.rbi
|
|
540
|
+
- rbi/cadenya/models/objective_diagnostics.rbi
|
|
528
541
|
- rbi/cadenya/models/objective_error.rbi
|
|
529
542
|
- rbi/cadenya/models/objective_event.rbi
|
|
530
543
|
- rbi/cadenya/models/objective_event_data.rbi
|
|
@@ -534,6 +547,8 @@ files:
|
|
|
534
547
|
- rbi/cadenya/models/objective_list_context_windows_params.rbi
|
|
535
548
|
- rbi/cadenya/models/objective_list_events_params.rbi
|
|
536
549
|
- rbi/cadenya/models/objective_list_params.rbi
|
|
550
|
+
- rbi/cadenya/models/objective_retrieve_diagnostics_params.rbi
|
|
551
|
+
- rbi/cadenya/models/objective_retrieve_diagnostics_response.rbi
|
|
537
552
|
- rbi/cadenya/models/objective_retrieve_params.rbi
|
|
538
553
|
- rbi/cadenya/models/objective_secret.rbi
|
|
539
554
|
- rbi/cadenya/models/objective_stream_events_params.rbi
|
|
@@ -555,12 +570,17 @@ files:
|
|
|
555
570
|
- rbi/cadenya/models/objectives/objective_tool_call_result_text_block.rbi
|
|
556
571
|
- rbi/cadenya/models/objectives/objective_tool_call_with_result.rbi
|
|
557
572
|
- rbi/cadenya/models/objectives/resolved_secret.rbi
|
|
573
|
+
- rbi/cadenya/models/objectives/set_tool_call_content_request_audio_block.rbi
|
|
574
|
+
- rbi/cadenya/models/objectives/set_tool_call_content_request_content_block.rbi
|
|
575
|
+
- rbi/cadenya/models/objectives/set_tool_call_content_request_image_block.rbi
|
|
576
|
+
- rbi/cadenya/models/objectives/set_tool_call_content_request_text_block.rbi
|
|
558
577
|
- rbi/cadenya/models/objectives/task_list_params.rbi
|
|
559
578
|
- rbi/cadenya/models/objectives/task_retrieve_params.rbi
|
|
560
579
|
- rbi/cadenya/models/objectives/tool_call_approve_params.rbi
|
|
561
580
|
- rbi/cadenya/models/objectives/tool_call_deny_params.rbi
|
|
562
581
|
- rbi/cadenya/models/objectives/tool_call_list_params.rbi
|
|
563
582
|
- rbi/cadenya/models/objectives/tool_call_retrieve_params.rbi
|
|
583
|
+
- rbi/cadenya/models/objectives/tool_call_set_content_params.rbi
|
|
564
584
|
- rbi/cadenya/models/objectives/tool_list_params.rbi
|
|
565
585
|
- rbi/cadenya/models/operation_metadata.rbi
|
|
566
586
|
- rbi/cadenya/models/page.rbi
|
|
@@ -587,6 +607,7 @@ files:
|
|
|
587
607
|
- rbi/cadenya/models/tool_result.rbi
|
|
588
608
|
- rbi/cadenya/models/tool_set.rbi
|
|
589
609
|
- rbi/cadenya/models/tool_set_adapter.rbi
|
|
610
|
+
- rbi/cadenya/models/tool_set_adapter_bare.rbi
|
|
590
611
|
- rbi/cadenya/models/tool_set_adapter_http.rbi
|
|
591
612
|
- rbi/cadenya/models/tool_set_adapter_mcp.rbi
|
|
592
613
|
- rbi/cadenya/models/tool_set_adapter_openapi.rbi
|
|
@@ -604,6 +625,7 @@ files:
|
|
|
604
625
|
- rbi/cadenya/models/tool_set_spec.rbi
|
|
605
626
|
- rbi/cadenya/models/tool_set_unarchive_params.rbi
|
|
606
627
|
- rbi/cadenya/models/tool_set_update_params.rbi
|
|
628
|
+
- rbi/cadenya/models/tool_sets/config_bare.rbi
|
|
607
629
|
- rbi/cadenya/models/tool_sets/config_http.rbi
|
|
608
630
|
- rbi/cadenya/models/tool_sets/config_mcp.rbi
|
|
609
631
|
- rbi/cadenya/models/tool_sets/config_openapi.rbi
|
|
@@ -797,6 +819,7 @@ files:
|
|
|
797
819
|
- sig/cadenya/models/attribute_filter.rbs
|
|
798
820
|
- sig/cadenya/models/bare_metadata.rbs
|
|
799
821
|
- sig/cadenya/models/callable_tool.rbs
|
|
822
|
+
- sig/cadenya/models/context_lengths.rbs
|
|
800
823
|
- sig/cadenya/models/context_window_compacted.rbs
|
|
801
824
|
- sig/cadenya/models/create_operation_metadata.rbs
|
|
802
825
|
- sig/cadenya/models/create_resource_metadata.rbs
|
|
@@ -838,6 +861,7 @@ files:
|
|
|
838
861
|
- sig/cadenya/models/objective_context_window_data.rbs
|
|
839
862
|
- sig/cadenya/models/objective_continue_params.rbs
|
|
840
863
|
- sig/cadenya/models/objective_create_params.rbs
|
|
864
|
+
- sig/cadenya/models/objective_diagnostics.rbs
|
|
841
865
|
- sig/cadenya/models/objective_error.rbs
|
|
842
866
|
- sig/cadenya/models/objective_event.rbs
|
|
843
867
|
- sig/cadenya/models/objective_event_data.rbs
|
|
@@ -847,6 +871,8 @@ files:
|
|
|
847
871
|
- sig/cadenya/models/objective_list_context_windows_params.rbs
|
|
848
872
|
- sig/cadenya/models/objective_list_events_params.rbs
|
|
849
873
|
- sig/cadenya/models/objective_list_params.rbs
|
|
874
|
+
- sig/cadenya/models/objective_retrieve_diagnostics_params.rbs
|
|
875
|
+
- sig/cadenya/models/objective_retrieve_diagnostics_response.rbs
|
|
850
876
|
- sig/cadenya/models/objective_retrieve_params.rbs
|
|
851
877
|
- sig/cadenya/models/objective_secret.rbs
|
|
852
878
|
- sig/cadenya/models/objective_stream_events_params.rbs
|
|
@@ -868,12 +894,17 @@ files:
|
|
|
868
894
|
- sig/cadenya/models/objectives/objective_tool_call_result_text_block.rbs
|
|
869
895
|
- sig/cadenya/models/objectives/objective_tool_call_with_result.rbs
|
|
870
896
|
- sig/cadenya/models/objectives/resolved_secret.rbs
|
|
897
|
+
- sig/cadenya/models/objectives/set_tool_call_content_request_audio_block.rbs
|
|
898
|
+
- sig/cadenya/models/objectives/set_tool_call_content_request_content_block.rbs
|
|
899
|
+
- sig/cadenya/models/objectives/set_tool_call_content_request_image_block.rbs
|
|
900
|
+
- sig/cadenya/models/objectives/set_tool_call_content_request_text_block.rbs
|
|
871
901
|
- sig/cadenya/models/objectives/task_list_params.rbs
|
|
872
902
|
- sig/cadenya/models/objectives/task_retrieve_params.rbs
|
|
873
903
|
- sig/cadenya/models/objectives/tool_call_approve_params.rbs
|
|
874
904
|
- sig/cadenya/models/objectives/tool_call_deny_params.rbs
|
|
875
905
|
- sig/cadenya/models/objectives/tool_call_list_params.rbs
|
|
876
906
|
- sig/cadenya/models/objectives/tool_call_retrieve_params.rbs
|
|
907
|
+
- sig/cadenya/models/objectives/tool_call_set_content_params.rbs
|
|
877
908
|
- sig/cadenya/models/objectives/tool_list_params.rbs
|
|
878
909
|
- sig/cadenya/models/operation_metadata.rbs
|
|
879
910
|
- sig/cadenya/models/page.rbs
|
|
@@ -900,6 +931,7 @@ files:
|
|
|
900
931
|
- sig/cadenya/models/tool_result.rbs
|
|
901
932
|
- sig/cadenya/models/tool_set.rbs
|
|
902
933
|
- sig/cadenya/models/tool_set_adapter.rbs
|
|
934
|
+
- sig/cadenya/models/tool_set_adapter_bare.rbs
|
|
903
935
|
- sig/cadenya/models/tool_set_adapter_http.rbs
|
|
904
936
|
- sig/cadenya/models/tool_set_adapter_mcp.rbs
|
|
905
937
|
- sig/cadenya/models/tool_set_adapter_openapi.rbs
|
|
@@ -917,6 +949,7 @@ files:
|
|
|
917
949
|
- sig/cadenya/models/tool_set_spec.rbs
|
|
918
950
|
- sig/cadenya/models/tool_set_unarchive_params.rbs
|
|
919
951
|
- sig/cadenya/models/tool_set_update_params.rbs
|
|
952
|
+
- sig/cadenya/models/tool_sets/config_bare.rbs
|
|
920
953
|
- sig/cadenya/models/tool_sets/config_http.rbs
|
|
921
954
|
- sig/cadenya/models/tool_sets/config_mcp.rbs
|
|
922
955
|
- sig/cadenya/models/tool_sets/config_openapi.rbs
|