cadenya 0.11.0 → 0.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 +16 -0
- data/README.md +1 -1
- data/lib/cadenya/models/agent_spec.rb +23 -1
- data/lib/cadenya/models/agents/agent_variation_spec.rb +1 -22
- data/lib/cadenya/models/memory_layer_list_params.rb +22 -1
- data/lib/cadenya/models/memory_layer_spec.rb +19 -1
- data/lib/cadenya/models/objective.rb +38 -1
- data/lib/cadenya/models/objective_create_params.rb +28 -1
- data/lib/cadenya/models/objectives/objective_tool_call_data.rb +1 -9
- data/lib/cadenya/models/objectives/objective_tool_call_result.rb +27 -0
- data/lib/cadenya/models/objectives/objective_tool_call_result_audio_block.rb +46 -0
- data/lib/cadenya/models/objectives/objective_tool_call_result_content_block.rb +34 -0
- data/lib/cadenya/models/objectives/objective_tool_call_result_image_block.rb +46 -0
- data/lib/cadenya/models/objectives/objective_tool_call_result_text_block.rb +21 -0
- data/lib/cadenya/models/objectives/objective_tool_call_with_result.rb +102 -0
- data/lib/cadenya/models/objectives/tool_call_retrieve_params.rb +34 -0
- data/lib/cadenya/models/tool_result.rb +15 -7
- data/lib/cadenya/resources/memory_layers.rb +10 -1
- data/lib/cadenya/resources/objectives/tool_calls.rb +39 -0
- data/lib/cadenya/resources/objectives.rb +3 -1
- data/lib/cadenya/version.rb +1 -1
- data/lib/cadenya.rb +7 -0
- data/rbi/cadenya/models/agent_spec.rbi +34 -0
- data/rbi/cadenya/models/agents/agent_variation_spec.rbi +0 -32
- data/rbi/cadenya/models/memory_layer_list_params.rbi +26 -0
- data/rbi/cadenya/models/memory_layer_spec.rbi +26 -0
- data/rbi/cadenya/models/objective.rbi +57 -0
- data/rbi/cadenya/models/objective_create_params.rbi +48 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_data.rbi +0 -11
- data/rbi/cadenya/models/objectives/objective_tool_call_result.rbi +54 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_result_audio_block.rbi +69 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_result_content_block.rbi +90 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_result_image_block.rbi +69 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_result_text_block.rbi +31 -0
- data/rbi/cadenya/models/objectives/objective_tool_call_with_result.rbi +219 -0
- data/rbi/cadenya/models/objectives/tool_call_retrieve_params.rbi +58 -0
- data/rbi/cadenya/models/tool_result.rbi +34 -12
- data/rbi/cadenya/resources/memory_layers.rbi +8 -0
- data/rbi/cadenya/resources/objectives/tool_calls.rbi +20 -0
- data/rbi/cadenya/resources/objectives.rbi +4 -0
- data/sig/cadenya/models/agent_spec.rbs +14 -0
- data/sig/cadenya/models/agents/agent_variation_spec.rbs +0 -14
- data/sig/cadenya/models/memory_layer_list_params.rbs +14 -0
- data/sig/cadenya/models/memory_layer_spec.rbs +14 -0
- data/sig/cadenya/models/objective.rbs +25 -0
- data/sig/cadenya/models/objective_create_params.rbs +21 -0
- data/sig/cadenya/models/objectives/objective_tool_call_data.rbs +0 -7
- data/sig/cadenya/models/objectives/objective_tool_call_result.rbs +24 -0
- data/sig/cadenya/models/objectives/objective_tool_call_result_audio_block.rbs +34 -0
- data/sig/cadenya/models/objectives/objective_tool_call_result_content_block.rbs +46 -0
- data/sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs +34 -0
- data/sig/cadenya/models/objectives/objective_tool_call_result_text_block.rbs +17 -0
- data/sig/cadenya/models/objectives/objective_tool_call_with_result.rbs +91 -0
- data/sig/cadenya/models/objectives/tool_call_retrieve_params.rbs +34 -0
- data/sig/cadenya/models/tool_result.rbs +15 -9
- data/sig/cadenya/resources/memory_layers.rbs +2 -0
- data/sig/cadenya/resources/objectives/tool_calls.rbs +7 -0
- data/sig/cadenya/resources/objectives.rbs +1 -0
- metadata +23 -2
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
module Cadenya
|
|
2
2
|
module Models
|
|
3
|
-
type tool_result =
|
|
3
|
+
type tool_result =
|
|
4
|
+
{
|
|
5
|
+
result: Cadenya::Objectives::ObjectiveToolCallResult,
|
|
6
|
+
tool_call_id: String
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
class ToolResult < Cadenya::Internal::Type::BaseModel
|
|
6
|
-
|
|
10
|
+
attr_accessor result: Cadenya::Objectives::ObjectiveToolCallResult
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
attr_accessor tool_call_id: String
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
def initialize: (
|
|
15
|
+
result: Cadenya::Objectives::ObjectiveToolCallResult,
|
|
16
|
+
tool_call_id: String
|
|
17
|
+
) -> void
|
|
11
18
|
|
|
12
|
-
def
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def to_hash: -> { content: String, tool_call_id: String }
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
result: Cadenya::Objectives::ObjectiveToolCallResult,
|
|
21
|
+
tool_call_id: String
|
|
22
|
+
}
|
|
17
23
|
end
|
|
18
24
|
end
|
|
19
25
|
end
|
|
@@ -2,6 +2,13 @@ module Cadenya
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Objectives
|
|
4
4
|
class ToolCalls
|
|
5
|
+
def retrieve: (
|
|
6
|
+
String tool_call_id,
|
|
7
|
+
workspace_id: String,
|
|
8
|
+
objective_id: String,
|
|
9
|
+
?request_options: Cadenya::request_opts
|
|
10
|
+
) -> Cadenya::Objectives::ObjectiveToolCallWithResult
|
|
11
|
+
|
|
5
12
|
def list: (
|
|
6
13
|
String objective_id,
|
|
7
14
|
workspace_id: String,
|
|
@@ -13,6 +13,7 @@ module Cadenya
|
|
|
13
13
|
String workspace_id,
|
|
14
14
|
agent_id: String,
|
|
15
15
|
data: ::Hash[Symbol, top],
|
|
16
|
+
?episodic_memory: Cadenya::ObjectiveCreateParams::EpisodicMemory,
|
|
16
17
|
?initial_message: String,
|
|
17
18
|
?memory_stack: ::Array[Cadenya::MemoryReference],
|
|
18
19
|
?metadata: Cadenya::CreateOperationMetadata,
|
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.13.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-06-
|
|
11
|
+
date: 2026-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -255,11 +255,18 @@ files:
|
|
|
255
255
|
- lib/cadenya/models/objectives/objective_tool_call.rb
|
|
256
256
|
- lib/cadenya/models/objectives/objective_tool_call_data.rb
|
|
257
257
|
- lib/cadenya/models/objectives/objective_tool_call_info.rb
|
|
258
|
+
- lib/cadenya/models/objectives/objective_tool_call_result.rb
|
|
259
|
+
- lib/cadenya/models/objectives/objective_tool_call_result_audio_block.rb
|
|
260
|
+
- lib/cadenya/models/objectives/objective_tool_call_result_content_block.rb
|
|
261
|
+
- lib/cadenya/models/objectives/objective_tool_call_result_image_block.rb
|
|
262
|
+
- lib/cadenya/models/objectives/objective_tool_call_result_text_block.rb
|
|
263
|
+
- lib/cadenya/models/objectives/objective_tool_call_with_result.rb
|
|
258
264
|
- lib/cadenya/models/objectives/task_list_params.rb
|
|
259
265
|
- lib/cadenya/models/objectives/task_retrieve_params.rb
|
|
260
266
|
- lib/cadenya/models/objectives/tool_call_approve_params.rb
|
|
261
267
|
- lib/cadenya/models/objectives/tool_call_deny_params.rb
|
|
262
268
|
- lib/cadenya/models/objectives/tool_call_list_params.rb
|
|
269
|
+
- lib/cadenya/models/objectives/tool_call_retrieve_params.rb
|
|
263
270
|
- lib/cadenya/models/objectives/tool_list_params.rb
|
|
264
271
|
- lib/cadenya/models/operation_metadata.rb
|
|
265
272
|
- lib/cadenya/models/page.rb
|
|
@@ -575,11 +582,18 @@ files:
|
|
|
575
582
|
- rbi/cadenya/models/objectives/objective_tool_call.rbi
|
|
576
583
|
- rbi/cadenya/models/objectives/objective_tool_call_data.rbi
|
|
577
584
|
- rbi/cadenya/models/objectives/objective_tool_call_info.rbi
|
|
585
|
+
- rbi/cadenya/models/objectives/objective_tool_call_result.rbi
|
|
586
|
+
- rbi/cadenya/models/objectives/objective_tool_call_result_audio_block.rbi
|
|
587
|
+
- rbi/cadenya/models/objectives/objective_tool_call_result_content_block.rbi
|
|
588
|
+
- rbi/cadenya/models/objectives/objective_tool_call_result_image_block.rbi
|
|
589
|
+
- rbi/cadenya/models/objectives/objective_tool_call_result_text_block.rbi
|
|
590
|
+
- rbi/cadenya/models/objectives/objective_tool_call_with_result.rbi
|
|
578
591
|
- rbi/cadenya/models/objectives/task_list_params.rbi
|
|
579
592
|
- rbi/cadenya/models/objectives/task_retrieve_params.rbi
|
|
580
593
|
- rbi/cadenya/models/objectives/tool_call_approve_params.rbi
|
|
581
594
|
- rbi/cadenya/models/objectives/tool_call_deny_params.rbi
|
|
582
595
|
- rbi/cadenya/models/objectives/tool_call_list_params.rbi
|
|
596
|
+
- rbi/cadenya/models/objectives/tool_call_retrieve_params.rbi
|
|
583
597
|
- rbi/cadenya/models/objectives/tool_list_params.rbi
|
|
584
598
|
- rbi/cadenya/models/operation_metadata.rbi
|
|
585
599
|
- rbi/cadenya/models/page.rbi
|
|
@@ -894,11 +908,18 @@ files:
|
|
|
894
908
|
- sig/cadenya/models/objectives/objective_tool_call.rbs
|
|
895
909
|
- sig/cadenya/models/objectives/objective_tool_call_data.rbs
|
|
896
910
|
- sig/cadenya/models/objectives/objective_tool_call_info.rbs
|
|
911
|
+
- sig/cadenya/models/objectives/objective_tool_call_result.rbs
|
|
912
|
+
- sig/cadenya/models/objectives/objective_tool_call_result_audio_block.rbs
|
|
913
|
+
- sig/cadenya/models/objectives/objective_tool_call_result_content_block.rbs
|
|
914
|
+
- sig/cadenya/models/objectives/objective_tool_call_result_image_block.rbs
|
|
915
|
+
- sig/cadenya/models/objectives/objective_tool_call_result_text_block.rbs
|
|
916
|
+
- sig/cadenya/models/objectives/objective_tool_call_with_result.rbs
|
|
897
917
|
- sig/cadenya/models/objectives/task_list_params.rbs
|
|
898
918
|
- sig/cadenya/models/objectives/task_retrieve_params.rbs
|
|
899
919
|
- sig/cadenya/models/objectives/tool_call_approve_params.rbs
|
|
900
920
|
- sig/cadenya/models/objectives/tool_call_deny_params.rbs
|
|
901
921
|
- sig/cadenya/models/objectives/tool_call_list_params.rbs
|
|
922
|
+
- sig/cadenya/models/objectives/tool_call_retrieve_params.rbs
|
|
902
923
|
- sig/cadenya/models/objectives/tool_list_params.rbs
|
|
903
924
|
- sig/cadenya/models/operation_metadata.rbs
|
|
904
925
|
- sig/cadenya/models/page.rbs
|