cadenya 1.0.1 → 1.2.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/api.md +47 -47
- data/lib/cadenya/client.rb +3 -3
- data/lib/cadenya/resources/agent_variations.rb +24 -20
- data/lib/cadenya/resources/ai_provider_keys.rb +7 -3
- data/lib/cadenya/resources/models.rb +26 -0
- data/lib/cadenya/resources/objectives.rb +0 -25
- data/lib/cadenya/types.rb +1001 -139
- data/lib/cadenya.rb +1 -1
- metadata +2 -2
data/lib/cadenya/types.rb
CHANGED
|
@@ -15,6 +15,10 @@ module Cadenya
|
|
|
15
15
|
Types::AIProviderConfig_Openai.from_json(data)
|
|
16
16
|
when "openaiCompatible"
|
|
17
17
|
Types::AIProviderConfig_OpenaiCompatible.from_json(data)
|
|
18
|
+
when "vertex"
|
|
19
|
+
Types::AIProviderConfig_Vertex.from_json(data)
|
|
20
|
+
when "bedrock"
|
|
21
|
+
Types::AIProviderConfig_Bedrock.from_json(data)
|
|
18
22
|
else
|
|
19
23
|
raise ArgumentError, "AIProviderConfig: unknown type #{data["type"].inspect}"
|
|
20
24
|
end
|
|
@@ -27,11 +31,90 @@ module Cadenya
|
|
|
27
31
|
Types::AIProviderCredential_ApiKey.from_json(data)
|
|
28
32
|
when "headers"
|
|
29
33
|
Types::AIProviderCredential_Headers.from_json(data)
|
|
34
|
+
when "googleServiceAccount"
|
|
35
|
+
Types::AIProviderCredential_GoogleServiceAccount.from_json(data)
|
|
36
|
+
when "awsAccessKey"
|
|
37
|
+
Types::AIProviderCredential_AwsAccessKey.from_json(data)
|
|
30
38
|
else
|
|
31
39
|
raise ArgumentError, "AIProviderCredential: unknown type #{data["type"].inspect}"
|
|
32
40
|
end
|
|
33
41
|
end
|
|
34
42
|
|
|
43
|
+
class AIProviderCredentialFieldStatus
|
|
44
|
+
attr_reader :name, :sensitive, :configured, :value
|
|
45
|
+
|
|
46
|
+
def initialize(name: nil, sensitive: nil, configured: nil, value: nil)
|
|
47
|
+
@name = name
|
|
48
|
+
@sensitive = sensitive
|
|
49
|
+
@configured = configured
|
|
50
|
+
@value = value
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.from_json(data)
|
|
54
|
+
new(
|
|
55
|
+
name: data["name"],
|
|
56
|
+
sensitive: data["sensitive"],
|
|
57
|
+
configured: data["configured"],
|
|
58
|
+
value: data["value"],
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def to_h
|
|
63
|
+
{
|
|
64
|
+
name: Util.plain(@name),
|
|
65
|
+
sensitive: Util.plain(@sensitive),
|
|
66
|
+
configured: Util.plain(@configured),
|
|
67
|
+
value: Util.plain(@value),
|
|
68
|
+
}.reject { |_k, v| v.nil? }
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class AIProviderCredentialPatch
|
|
73
|
+
attr_reader :credentials, :clear_fields
|
|
74
|
+
|
|
75
|
+
def initialize(credentials: nil, clear_fields: nil)
|
|
76
|
+
@credentials = credentials
|
|
77
|
+
@clear_fields = clear_fields
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def self.from_json(data)
|
|
81
|
+
new(
|
|
82
|
+
credentials: data["credentials"].nil? ? nil : Types.decode_AIProviderCredential(data["credentials"]),
|
|
83
|
+
clear_fields: data["clearFields"],
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def to_h
|
|
88
|
+
{
|
|
89
|
+
credentials: Util.plain(@credentials),
|
|
90
|
+
clear_fields: Util.plain(@clear_fields),
|
|
91
|
+
}.reject { |_k, v| v.nil? }
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
class AIProviderCredentialStatus
|
|
96
|
+
attr_reader :type, :fields
|
|
97
|
+
|
|
98
|
+
def initialize(type: nil, fields: nil)
|
|
99
|
+
@type = type
|
|
100
|
+
@fields = fields
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def self.from_json(data)
|
|
104
|
+
new(
|
|
105
|
+
type: data["type"],
|
|
106
|
+
fields: data["fields"].nil? ? nil : (data["fields"]).map { |item| Types::AIProviderCredentialFieldStatus.from_json(item) },
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
def to_h
|
|
111
|
+
{
|
|
112
|
+
type: Util.plain(@type),
|
|
113
|
+
fields: Util.plain(@fields),
|
|
114
|
+
}.reject { |_k, v| v.nil? }
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
35
118
|
class AIProviderKey
|
|
36
119
|
attr_reader :metadata, :spec, :info
|
|
37
120
|
|
|
@@ -58,13 +141,17 @@ module Cadenya
|
|
|
58
141
|
end
|
|
59
142
|
end
|
|
60
143
|
|
|
144
|
+
AiProviderKeyInfoModelManagement = ["MODEL_MANAGEMENT_UNSPECIFIED", "MODEL_MANAGEMENT_CADENYA", "MODEL_MANAGEMENT_SYNCED", "MODEL_MANAGEMENT_CUSTOMIZABLE", "MODEL_MANAGEMENT_MANUAL"].freeze
|
|
145
|
+
|
|
61
146
|
class AIProviderKeyInfo
|
|
62
|
-
attr_reader :enabled_model_count, :disabled_model_count, :is_promotional
|
|
147
|
+
attr_reader :enabled_model_count, :disabled_model_count, :is_promotional, :credential_status, :model_management
|
|
63
148
|
|
|
64
|
-
def initialize(enabled_model_count: nil, disabled_model_count: nil, is_promotional: nil)
|
|
149
|
+
def initialize(enabled_model_count: nil, disabled_model_count: nil, is_promotional: nil, credential_status: nil, model_management: nil)
|
|
65
150
|
@enabled_model_count = enabled_model_count
|
|
66
151
|
@disabled_model_count = disabled_model_count
|
|
67
152
|
@is_promotional = is_promotional
|
|
153
|
+
@credential_status = credential_status
|
|
154
|
+
@model_management = model_management
|
|
68
155
|
end
|
|
69
156
|
|
|
70
157
|
def self.from_json(data)
|
|
@@ -72,6 +159,8 @@ module Cadenya
|
|
|
72
159
|
enabled_model_count: data["enabledModelCount"],
|
|
73
160
|
disabled_model_count: data["disabledModelCount"],
|
|
74
161
|
is_promotional: data["isPromotional"],
|
|
162
|
+
credential_status: data["credentialStatus"].nil? ? nil : Types::AIProviderCredentialStatus.from_json(data["credentialStatus"]),
|
|
163
|
+
model_management: data["modelManagement"],
|
|
75
164
|
)
|
|
76
165
|
end
|
|
77
166
|
|
|
@@ -80,11 +169,13 @@ module Cadenya
|
|
|
80
169
|
enabled_model_count: Util.plain(@enabled_model_count),
|
|
81
170
|
disabled_model_count: Util.plain(@disabled_model_count),
|
|
82
171
|
is_promotional: Util.plain(@is_promotional),
|
|
172
|
+
credential_status: Util.plain(@credential_status),
|
|
173
|
+
model_management: Util.plain(@model_management),
|
|
83
174
|
}.reject { |_k, v| v.nil? }
|
|
84
175
|
end
|
|
85
176
|
end
|
|
86
177
|
|
|
87
|
-
AiProviderKeySpecProvider = ["AI_PROVIDER_UNSPECIFIED", "AI_PROVIDER_OPENROUTER", "AI_PROVIDER_OPENAI", "AI_PROVIDER_ANTHROPIC", "AI_PROVIDER_GEMINI", "AI_PROVIDER_OPENAI_COMPATIBLE"].freeze
|
|
178
|
+
AiProviderKeySpecProvider = ["AI_PROVIDER_UNSPECIFIED", "AI_PROVIDER_OPENROUTER", "AI_PROVIDER_OPENAI", "AI_PROVIDER_ANTHROPIC", "AI_PROVIDER_GEMINI", "AI_PROVIDER_OPENAI_COMPATIBLE", "AI_PROVIDER_VERTEX", "AI_PROVIDER_BEDROCK"].freeze
|
|
88
179
|
|
|
89
180
|
class AIProviderKeySpec
|
|
90
181
|
attr_reader :provider, :credentials, :config
|
|
@@ -633,9 +724,9 @@ module Cadenya
|
|
|
633
724
|
end
|
|
634
725
|
|
|
635
726
|
class AgentVariationInfo
|
|
636
|
-
attr_reader :tool_count, :tool_set_count, :sub_agent_count, :created_by, :model, :score, :feedback_count, :
|
|
727
|
+
attr_reader :tool_count, :tool_set_count, :sub_agent_count, :created_by, :model, :score, :feedback_count, :memory_layer_count, :effective_tool_count
|
|
637
728
|
|
|
638
|
-
def initialize(tool_count: nil, tool_set_count: nil, sub_agent_count: nil, created_by: nil, model: nil, score: nil, feedback_count: nil,
|
|
729
|
+
def initialize(tool_count: nil, tool_set_count: nil, sub_agent_count: nil, created_by: nil, model: nil, score: nil, feedback_count: nil, memory_layer_count: nil, effective_tool_count: nil)
|
|
639
730
|
@tool_count = tool_count
|
|
640
731
|
@tool_set_count = tool_set_count
|
|
641
732
|
@sub_agent_count = sub_agent_count
|
|
@@ -643,9 +734,8 @@ module Cadenya
|
|
|
643
734
|
@model = model
|
|
644
735
|
@score = score
|
|
645
736
|
@feedback_count = feedback_count
|
|
646
|
-
@assignments = assignments
|
|
647
|
-
@memory_layer_assignments = memory_layer_assignments
|
|
648
737
|
@memory_layer_count = memory_layer_count
|
|
738
|
+
@effective_tool_count = effective_tool_count
|
|
649
739
|
end
|
|
650
740
|
|
|
651
741
|
def self.from_json(data)
|
|
@@ -657,9 +747,8 @@ module Cadenya
|
|
|
657
747
|
model: data["model"].nil? ? nil : Types::ResourceMetadata.from_json(data["model"]),
|
|
658
748
|
score: data["score"],
|
|
659
749
|
feedback_count: data["feedbackCount"],
|
|
660
|
-
assignments: data["assignments"].nil? ? nil : (data["assignments"]).map { |item| Types.decode_VariationAssignment(item) },
|
|
661
|
-
memory_layer_assignments: data["memoryLayerAssignments"].nil? ? nil : (data["memoryLayerAssignments"]).map { |item| Types::VariationMemoryLayerAssignment.from_json(item) },
|
|
662
750
|
memory_layer_count: data["memoryLayerCount"],
|
|
751
|
+
effective_tool_count: data["effectiveToolCount"],
|
|
663
752
|
)
|
|
664
753
|
end
|
|
665
754
|
|
|
@@ -672,17 +761,16 @@ module Cadenya
|
|
|
672
761
|
model: Util.plain(@model),
|
|
673
762
|
score: Util.plain(@score),
|
|
674
763
|
feedback_count: Util.plain(@feedback_count),
|
|
675
|
-
assignments: Util.plain(@assignments),
|
|
676
|
-
memory_layer_assignments: Util.plain(@memory_layer_assignments),
|
|
677
764
|
memory_layer_count: Util.plain(@memory_layer_count),
|
|
765
|
+
effective_tool_count: Util.plain(@effective_tool_count),
|
|
678
766
|
}.reject { |_k, v| v.nil? }
|
|
679
767
|
end
|
|
680
768
|
end
|
|
681
769
|
|
|
682
770
|
class AgentVariationSpec
|
|
683
|
-
attr_reader :system_prompt_template, :progressive_discovery, :constraints, :description, :model_config, :compaction_config, :first_user_message_template
|
|
771
|
+
attr_reader :system_prompt_template, :progressive_discovery, :constraints, :description, :model_config, :compaction_config, :first_user_message_template, :assignments, :memory_layer_assignments
|
|
684
772
|
|
|
685
|
-
def initialize(system_prompt_template: nil, progressive_discovery: nil, constraints: nil, description: nil, model_config: nil, compaction_config: nil, first_user_message_template: nil)
|
|
773
|
+
def initialize(system_prompt_template: nil, progressive_discovery: nil, constraints: nil, description: nil, model_config: nil, compaction_config: nil, first_user_message_template: nil, assignments: nil, memory_layer_assignments: nil)
|
|
686
774
|
@system_prompt_template = system_prompt_template
|
|
687
775
|
@progressive_discovery = progressive_discovery
|
|
688
776
|
@constraints = constraints
|
|
@@ -690,6 +778,8 @@ module Cadenya
|
|
|
690
778
|
@model_config = model_config
|
|
691
779
|
@compaction_config = compaction_config
|
|
692
780
|
@first_user_message_template = first_user_message_template
|
|
781
|
+
@assignments = assignments
|
|
782
|
+
@memory_layer_assignments = memory_layer_assignments
|
|
693
783
|
end
|
|
694
784
|
|
|
695
785
|
def self.from_json(data)
|
|
@@ -701,6 +791,8 @@ module Cadenya
|
|
|
701
791
|
model_config: data["modelConfig"].nil? ? nil : Types::AgentVariationSpec_ModelConfig.from_json(data["modelConfig"]),
|
|
702
792
|
compaction_config: data["compactionConfig"].nil? ? nil : Types::AgentVariationSpec_CompactionConfig.from_json(data["compactionConfig"]),
|
|
703
793
|
first_user_message_template: data["firstUserMessageTemplate"],
|
|
794
|
+
assignments: data["assignments"].nil? ? nil : (data["assignments"]).map { |item| Types.decode_VariationAssignment(item) },
|
|
795
|
+
memory_layer_assignments: data["memoryLayerAssignments"].nil? ? nil : (data["memoryLayerAssignments"]).map { |item| Types::VariationMemoryLayerAssignment.from_json(item) },
|
|
704
796
|
)
|
|
705
797
|
end
|
|
706
798
|
|
|
@@ -713,6 +805,8 @@ module Cadenya
|
|
|
713
805
|
model_config: Util.plain(@model_config),
|
|
714
806
|
compaction_config: Util.plain(@compaction_config),
|
|
715
807
|
first_user_message_template: Util.plain(@first_user_message_template),
|
|
808
|
+
assignments: Util.plain(@assignments),
|
|
809
|
+
memory_layer_assignments: Util.plain(@memory_layer_assignments),
|
|
716
810
|
}.reject { |_k, v| v.nil? }
|
|
717
811
|
end
|
|
718
812
|
end
|
|
@@ -1028,6 +1122,26 @@ module Cadenya
|
|
|
1028
1122
|
end
|
|
1029
1123
|
end
|
|
1030
1124
|
|
|
1125
|
+
class BedrockConfig
|
|
1126
|
+
attr_reader :region
|
|
1127
|
+
|
|
1128
|
+
def initialize(region: nil)
|
|
1129
|
+
@region = region
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
def self.from_json(data)
|
|
1133
|
+
new(
|
|
1134
|
+
region: data["region"],
|
|
1135
|
+
)
|
|
1136
|
+
end
|
|
1137
|
+
|
|
1138
|
+
def to_h
|
|
1139
|
+
{
|
|
1140
|
+
region: Util.plain(@region),
|
|
1141
|
+
}.reject { |_k, v| v.nil? }
|
|
1142
|
+
end
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1031
1145
|
def self.decode_CallableTool(data)
|
|
1032
1146
|
return nil if data.nil? || data["type"].to_s.empty?
|
|
1033
1147
|
case data["type"]
|
|
@@ -1665,6 +1779,35 @@ module Cadenya
|
|
|
1665
1779
|
end
|
|
1666
1780
|
end
|
|
1667
1781
|
|
|
1782
|
+
class CreateModelRequest
|
|
1783
|
+
attr_reader :workspace_id, :ai_provider_key_id, :metadata, :spec
|
|
1784
|
+
|
|
1785
|
+
def initialize(workspace_id: nil, ai_provider_key_id: nil, metadata: nil, spec: nil)
|
|
1786
|
+
@workspace_id = workspace_id
|
|
1787
|
+
@ai_provider_key_id = ai_provider_key_id
|
|
1788
|
+
@metadata = metadata
|
|
1789
|
+
@spec = spec
|
|
1790
|
+
end
|
|
1791
|
+
|
|
1792
|
+
def self.from_json(data)
|
|
1793
|
+
new(
|
|
1794
|
+
workspace_id: data["workspaceId"],
|
|
1795
|
+
ai_provider_key_id: data["aiProviderKeyId"],
|
|
1796
|
+
metadata: data["metadata"].nil? ? nil : Types::CreateResourceMetadata.from_json(data["metadata"]),
|
|
1797
|
+
spec: data["spec"].nil? ? nil : Types::ModelSpec.from_json(data["spec"]),
|
|
1798
|
+
)
|
|
1799
|
+
end
|
|
1800
|
+
|
|
1801
|
+
def to_h
|
|
1802
|
+
{
|
|
1803
|
+
workspace_id: Util.plain(@workspace_id),
|
|
1804
|
+
ai_provider_key_id: Util.plain(@ai_provider_key_id),
|
|
1805
|
+
metadata: Util.plain(@metadata),
|
|
1806
|
+
spec: Util.plain(@spec),
|
|
1807
|
+
}.reject { |_k, v| v.nil? }
|
|
1808
|
+
end
|
|
1809
|
+
end
|
|
1810
|
+
|
|
1668
1811
|
class CreateObjectiveFeedbackRequest
|
|
1669
1812
|
attr_reader :workspace_id, :objective_id, :metadata, :data
|
|
1670
1813
|
|
|
@@ -2079,6 +2222,52 @@ module Cadenya
|
|
|
2079
2222
|
end
|
|
2080
2223
|
end
|
|
2081
2224
|
|
|
2225
|
+
class CredentialAWSAccessKey
|
|
2226
|
+
attr_reader :access_key_id, :secret_access_key, :session_token
|
|
2227
|
+
|
|
2228
|
+
def initialize(access_key_id: nil, secret_access_key: nil, session_token: nil)
|
|
2229
|
+
@access_key_id = access_key_id
|
|
2230
|
+
@secret_access_key = secret_access_key
|
|
2231
|
+
@session_token = session_token
|
|
2232
|
+
end
|
|
2233
|
+
|
|
2234
|
+
def self.from_json(data)
|
|
2235
|
+
new(
|
|
2236
|
+
access_key_id: data["accessKeyId"],
|
|
2237
|
+
secret_access_key: data["secretAccessKey"],
|
|
2238
|
+
session_token: data["sessionToken"],
|
|
2239
|
+
)
|
|
2240
|
+
end
|
|
2241
|
+
|
|
2242
|
+
def to_h
|
|
2243
|
+
{
|
|
2244
|
+
access_key_id: Util.plain(@access_key_id),
|
|
2245
|
+
secret_access_key: Util.plain(@secret_access_key),
|
|
2246
|
+
session_token: Util.plain(@session_token),
|
|
2247
|
+
}.reject { |_k, v| v.nil? }
|
|
2248
|
+
end
|
|
2249
|
+
end
|
|
2250
|
+
|
|
2251
|
+
class CredentialGoogleServiceAccount
|
|
2252
|
+
attr_reader :json
|
|
2253
|
+
|
|
2254
|
+
def initialize(json: nil)
|
|
2255
|
+
@json = json
|
|
2256
|
+
end
|
|
2257
|
+
|
|
2258
|
+
def self.from_json(data)
|
|
2259
|
+
new(
|
|
2260
|
+
json: data["json"],
|
|
2261
|
+
)
|
|
2262
|
+
end
|
|
2263
|
+
|
|
2264
|
+
def to_h
|
|
2265
|
+
{
|
|
2266
|
+
json: Util.plain(@json),
|
|
2267
|
+
}.reject { |_k, v| v.nil? }
|
|
2268
|
+
end
|
|
2269
|
+
end
|
|
2270
|
+
|
|
2082
2271
|
class CredentialHeaders
|
|
2083
2272
|
attr_reader :headers
|
|
2084
2273
|
|
|
@@ -2625,29 +2814,6 @@ module Cadenya
|
|
|
2625
2814
|
end
|
|
2626
2815
|
end
|
|
2627
2816
|
|
|
2628
|
-
class ListObjectiveTasksResponse
|
|
2629
|
-
attr_reader :items, :pagination
|
|
2630
|
-
|
|
2631
|
-
def initialize(items: nil, pagination: nil)
|
|
2632
|
-
@items = items
|
|
2633
|
-
@pagination = pagination
|
|
2634
|
-
end
|
|
2635
|
-
|
|
2636
|
-
def self.from_json(data)
|
|
2637
|
-
new(
|
|
2638
|
-
items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::ObjectiveTask.from_json(item) },
|
|
2639
|
-
pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]),
|
|
2640
|
-
)
|
|
2641
|
-
end
|
|
2642
|
-
|
|
2643
|
-
def to_h
|
|
2644
|
-
{
|
|
2645
|
-
items: Util.plain(@items),
|
|
2646
|
-
pagination: Util.plain(@pagination),
|
|
2647
|
-
}.reject { |_k, v| v.nil? }
|
|
2648
|
-
end
|
|
2649
|
-
end
|
|
2650
|
-
|
|
2651
2817
|
class ListObjectiveToolCallsResponse
|
|
2652
2818
|
attr_reader :items, :pagination
|
|
2653
2819
|
|
|
@@ -3333,14 +3499,19 @@ module Cadenya
|
|
|
3333
3499
|
|
|
3334
3500
|
ModelState = ["STATE_UNSPECIFIED", "STATE_ENABLED", "STATE_DISABLED"].freeze
|
|
3335
3501
|
|
|
3502
|
+
ModelProvenance = ["PROVENANCE_UNSPECIFIED", "PROVENANCE_SYNCED_FROM_PROVIDER", "PROVENANCE_MANUALLY_ENTERED"].freeze
|
|
3503
|
+
|
|
3336
3504
|
class Model
|
|
3337
|
-
attr_reader :metadata, :spec, :info, :state
|
|
3505
|
+
attr_reader :metadata, :spec, :info, :state, :provenance, :pricing_override, :base_pricing
|
|
3338
3506
|
|
|
3339
|
-
def initialize(metadata: nil, spec: nil, info: nil, state: nil)
|
|
3507
|
+
def initialize(metadata: nil, spec: nil, info: nil, state: nil, provenance: nil, pricing_override: nil, base_pricing: nil)
|
|
3340
3508
|
@metadata = metadata
|
|
3341
3509
|
@spec = spec
|
|
3342
3510
|
@info = info
|
|
3343
3511
|
@state = state
|
|
3512
|
+
@provenance = provenance
|
|
3513
|
+
@pricing_override = pricing_override
|
|
3514
|
+
@base_pricing = base_pricing
|
|
3344
3515
|
end
|
|
3345
3516
|
|
|
3346
3517
|
def self.from_json(data)
|
|
@@ -3349,6 +3520,9 @@ module Cadenya
|
|
|
3349
3520
|
spec: data["spec"].nil? ? nil : Types::ModelSpec.from_json(data["spec"]),
|
|
3350
3521
|
info: data["info"].nil? ? nil : Types::ModelInfo.from_json(data["info"]),
|
|
3351
3522
|
state: data["state"],
|
|
3523
|
+
provenance: data["provenance"],
|
|
3524
|
+
pricing_override: data["pricingOverride"].nil? ? nil : Types::ModelPricingOverride.from_json(data["pricingOverride"]),
|
|
3525
|
+
base_pricing: data["basePricing"].nil? ? nil : Types::ModelBasePricing.from_json(data["basePricing"]),
|
|
3352
3526
|
)
|
|
3353
3527
|
end
|
|
3354
3528
|
|
|
@@ -3358,6 +3532,32 @@ module Cadenya
|
|
|
3358
3532
|
spec: Util.plain(@spec),
|
|
3359
3533
|
info: Util.plain(@info),
|
|
3360
3534
|
state: Util.plain(@state),
|
|
3535
|
+
provenance: Util.plain(@provenance),
|
|
3536
|
+
pricing_override: Util.plain(@pricing_override),
|
|
3537
|
+
base_pricing: Util.plain(@base_pricing),
|
|
3538
|
+
}.reject { |_k, v| v.nil? }
|
|
3539
|
+
end
|
|
3540
|
+
end
|
|
3541
|
+
|
|
3542
|
+
class ModelBasePricing
|
|
3543
|
+
attr_reader :input_price_per_million_tokens, :output_price_per_million_tokens
|
|
3544
|
+
|
|
3545
|
+
def initialize(input_price_per_million_tokens: nil, output_price_per_million_tokens: nil)
|
|
3546
|
+
@input_price_per_million_tokens = input_price_per_million_tokens
|
|
3547
|
+
@output_price_per_million_tokens = output_price_per_million_tokens
|
|
3548
|
+
end
|
|
3549
|
+
|
|
3550
|
+
def self.from_json(data)
|
|
3551
|
+
new(
|
|
3552
|
+
input_price_per_million_tokens: data["inputPricePerMillionTokens"],
|
|
3553
|
+
output_price_per_million_tokens: data["outputPricePerMillionTokens"],
|
|
3554
|
+
)
|
|
3555
|
+
end
|
|
3556
|
+
|
|
3557
|
+
def to_h
|
|
3558
|
+
{
|
|
3559
|
+
input_price_per_million_tokens: Util.plain(@input_price_per_million_tokens),
|
|
3560
|
+
output_price_per_million_tokens: Util.plain(@output_price_per_million_tokens),
|
|
3361
3561
|
}.reject { |_k, v| v.nil? }
|
|
3362
3562
|
end
|
|
3363
3563
|
end
|
|
@@ -3388,10 +3588,33 @@ module Cadenya
|
|
|
3388
3588
|
end
|
|
3389
3589
|
end
|
|
3390
3590
|
|
|
3591
|
+
class ModelPricingOverride
|
|
3592
|
+
attr_reader :input_price_per_million_tokens, :output_price_per_million_tokens
|
|
3593
|
+
|
|
3594
|
+
def initialize(input_price_per_million_tokens: nil, output_price_per_million_tokens: nil)
|
|
3595
|
+
@input_price_per_million_tokens = input_price_per_million_tokens
|
|
3596
|
+
@output_price_per_million_tokens = output_price_per_million_tokens
|
|
3597
|
+
end
|
|
3598
|
+
|
|
3599
|
+
def self.from_json(data)
|
|
3600
|
+
new(
|
|
3601
|
+
input_price_per_million_tokens: data["inputPricePerMillionTokens"],
|
|
3602
|
+
output_price_per_million_tokens: data["outputPricePerMillionTokens"],
|
|
3603
|
+
)
|
|
3604
|
+
end
|
|
3605
|
+
|
|
3606
|
+
def to_h
|
|
3607
|
+
{
|
|
3608
|
+
input_price_per_million_tokens: Util.plain(@input_price_per_million_tokens),
|
|
3609
|
+
output_price_per_million_tokens: Util.plain(@output_price_per_million_tokens),
|
|
3610
|
+
}.reject { |_k, v| v.nil? }
|
|
3611
|
+
end
|
|
3612
|
+
end
|
|
3613
|
+
|
|
3391
3614
|
class ModelSpec
|
|
3392
|
-
attr_reader :provider, :family, :max_input_tokens, :max_output_tokens, :input_price_per_million_tokens, :output_price_per_million_tokens, :capabilities
|
|
3615
|
+
attr_reader :provider, :family, :max_input_tokens, :max_output_tokens, :input_price_per_million_tokens, :output_price_per_million_tokens, :capabilities, :provider_model_id
|
|
3393
3616
|
|
|
3394
|
-
def initialize(provider: nil, family: nil, max_input_tokens: nil, max_output_tokens: nil, input_price_per_million_tokens: nil, output_price_per_million_tokens: nil, capabilities: nil)
|
|
3617
|
+
def initialize(provider: nil, family: nil, max_input_tokens: nil, max_output_tokens: nil, input_price_per_million_tokens: nil, output_price_per_million_tokens: nil, capabilities: nil, provider_model_id: nil)
|
|
3395
3618
|
@provider = provider
|
|
3396
3619
|
@family = family
|
|
3397
3620
|
@max_input_tokens = max_input_tokens
|
|
@@ -3399,6 +3622,7 @@ module Cadenya
|
|
|
3399
3622
|
@input_price_per_million_tokens = input_price_per_million_tokens
|
|
3400
3623
|
@output_price_per_million_tokens = output_price_per_million_tokens
|
|
3401
3624
|
@capabilities = capabilities
|
|
3625
|
+
@provider_model_id = provider_model_id
|
|
3402
3626
|
end
|
|
3403
3627
|
|
|
3404
3628
|
def self.from_json(data)
|
|
@@ -3410,6 +3634,7 @@ module Cadenya
|
|
|
3410
3634
|
input_price_per_million_tokens: data["inputPricePerMillionTokens"],
|
|
3411
3635
|
output_price_per_million_tokens: data["outputPricePerMillionTokens"],
|
|
3412
3636
|
capabilities: data["capabilities"].nil? ? nil : (data["capabilities"]).map { |item| Types.decode_ModelSpec_Capability(item) },
|
|
3637
|
+
provider_model_id: data["providerModelId"],
|
|
3413
3638
|
)
|
|
3414
3639
|
end
|
|
3415
3640
|
|
|
@@ -3422,6 +3647,7 @@ module Cadenya
|
|
|
3422
3647
|
input_price_per_million_tokens: Util.plain(@input_price_per_million_tokens),
|
|
3423
3648
|
output_price_per_million_tokens: Util.plain(@output_price_per_million_tokens),
|
|
3424
3649
|
capabilities: Util.plain(@capabilities),
|
|
3650
|
+
provider_model_id: Util.plain(@provider_model_id),
|
|
3425
3651
|
}.reject { |_k, v| v.nil? }
|
|
3426
3652
|
end
|
|
3427
3653
|
end
|
|
@@ -3476,7 +3702,7 @@ module Cadenya
|
|
|
3476
3702
|
end
|
|
3477
3703
|
end
|
|
3478
3704
|
|
|
3479
|
-
ObjectiveState = ["
|
|
3705
|
+
ObjectiveState = ["OBJECTIVE_STATE_UNSPECIFIED", "OBJECTIVE_STATE_PENDING", "OBJECTIVE_STATE_RUNNING", "OBJECTIVE_STATE_WAITING", "OBJECTIVE_STATE_FAILED", "OBJECTIVE_STATE_CANCELLED", "OBJECTIVE_STATE_FINALIZED", "OBJECTIVE_STATE_TIMED_OUT"].freeze
|
|
3480
3706
|
|
|
3481
3707
|
class Objective
|
|
3482
3708
|
attr_reader :metadata, :config_snapshot, :state, :state_message, :info, :system_prompt, :first_user_message, :parent_objective_id, :secrets, :system_prompt_data, :memory_cascade, :output, :first_user_message_data, :episodic_memory, :pinned_parameters
|
|
@@ -3813,6 +4039,8 @@ module Cadenya
|
|
|
3813
4039
|
Types::ObjectiveEventData_TimedOut.from_json(data)
|
|
3814
4040
|
when "reasoning"
|
|
3815
4041
|
Types::ObjectiveEventData_Reasoning.from_json(data)
|
|
4042
|
+
when "stateChanged"
|
|
4043
|
+
Types::ObjectiveEventData_StateChanged.from_json(data)
|
|
3816
4044
|
else
|
|
3817
4045
|
raise ArgumentError, "ObjectiveEventData: unknown type #{data["type"].inspect}"
|
|
3818
4046
|
end
|
|
@@ -3995,54 +4223,32 @@ module Cadenya
|
|
|
3995
4223
|
end
|
|
3996
4224
|
end
|
|
3997
4225
|
|
|
3998
|
-
|
|
3999
|
-
attr_reader :metadata, :data
|
|
4000
|
-
|
|
4001
|
-
def initialize(metadata: nil, data: nil)
|
|
4002
|
-
@metadata = metadata
|
|
4003
|
-
@data = data
|
|
4004
|
-
end
|
|
4005
|
-
|
|
4006
|
-
def self.from_json(data)
|
|
4007
|
-
new(
|
|
4008
|
-
metadata: data["metadata"].nil? ? nil : Types::BareMetadata.from_json(data["metadata"]),
|
|
4009
|
-
data: data["data"].nil? ? nil : Types::ObjectiveTaskData.from_json(data["data"]),
|
|
4010
|
-
)
|
|
4011
|
-
end
|
|
4226
|
+
ObjectiveStateChangedFromState = ["OBJECTIVE_STATE_UNSPECIFIED", "OBJECTIVE_STATE_PENDING", "OBJECTIVE_STATE_RUNNING", "OBJECTIVE_STATE_WAITING", "OBJECTIVE_STATE_FAILED", "OBJECTIVE_STATE_CANCELLED", "OBJECTIVE_STATE_FINALIZED", "OBJECTIVE_STATE_TIMED_OUT"].freeze
|
|
4012
4227
|
|
|
4013
|
-
|
|
4014
|
-
{
|
|
4015
|
-
metadata: Util.plain(@metadata),
|
|
4016
|
-
data: Util.plain(@data),
|
|
4017
|
-
}.reject { |_k, v| v.nil? }
|
|
4018
|
-
end
|
|
4019
|
-
end
|
|
4228
|
+
ObjectiveStateChangedToState = ["OBJECTIVE_STATE_UNSPECIFIED", "OBJECTIVE_STATE_PENDING", "OBJECTIVE_STATE_RUNNING", "OBJECTIVE_STATE_WAITING", "OBJECTIVE_STATE_FAILED", "OBJECTIVE_STATE_CANCELLED", "OBJECTIVE_STATE_FINALIZED", "OBJECTIVE_STATE_TIMED_OUT"].freeze
|
|
4020
4229
|
|
|
4021
|
-
class
|
|
4022
|
-
attr_reader :
|
|
4230
|
+
class ObjectiveStateChanged
|
|
4231
|
+
attr_reader :from_state, :to_state, :message
|
|
4023
4232
|
|
|
4024
|
-
def initialize(
|
|
4025
|
-
@
|
|
4026
|
-
@
|
|
4027
|
-
@
|
|
4028
|
-
@completed_at = completed_at
|
|
4233
|
+
def initialize(from_state: nil, to_state: nil, message: nil)
|
|
4234
|
+
@from_state = from_state
|
|
4235
|
+
@to_state = to_state
|
|
4236
|
+
@message = message
|
|
4029
4237
|
end
|
|
4030
4238
|
|
|
4031
4239
|
def self.from_json(data)
|
|
4032
4240
|
new(
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
completed_at: data["completedAt"].nil? ? nil : Time.iso8601(data["completedAt"]),
|
|
4241
|
+
from_state: data["fromState"],
|
|
4242
|
+
to_state: data["toState"],
|
|
4243
|
+
message: data["message"],
|
|
4037
4244
|
)
|
|
4038
4245
|
end
|
|
4039
4246
|
|
|
4040
4247
|
def to_h
|
|
4041
4248
|
{
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
completed_at: Util.plain(@completed_at),
|
|
4249
|
+
from_state: Util.plain(@from_state),
|
|
4250
|
+
to_state: Util.plain(@to_state),
|
|
4251
|
+
message: Util.plain(@message),
|
|
4046
4252
|
}.reject { |_k, v| v.nil? }
|
|
4047
4253
|
end
|
|
4048
4254
|
end
|
|
@@ -4280,21 +4486,24 @@ module Cadenya
|
|
|
4280
4486
|
end
|
|
4281
4487
|
|
|
4282
4488
|
class ObjectiveToolCallResult_TextBlock
|
|
4283
|
-
attr_reader :text
|
|
4489
|
+
attr_reader :text, :size_bytes
|
|
4284
4490
|
|
|
4285
|
-
def initialize(text: nil)
|
|
4491
|
+
def initialize(text: nil, size_bytes: nil)
|
|
4286
4492
|
@text = text
|
|
4493
|
+
@size_bytes = size_bytes
|
|
4287
4494
|
end
|
|
4288
4495
|
|
|
4289
4496
|
def self.from_json(data)
|
|
4290
4497
|
new(
|
|
4291
4498
|
text: data["text"],
|
|
4499
|
+
size_bytes: data["sizeBytes"],
|
|
4292
4500
|
)
|
|
4293
4501
|
end
|
|
4294
4502
|
|
|
4295
4503
|
def to_h
|
|
4296
4504
|
{
|
|
4297
4505
|
text: Util.plain(@text),
|
|
4506
|
+
size_bytes: Util.plain(@size_bytes),
|
|
4298
4507
|
}.reject { |_k, v| v.nil? }
|
|
4299
4508
|
end
|
|
4300
4509
|
end
|
|
@@ -4699,26 +4908,69 @@ module Cadenya
|
|
|
4699
4908
|
end
|
|
4700
4909
|
end
|
|
4701
4910
|
|
|
4702
|
-
|
|
4911
|
+
def self.decode_RemoveAgentVariationAssignmentRequest(data)
|
|
4912
|
+
return nil if data.nil? || data["type"].to_s.empty?
|
|
4913
|
+
case data["type"]
|
|
4914
|
+
when "toolId"
|
|
4915
|
+
Types::RemoveAgentVariationAssignmentRequest_ToolId.from_json(data)
|
|
4916
|
+
when "toolSetId"
|
|
4917
|
+
Types::RemoveAgentVariationAssignmentRequest_ToolSetId.from_json(data)
|
|
4918
|
+
when "subAgentId"
|
|
4919
|
+
Types::RemoveAgentVariationAssignmentRequest_SubAgentId.from_json(data)
|
|
4920
|
+
else
|
|
4921
|
+
raise ArgumentError, "RemoveAgentVariationAssignmentRequest: unknown type #{data["type"].inspect}"
|
|
4922
|
+
end
|
|
4923
|
+
end
|
|
4703
4924
|
|
|
4704
|
-
class
|
|
4705
|
-
attr_reader :
|
|
4925
|
+
class RemoveAgentVariationMemoryLayerRequest
|
|
4926
|
+
attr_reader :workspace_id, :agent_id, :variation_id, :memory_layer_id
|
|
4706
4927
|
|
|
4707
|
-
def initialize(
|
|
4708
|
-
@
|
|
4709
|
-
@
|
|
4928
|
+
def initialize(workspace_id: nil, agent_id: nil, variation_id: nil, memory_layer_id: nil)
|
|
4929
|
+
@workspace_id = workspace_id
|
|
4930
|
+
@agent_id = agent_id
|
|
4931
|
+
@variation_id = variation_id
|
|
4932
|
+
@memory_layer_id = memory_layer_id
|
|
4710
4933
|
end
|
|
4711
4934
|
|
|
4712
4935
|
def self.from_json(data)
|
|
4713
4936
|
new(
|
|
4714
|
-
|
|
4715
|
-
|
|
4937
|
+
workspace_id: data["workspaceId"],
|
|
4938
|
+
agent_id: data["agentId"],
|
|
4939
|
+
variation_id: data["variationId"],
|
|
4940
|
+
memory_layer_id: data["memoryLayerId"],
|
|
4716
4941
|
)
|
|
4717
4942
|
end
|
|
4718
4943
|
|
|
4719
4944
|
def to_h
|
|
4720
4945
|
{
|
|
4721
|
-
|
|
4946
|
+
workspace_id: Util.plain(@workspace_id),
|
|
4947
|
+
agent_id: Util.plain(@agent_id),
|
|
4948
|
+
variation_id: Util.plain(@variation_id),
|
|
4949
|
+
memory_layer_id: Util.plain(@memory_layer_id),
|
|
4950
|
+
}.reject { |_k, v| v.nil? }
|
|
4951
|
+
end
|
|
4952
|
+
end
|
|
4953
|
+
|
|
4954
|
+
ResolvedSecretSource = ["RESOLVED_SECRET_SOURCE_UNSPECIFIED", "RESOLVED_SECRET_SOURCE_WORKSPACE", "RESOLVED_SECRET_SOURCE_TOOLSET", "RESOLVED_SECRET_SOURCE_OBJECTIVE"].freeze
|
|
4955
|
+
|
|
4956
|
+
class ResolvedSecret
|
|
4957
|
+
attr_reader :key, :source
|
|
4958
|
+
|
|
4959
|
+
def initialize(key: nil, source: nil)
|
|
4960
|
+
@key = key
|
|
4961
|
+
@source = source
|
|
4962
|
+
end
|
|
4963
|
+
|
|
4964
|
+
def self.from_json(data)
|
|
4965
|
+
new(
|
|
4966
|
+
key: data["key"],
|
|
4967
|
+
source: data["source"],
|
|
4968
|
+
)
|
|
4969
|
+
end
|
|
4970
|
+
|
|
4971
|
+
def to_h
|
|
4972
|
+
{
|
|
4973
|
+
key: Util.plain(@key),
|
|
4722
4974
|
source: Util.plain(@source),
|
|
4723
4975
|
}.reject { |_k, v| v.nil? }
|
|
4724
4976
|
end
|
|
@@ -6533,14 +6785,15 @@ module Cadenya
|
|
|
6533
6785
|
end
|
|
6534
6786
|
|
|
6535
6787
|
class UpdateAIProviderKeyRequest
|
|
6536
|
-
attr_reader :workspace_id, :id, :metadata, :spec, :update_mask
|
|
6788
|
+
attr_reader :workspace_id, :id, :metadata, :spec, :update_mask, :credential_patch
|
|
6537
6789
|
|
|
6538
|
-
def initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil)
|
|
6790
|
+
def initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil, credential_patch: nil)
|
|
6539
6791
|
@workspace_id = workspace_id
|
|
6540
6792
|
@id = id
|
|
6541
6793
|
@metadata = metadata
|
|
6542
6794
|
@spec = spec
|
|
6543
6795
|
@update_mask = update_mask
|
|
6796
|
+
@credential_patch = credential_patch
|
|
6544
6797
|
end
|
|
6545
6798
|
|
|
6546
6799
|
def self.from_json(data)
|
|
@@ -6550,6 +6803,7 @@ module Cadenya
|
|
|
6550
6803
|
metadata: data["metadata"].nil? ? nil : Types::UpdateResourceMetadata.from_json(data["metadata"]),
|
|
6551
6804
|
spec: data["spec"].nil? ? nil : Types::AIProviderKeySpec.from_json(data["spec"]),
|
|
6552
6805
|
update_mask: data["updateMask"],
|
|
6806
|
+
credential_patch: data["credentialPatch"].nil? ? nil : Types::AIProviderCredentialPatch.from_json(data["credentialPatch"]),
|
|
6553
6807
|
)
|
|
6554
6808
|
end
|
|
6555
6809
|
|
|
@@ -6560,6 +6814,7 @@ module Cadenya
|
|
|
6560
6814
|
metadata: Util.plain(@metadata),
|
|
6561
6815
|
spec: Util.plain(@spec),
|
|
6562
6816
|
update_mask: Util.plain(@update_mask),
|
|
6817
|
+
credential_patch: Util.plain(@credential_patch),
|
|
6563
6818
|
}.reject { |_k, v| v.nil? }
|
|
6564
6819
|
end
|
|
6565
6820
|
end
|
|
@@ -6690,13 +6945,13 @@ module Cadenya
|
|
|
6690
6945
|
end
|
|
6691
6946
|
|
|
6692
6947
|
class UpdateAgentVariationMemoryLayerRequest
|
|
6693
|
-
attr_reader :workspace_id, :agent_id, :variation_id, :
|
|
6948
|
+
attr_reader :workspace_id, :agent_id, :variation_id, :memory_layer_id, :position
|
|
6694
6949
|
|
|
6695
|
-
def initialize(workspace_id: nil, agent_id: nil, variation_id: nil,
|
|
6950
|
+
def initialize(workspace_id: nil, agent_id: nil, variation_id: nil, memory_layer_id: nil, position: nil)
|
|
6696
6951
|
@workspace_id = workspace_id
|
|
6697
6952
|
@agent_id = agent_id
|
|
6698
6953
|
@variation_id = variation_id
|
|
6699
|
-
@
|
|
6954
|
+
@memory_layer_id = memory_layer_id
|
|
6700
6955
|
@position = position
|
|
6701
6956
|
end
|
|
6702
6957
|
|
|
@@ -6705,7 +6960,7 @@ module Cadenya
|
|
|
6705
6960
|
workspace_id: data["workspaceId"],
|
|
6706
6961
|
agent_id: data["agentId"],
|
|
6707
6962
|
variation_id: data["variationId"],
|
|
6708
|
-
|
|
6963
|
+
memory_layer_id: data["memoryLayerId"],
|
|
6709
6964
|
position: data["position"],
|
|
6710
6965
|
)
|
|
6711
6966
|
end
|
|
@@ -6715,7 +6970,7 @@ module Cadenya
|
|
|
6715
6970
|
workspace_id: Util.plain(@workspace_id),
|
|
6716
6971
|
agent_id: Util.plain(@agent_id),
|
|
6717
6972
|
variation_id: Util.plain(@variation_id),
|
|
6718
|
-
|
|
6973
|
+
memory_layer_id: Util.plain(@memory_layer_id),
|
|
6719
6974
|
position: Util.plain(@position),
|
|
6720
6975
|
}.reject { |_k, v| v.nil? }
|
|
6721
6976
|
end
|
|
@@ -6823,6 +7078,41 @@ module Cadenya
|
|
|
6823
7078
|
end
|
|
6824
7079
|
end
|
|
6825
7080
|
|
|
7081
|
+
class UpdateModelRequest
|
|
7082
|
+
attr_reader :workspace_id, :id, :metadata, :spec, :pricing_override, :update_mask
|
|
7083
|
+
|
|
7084
|
+
def initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, pricing_override: nil, update_mask: nil)
|
|
7085
|
+
@workspace_id = workspace_id
|
|
7086
|
+
@id = id
|
|
7087
|
+
@metadata = metadata
|
|
7088
|
+
@spec = spec
|
|
7089
|
+
@pricing_override = pricing_override
|
|
7090
|
+
@update_mask = update_mask
|
|
7091
|
+
end
|
|
7092
|
+
|
|
7093
|
+
def self.from_json(data)
|
|
7094
|
+
new(
|
|
7095
|
+
workspace_id: data["workspaceId"],
|
|
7096
|
+
id: data["id"],
|
|
7097
|
+
metadata: data["metadata"].nil? ? nil : Types::UpdateResourceMetadata.from_json(data["metadata"]),
|
|
7098
|
+
spec: data["spec"].nil? ? nil : Types::ModelSpec.from_json(data["spec"]),
|
|
7099
|
+
pricing_override: data["pricingOverride"].nil? ? nil : Types::ModelPricingOverride.from_json(data["pricingOverride"]),
|
|
7100
|
+
update_mask: data["updateMask"],
|
|
7101
|
+
)
|
|
7102
|
+
end
|
|
7103
|
+
|
|
7104
|
+
def to_h
|
|
7105
|
+
{
|
|
7106
|
+
workspace_id: Util.plain(@workspace_id),
|
|
7107
|
+
id: Util.plain(@id),
|
|
7108
|
+
metadata: Util.plain(@metadata),
|
|
7109
|
+
spec: Util.plain(@spec),
|
|
7110
|
+
pricing_override: Util.plain(@pricing_override),
|
|
7111
|
+
update_mask: Util.plain(@update_mask),
|
|
7112
|
+
}.reject { |_k, v| v.nil? }
|
|
7113
|
+
end
|
|
7114
|
+
end
|
|
7115
|
+
|
|
6826
7116
|
class UpdateResourceMetadata
|
|
6827
7117
|
attr_reader :name, :external_id, :labels
|
|
6828
7118
|
|
|
@@ -7150,43 +7440,63 @@ module Cadenya
|
|
|
7150
7440
|
def self.decode_VariationAssignment(data)
|
|
7151
7441
|
return nil if data.nil? || data["type"].to_s.empty?
|
|
7152
7442
|
case data["type"]
|
|
7153
|
-
when "
|
|
7154
|
-
Types::
|
|
7155
|
-
when "
|
|
7156
|
-
Types::
|
|
7157
|
-
when "
|
|
7158
|
-
Types::
|
|
7443
|
+
when "toolId"
|
|
7444
|
+
Types::VariationAssignment_ToolId.from_json(data)
|
|
7445
|
+
when "toolSetId"
|
|
7446
|
+
Types::VariationAssignment_ToolSetId.from_json(data)
|
|
7447
|
+
when "subAgentId"
|
|
7448
|
+
Types::VariationAssignment_SubAgentId.from_json(data)
|
|
7159
7449
|
else
|
|
7160
7450
|
raise ArgumentError, "VariationAssignment: unknown type #{data["type"].inspect}"
|
|
7161
7451
|
end
|
|
7162
7452
|
end
|
|
7163
7453
|
|
|
7164
7454
|
class VariationMemoryLayerAssignment
|
|
7165
|
-
attr_reader :
|
|
7455
|
+
attr_reader :memory_layer_id, :position
|
|
7166
7456
|
|
|
7167
|
-
def initialize(
|
|
7168
|
-
@
|
|
7169
|
-
@memory_layer = memory_layer
|
|
7457
|
+
def initialize(memory_layer_id: nil, position: nil)
|
|
7458
|
+
@memory_layer_id = memory_layer_id
|
|
7170
7459
|
@position = position
|
|
7171
7460
|
end
|
|
7172
7461
|
|
|
7173
7462
|
def self.from_json(data)
|
|
7174
7463
|
new(
|
|
7175
|
-
|
|
7176
|
-
memory_layer: data["memoryLayer"].nil? ? nil : Types::BareMetadata.from_json(data["memoryLayer"]),
|
|
7464
|
+
memory_layer_id: data["memoryLayerId"],
|
|
7177
7465
|
position: data["position"],
|
|
7178
7466
|
)
|
|
7179
7467
|
end
|
|
7180
7468
|
|
|
7181
7469
|
def to_h
|
|
7182
7470
|
{
|
|
7183
|
-
|
|
7184
|
-
memory_layer: Util.plain(@memory_layer),
|
|
7471
|
+
memory_layer_id: Util.plain(@memory_layer_id),
|
|
7185
7472
|
position: Util.plain(@position),
|
|
7186
7473
|
}.reject { |_k, v| v.nil? }
|
|
7187
7474
|
end
|
|
7188
7475
|
end
|
|
7189
7476
|
|
|
7477
|
+
class VertexConfig
|
|
7478
|
+
attr_reader :project_id, :location
|
|
7479
|
+
|
|
7480
|
+
def initialize(project_id: nil, location: nil)
|
|
7481
|
+
@project_id = project_id
|
|
7482
|
+
@location = location
|
|
7483
|
+
end
|
|
7484
|
+
|
|
7485
|
+
def self.from_json(data)
|
|
7486
|
+
new(
|
|
7487
|
+
project_id: data["projectId"],
|
|
7488
|
+
location: data["location"],
|
|
7489
|
+
)
|
|
7490
|
+
end
|
|
7491
|
+
|
|
7492
|
+
def to_h
|
|
7493
|
+
{
|
|
7494
|
+
project_id: Util.plain(@project_id),
|
|
7495
|
+
location: Util.plain(@location),
|
|
7496
|
+
}.reject { |_k, v| v.nil? }
|
|
7497
|
+
end
|
|
7498
|
+
end
|
|
7499
|
+
|
|
7190
7500
|
class WebhookDelivery
|
|
7191
7501
|
attr_reader :metadata, :data
|
|
7192
7502
|
|
|
@@ -7212,7 +7522,7 @@ module Cadenya
|
|
|
7212
7522
|
|
|
7213
7523
|
WebhookDeliveryDataStatus = ["WEBHOOK_DELIVERY_STATUS_UNSPECIFIED", "WEBHOOK_DELIVERY_STATUS_PENDING", "WEBHOOK_DELIVERY_STATUS_COMPLETED", "WEBHOOK_DELIVERY_STATUS_FAILED", "WEBHOOK_DELIVERY_STATUS_DISABLED"].freeze
|
|
7214
7524
|
|
|
7215
|
-
WebhookDeliveryDataEventType = ["OBJECTIVE_EVENT_TYPE_UNSPECIFIED", "OBJECTIVE_EVENT_TYPE_USER_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVED", "OBJECTIVE_EVENT_TYPE_TOOL_DENIED", "OBJECTIVE_EVENT_TYPE_TOOL_CALLED", "OBJECTIVE_EVENT_TYPE_ERROR", "OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_RESULT", "OBJECTIVE_EVENT_TYPE_TOOL_ERROR", "OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED", "OBJECTIVE_EVENT_TYPE_MEMORY_READ", "OBJECTIVE_EVENT_TYPE_CANCELLED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED", "OBJECTIVE_EVENT_TYPE_FINALIZED", "OBJECTIVE_EVENT_TYPE_NOTICE", "OBJECTIVE_EVENT_TYPE_TIMED_OUT", "OBJECTIVE_EVENT_TYPE_REASONING"].freeze
|
|
7525
|
+
WebhookDeliveryDataEventType = ["OBJECTIVE_EVENT_TYPE_UNSPECIFIED", "OBJECTIVE_EVENT_TYPE_USER_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVED", "OBJECTIVE_EVENT_TYPE_TOOL_DENIED", "OBJECTIVE_EVENT_TYPE_TOOL_CALLED", "OBJECTIVE_EVENT_TYPE_ERROR", "OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_RESULT", "OBJECTIVE_EVENT_TYPE_TOOL_ERROR", "OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED", "OBJECTIVE_EVENT_TYPE_MEMORY_READ", "OBJECTIVE_EVENT_TYPE_CANCELLED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED", "OBJECTIVE_EVENT_TYPE_FINALIZED", "OBJECTIVE_EVENT_TYPE_NOTICE", "OBJECTIVE_EVENT_TYPE_TIMED_OUT", "OBJECTIVE_EVENT_TYPE_REASONING", "OBJECTIVE_EVENT_TYPE_STATE_CHANGED"].freeze
|
|
7216
7526
|
|
|
7217
7527
|
class WebhookDeliveryData
|
|
7218
7528
|
attr_reader :agent_id, :objective_id, :objective_event_id, :webhook_url, :webhook_id, :status, :attempt_count, :last_attempt_at, :http_status_code, :error_message, :latency_ms, :event_type, :response_headers, :response_content_length
|
|
@@ -7725,80 +8035,71 @@ module Cadenya
|
|
|
7725
8035
|
end
|
|
7726
8036
|
end
|
|
7727
8037
|
|
|
7728
|
-
class
|
|
7729
|
-
attr_reader :type, :
|
|
8038
|
+
class VariationAssignment_ToolId
|
|
8039
|
+
attr_reader :type, :tool_id
|
|
7730
8040
|
|
|
7731
|
-
def initialize(type: nil,
|
|
8041
|
+
def initialize(type: nil, tool_id: nil)
|
|
7732
8042
|
@type = type
|
|
7733
|
-
@
|
|
7734
|
-
@id = id
|
|
8043
|
+
@tool_id = tool_id
|
|
7735
8044
|
end
|
|
7736
8045
|
|
|
7737
8046
|
def self.from_json(data)
|
|
7738
8047
|
new(
|
|
7739
8048
|
type: data["type"],
|
|
7740
|
-
|
|
7741
|
-
id: data["id"],
|
|
8049
|
+
tool_id: data["toolId"],
|
|
7742
8050
|
)
|
|
7743
8051
|
end
|
|
7744
8052
|
|
|
7745
8053
|
def to_h
|
|
7746
8054
|
{
|
|
7747
8055
|
type: Util.plain(@type),
|
|
7748
|
-
|
|
7749
|
-
id: Util.plain(@id),
|
|
8056
|
+
tool_id: Util.plain(@tool_id),
|
|
7750
8057
|
}.reject { |_k, v| v.nil? }
|
|
7751
8058
|
end
|
|
7752
8059
|
end
|
|
7753
8060
|
|
|
7754
|
-
class
|
|
7755
|
-
attr_reader :type, :
|
|
8061
|
+
class VariationAssignment_ToolSetId
|
|
8062
|
+
attr_reader :type, :tool_set_id
|
|
7756
8063
|
|
|
7757
|
-
def initialize(type: nil,
|
|
8064
|
+
def initialize(type: nil, tool_set_id: nil)
|
|
7758
8065
|
@type = type
|
|
7759
|
-
@
|
|
7760
|
-
@id = id
|
|
8066
|
+
@tool_set_id = tool_set_id
|
|
7761
8067
|
end
|
|
7762
8068
|
|
|
7763
8069
|
def self.from_json(data)
|
|
7764
8070
|
new(
|
|
7765
8071
|
type: data["type"],
|
|
7766
|
-
|
|
7767
|
-
id: data["id"],
|
|
8072
|
+
tool_set_id: data["toolSetId"],
|
|
7768
8073
|
)
|
|
7769
8074
|
end
|
|
7770
8075
|
|
|
7771
8076
|
def to_h
|
|
7772
8077
|
{
|
|
7773
8078
|
type: Util.plain(@type),
|
|
7774
|
-
|
|
7775
|
-
id: Util.plain(@id),
|
|
8079
|
+
tool_set_id: Util.plain(@tool_set_id),
|
|
7776
8080
|
}.reject { |_k, v| v.nil? }
|
|
7777
8081
|
end
|
|
7778
8082
|
end
|
|
7779
8083
|
|
|
7780
|
-
class
|
|
7781
|
-
attr_reader :type, :
|
|
8084
|
+
class VariationAssignment_SubAgentId
|
|
8085
|
+
attr_reader :type, :sub_agent_id
|
|
7782
8086
|
|
|
7783
|
-
def initialize(type: nil,
|
|
8087
|
+
def initialize(type: nil, sub_agent_id: nil)
|
|
7784
8088
|
@type = type
|
|
7785
|
-
@
|
|
7786
|
-
@id = id
|
|
8089
|
+
@sub_agent_id = sub_agent_id
|
|
7787
8090
|
end
|
|
7788
8091
|
|
|
7789
8092
|
def self.from_json(data)
|
|
7790
8093
|
new(
|
|
7791
8094
|
type: data["type"],
|
|
7792
|
-
|
|
7793
|
-
id: data["id"],
|
|
8095
|
+
sub_agent_id: data["subAgentId"],
|
|
7794
8096
|
)
|
|
7795
8097
|
end
|
|
7796
8098
|
|
|
7797
8099
|
def to_h
|
|
7798
8100
|
{
|
|
7799
8101
|
type: Util.plain(@type),
|
|
7800
|
-
|
|
7801
|
-
id: Util.plain(@id),
|
|
8102
|
+
sub_agent_id: Util.plain(@sub_agent_id),
|
|
7802
8103
|
}.reject { |_k, v| v.nil? }
|
|
7803
8104
|
end
|
|
7804
8105
|
end
|
|
@@ -8958,6 +9259,29 @@ module Cadenya
|
|
|
8958
9259
|
end
|
|
8959
9260
|
end
|
|
8960
9261
|
|
|
9262
|
+
class ObjectiveEventData_StateChanged
|
|
9263
|
+
attr_reader :type, :state_changed
|
|
9264
|
+
|
|
9265
|
+
def initialize(type: nil, state_changed: nil)
|
|
9266
|
+
@type = type
|
|
9267
|
+
@state_changed = state_changed
|
|
9268
|
+
end
|
|
9269
|
+
|
|
9270
|
+
def self.from_json(data)
|
|
9271
|
+
new(
|
|
9272
|
+
type: data["type"],
|
|
9273
|
+
state_changed: data["stateChanged"].nil? ? nil : Types::ObjectiveStateChanged.from_json(data["stateChanged"]),
|
|
9274
|
+
)
|
|
9275
|
+
end
|
|
9276
|
+
|
|
9277
|
+
def to_h
|
|
9278
|
+
{
|
|
9279
|
+
type: Util.plain(@type),
|
|
9280
|
+
state_changed: Util.plain(@state_changed),
|
|
9281
|
+
}.reject { |_k, v| v.nil? }
|
|
9282
|
+
end
|
|
9283
|
+
end
|
|
9284
|
+
|
|
8961
9285
|
class CallableTool_Tool
|
|
8962
9286
|
attr_reader :type, :tool
|
|
8963
9287
|
|
|
@@ -9250,6 +9574,102 @@ module Cadenya
|
|
|
9250
9574
|
end
|
|
9251
9575
|
end
|
|
9252
9576
|
|
|
9577
|
+
class RemoveAgentVariationAssignmentRequest_ToolId
|
|
9578
|
+
attr_reader :type, :tool_id, :workspace_id, :agent_id, :variation_id
|
|
9579
|
+
|
|
9580
|
+
def initialize(type: nil, tool_id: nil, workspace_id: nil, agent_id: nil, variation_id: nil)
|
|
9581
|
+
@type = type
|
|
9582
|
+
@tool_id = tool_id
|
|
9583
|
+
@workspace_id = workspace_id
|
|
9584
|
+
@agent_id = agent_id
|
|
9585
|
+
@variation_id = variation_id
|
|
9586
|
+
end
|
|
9587
|
+
|
|
9588
|
+
def self.from_json(data)
|
|
9589
|
+
new(
|
|
9590
|
+
type: data["type"],
|
|
9591
|
+
tool_id: data["toolId"],
|
|
9592
|
+
workspace_id: data["workspaceId"],
|
|
9593
|
+
agent_id: data["agentId"],
|
|
9594
|
+
variation_id: data["variationId"],
|
|
9595
|
+
)
|
|
9596
|
+
end
|
|
9597
|
+
|
|
9598
|
+
def to_h
|
|
9599
|
+
{
|
|
9600
|
+
type: Util.plain(@type),
|
|
9601
|
+
tool_id: Util.plain(@tool_id),
|
|
9602
|
+
workspace_id: Util.plain(@workspace_id),
|
|
9603
|
+
agent_id: Util.plain(@agent_id),
|
|
9604
|
+
variation_id: Util.plain(@variation_id),
|
|
9605
|
+
}.reject { |_k, v| v.nil? }
|
|
9606
|
+
end
|
|
9607
|
+
end
|
|
9608
|
+
|
|
9609
|
+
class RemoveAgentVariationAssignmentRequest_ToolSetId
|
|
9610
|
+
attr_reader :type, :tool_set_id, :workspace_id, :agent_id, :variation_id
|
|
9611
|
+
|
|
9612
|
+
def initialize(type: nil, tool_set_id: nil, workspace_id: nil, agent_id: nil, variation_id: nil)
|
|
9613
|
+
@type = type
|
|
9614
|
+
@tool_set_id = tool_set_id
|
|
9615
|
+
@workspace_id = workspace_id
|
|
9616
|
+
@agent_id = agent_id
|
|
9617
|
+
@variation_id = variation_id
|
|
9618
|
+
end
|
|
9619
|
+
|
|
9620
|
+
def self.from_json(data)
|
|
9621
|
+
new(
|
|
9622
|
+
type: data["type"],
|
|
9623
|
+
tool_set_id: data["toolSetId"],
|
|
9624
|
+
workspace_id: data["workspaceId"],
|
|
9625
|
+
agent_id: data["agentId"],
|
|
9626
|
+
variation_id: data["variationId"],
|
|
9627
|
+
)
|
|
9628
|
+
end
|
|
9629
|
+
|
|
9630
|
+
def to_h
|
|
9631
|
+
{
|
|
9632
|
+
type: Util.plain(@type),
|
|
9633
|
+
tool_set_id: Util.plain(@tool_set_id),
|
|
9634
|
+
workspace_id: Util.plain(@workspace_id),
|
|
9635
|
+
agent_id: Util.plain(@agent_id),
|
|
9636
|
+
variation_id: Util.plain(@variation_id),
|
|
9637
|
+
}.reject { |_k, v| v.nil? }
|
|
9638
|
+
end
|
|
9639
|
+
end
|
|
9640
|
+
|
|
9641
|
+
class RemoveAgentVariationAssignmentRequest_SubAgentId
|
|
9642
|
+
attr_reader :type, :sub_agent_id, :workspace_id, :agent_id, :variation_id
|
|
9643
|
+
|
|
9644
|
+
def initialize(type: nil, sub_agent_id: nil, workspace_id: nil, agent_id: nil, variation_id: nil)
|
|
9645
|
+
@type = type
|
|
9646
|
+
@sub_agent_id = sub_agent_id
|
|
9647
|
+
@workspace_id = workspace_id
|
|
9648
|
+
@agent_id = agent_id
|
|
9649
|
+
@variation_id = variation_id
|
|
9650
|
+
end
|
|
9651
|
+
|
|
9652
|
+
def self.from_json(data)
|
|
9653
|
+
new(
|
|
9654
|
+
type: data["type"],
|
|
9655
|
+
sub_agent_id: data["subAgentId"],
|
|
9656
|
+
workspace_id: data["workspaceId"],
|
|
9657
|
+
agent_id: data["agentId"],
|
|
9658
|
+
variation_id: data["variationId"],
|
|
9659
|
+
)
|
|
9660
|
+
end
|
|
9661
|
+
|
|
9662
|
+
def to_h
|
|
9663
|
+
{
|
|
9664
|
+
type: Util.plain(@type),
|
|
9665
|
+
sub_agent_id: Util.plain(@sub_agent_id),
|
|
9666
|
+
workspace_id: Util.plain(@workspace_id),
|
|
9667
|
+
agent_id: Util.plain(@agent_id),
|
|
9668
|
+
variation_id: Util.plain(@variation_id),
|
|
9669
|
+
}.reject { |_k, v| v.nil? }
|
|
9670
|
+
end
|
|
9671
|
+
end
|
|
9672
|
+
|
|
9253
9673
|
class AIProviderCredential_ApiKey
|
|
9254
9674
|
attr_reader :type, :api_key
|
|
9255
9675
|
|
|
@@ -9296,6 +9716,52 @@ module Cadenya
|
|
|
9296
9716
|
end
|
|
9297
9717
|
end
|
|
9298
9718
|
|
|
9719
|
+
class AIProviderCredential_GoogleServiceAccount
|
|
9720
|
+
attr_reader :type, :google_service_account
|
|
9721
|
+
|
|
9722
|
+
def initialize(type: nil, google_service_account: nil)
|
|
9723
|
+
@type = type
|
|
9724
|
+
@google_service_account = google_service_account
|
|
9725
|
+
end
|
|
9726
|
+
|
|
9727
|
+
def self.from_json(data)
|
|
9728
|
+
new(
|
|
9729
|
+
type: data["type"],
|
|
9730
|
+
google_service_account: data["googleServiceAccount"].nil? ? nil : Types::CredentialGoogleServiceAccount.from_json(data["googleServiceAccount"]),
|
|
9731
|
+
)
|
|
9732
|
+
end
|
|
9733
|
+
|
|
9734
|
+
def to_h
|
|
9735
|
+
{
|
|
9736
|
+
type: Util.plain(@type),
|
|
9737
|
+
google_service_account: Util.plain(@google_service_account),
|
|
9738
|
+
}.reject { |_k, v| v.nil? }
|
|
9739
|
+
end
|
|
9740
|
+
end
|
|
9741
|
+
|
|
9742
|
+
class AIProviderCredential_AwsAccessKey
|
|
9743
|
+
attr_reader :type, :aws_access_key
|
|
9744
|
+
|
|
9745
|
+
def initialize(type: nil, aws_access_key: nil)
|
|
9746
|
+
@type = type
|
|
9747
|
+
@aws_access_key = aws_access_key
|
|
9748
|
+
end
|
|
9749
|
+
|
|
9750
|
+
def self.from_json(data)
|
|
9751
|
+
new(
|
|
9752
|
+
type: data["type"],
|
|
9753
|
+
aws_access_key: data["awsAccessKey"].nil? ? nil : Types::CredentialAWSAccessKey.from_json(data["awsAccessKey"]),
|
|
9754
|
+
)
|
|
9755
|
+
end
|
|
9756
|
+
|
|
9757
|
+
def to_h
|
|
9758
|
+
{
|
|
9759
|
+
type: Util.plain(@type),
|
|
9760
|
+
aws_access_key: Util.plain(@aws_access_key),
|
|
9761
|
+
}.reject { |_k, v| v.nil? }
|
|
9762
|
+
end
|
|
9763
|
+
end
|
|
9764
|
+
|
|
9299
9765
|
class AIProviderConfig_Openrouter
|
|
9300
9766
|
attr_reader :type, :openrouter
|
|
9301
9767
|
|
|
@@ -9365,6 +9831,52 @@ module Cadenya
|
|
|
9365
9831
|
end
|
|
9366
9832
|
end
|
|
9367
9833
|
|
|
9834
|
+
class AIProviderConfig_Vertex
|
|
9835
|
+
attr_reader :type, :vertex
|
|
9836
|
+
|
|
9837
|
+
def initialize(type: nil, vertex: nil)
|
|
9838
|
+
@type = type
|
|
9839
|
+
@vertex = vertex
|
|
9840
|
+
end
|
|
9841
|
+
|
|
9842
|
+
def self.from_json(data)
|
|
9843
|
+
new(
|
|
9844
|
+
type: data["type"],
|
|
9845
|
+
vertex: data["vertex"].nil? ? nil : Types::VertexConfig.from_json(data["vertex"]),
|
|
9846
|
+
)
|
|
9847
|
+
end
|
|
9848
|
+
|
|
9849
|
+
def to_h
|
|
9850
|
+
{
|
|
9851
|
+
type: Util.plain(@type),
|
|
9852
|
+
vertex: Util.plain(@vertex),
|
|
9853
|
+
}.reject { |_k, v| v.nil? }
|
|
9854
|
+
end
|
|
9855
|
+
end
|
|
9856
|
+
|
|
9857
|
+
class AIProviderConfig_Bedrock
|
|
9858
|
+
attr_reader :type, :bedrock
|
|
9859
|
+
|
|
9860
|
+
def initialize(type: nil, bedrock: nil)
|
|
9861
|
+
@type = type
|
|
9862
|
+
@bedrock = bedrock
|
|
9863
|
+
end
|
|
9864
|
+
|
|
9865
|
+
def self.from_json(data)
|
|
9866
|
+
new(
|
|
9867
|
+
type: data["type"],
|
|
9868
|
+
bedrock: data["bedrock"].nil? ? nil : Types::BedrockConfig.from_json(data["bedrock"]),
|
|
9869
|
+
)
|
|
9870
|
+
end
|
|
9871
|
+
|
|
9872
|
+
def to_h
|
|
9873
|
+
{
|
|
9874
|
+
type: Util.plain(@type),
|
|
9875
|
+
bedrock: Util.plain(@bedrock),
|
|
9876
|
+
}.reject { |_k, v| v.nil? }
|
|
9877
|
+
end
|
|
9878
|
+
end
|
|
9879
|
+
|
|
9368
9880
|
class ModelSpec_Capability_Temperature
|
|
9369
9881
|
attr_reader :type, :temperature
|
|
9370
9882
|
|
|
@@ -9532,13 +10044,13 @@ module Cadenya
|
|
|
9532
10044
|
|
|
9533
10045
|
AgentServiceListAgentFeedbackSentiment = ["FEEDBACK_SENTIMENT_UNSPECIFIED", "FEEDBACK_SENTIMENT_POSITIVE", "FEEDBACK_SENTIMENT_NEGATIVE"].freeze
|
|
9534
10046
|
|
|
9535
|
-
AgentServiceListAgentWebhookDeliveriesEventType = ["OBJECTIVE_EVENT_TYPE_UNSPECIFIED", "OBJECTIVE_EVENT_TYPE_USER_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVED", "OBJECTIVE_EVENT_TYPE_TOOL_DENIED", "OBJECTIVE_EVENT_TYPE_TOOL_CALLED", "OBJECTIVE_EVENT_TYPE_ERROR", "OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_RESULT", "OBJECTIVE_EVENT_TYPE_TOOL_ERROR", "OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED", "OBJECTIVE_EVENT_TYPE_MEMORY_READ", "OBJECTIVE_EVENT_TYPE_CANCELLED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED", "OBJECTIVE_EVENT_TYPE_FINALIZED", "OBJECTIVE_EVENT_TYPE_NOTICE", "OBJECTIVE_EVENT_TYPE_TIMED_OUT", "OBJECTIVE_EVENT_TYPE_REASONING"].freeze
|
|
10047
|
+
AgentServiceListAgentWebhookDeliveriesEventType = ["OBJECTIVE_EVENT_TYPE_UNSPECIFIED", "OBJECTIVE_EVENT_TYPE_USER_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED", "OBJECTIVE_EVENT_TYPE_TOOL_APPROVED", "OBJECTIVE_EVENT_TYPE_TOOL_DENIED", "OBJECTIVE_EVENT_TYPE_TOOL_CALLED", "OBJECTIVE_EVENT_TYPE_ERROR", "OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE", "OBJECTIVE_EVENT_TYPE_TOOL_RESULT", "OBJECTIVE_EVENT_TYPE_TOOL_ERROR", "OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED", "OBJECTIVE_EVENT_TYPE_MEMORY_READ", "OBJECTIVE_EVENT_TYPE_CANCELLED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED", "OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED", "OBJECTIVE_EVENT_TYPE_FINALIZED", "OBJECTIVE_EVENT_TYPE_NOTICE", "OBJECTIVE_EVENT_TYPE_TIMED_OUT", "OBJECTIVE_EVENT_TYPE_REASONING", "OBJECTIVE_EVENT_TYPE_STATE_CHANGED"].freeze
|
|
9536
10048
|
|
|
9537
10049
|
MemoryServiceListMemoryLayersType = ["MEMORY_LAYER_TYPE_UNSPECIFIED", "MEMORY_LAYER_TYPE_EPISODIC", "MEMORY_LAYER_TYPE_SKILLS"].freeze
|
|
9538
10050
|
|
|
9539
10051
|
ModelServiceListModelsState = ["STATE_UNSPECIFIED", "STATE_ENABLED", "STATE_DISABLED"].freeze
|
|
9540
10052
|
|
|
9541
|
-
ObjectiveServiceListObjectivesState = ["
|
|
10053
|
+
ObjectiveServiceListObjectivesState = ["OBJECTIVE_STATE_UNSPECIFIED", "OBJECTIVE_STATE_PENDING", "OBJECTIVE_STATE_RUNNING", "OBJECTIVE_STATE_WAITING", "OBJECTIVE_STATE_FAILED", "OBJECTIVE_STATE_CANCELLED", "OBJECTIVE_STATE_FINALIZED", "OBJECTIVE_STATE_TIMED_OUT"].freeze
|
|
9542
10054
|
|
|
9543
10055
|
ObjectiveServiceListObjectiveToolCallsStatus = ["TOOL_CALL_STATUS_UNSPECIFIED", "TOOL_CALL_STATUS_AUTO_APPROVED", "TOOL_CALL_STATUS_WAITING_FOR_APPROVAL", "TOOL_CALL_STATUS_APPROVED", "TOOL_CALL_STATUS_DENIED"].freeze
|
|
9544
10056
|
|
|
@@ -9600,6 +10112,10 @@ module Cadenya
|
|
|
9600
10112
|
(->(_v) { encode_AIProviderConfig_Openai(_v) }).call(data)
|
|
9601
10113
|
when "openaiCompatible"
|
|
9602
10114
|
(->(_v) { encode_AIProviderConfig_OpenaiCompatible(_v) }).call(data)
|
|
10115
|
+
when "vertex"
|
|
10116
|
+
(->(_v) { encode_AIProviderConfig_Vertex(_v) }).call(data)
|
|
10117
|
+
when "bedrock"
|
|
10118
|
+
(->(_v) { encode_AIProviderConfig_Bedrock(_v) }).call(data)
|
|
9603
10119
|
else
|
|
9604
10120
|
data
|
|
9605
10121
|
end
|
|
@@ -9616,11 +10132,25 @@ module Cadenya
|
|
|
9616
10132
|
(->(_v) { encode_AIProviderCredential_ApiKey(_v) }).call(data)
|
|
9617
10133
|
when "headers"
|
|
9618
10134
|
(->(_v) { encode_AIProviderCredential_Headers(_v) }).call(data)
|
|
10135
|
+
when "googleServiceAccount"
|
|
10136
|
+
(->(_v) { encode_AIProviderCredential_GoogleServiceAccount(_v) }).call(data)
|
|
10137
|
+
when "awsAccessKey"
|
|
10138
|
+
(->(_v) { encode_AIProviderCredential_AwsAccessKey(_v) }).call(data)
|
|
9619
10139
|
else
|
|
9620
10140
|
data
|
|
9621
10141
|
end
|
|
9622
10142
|
end
|
|
9623
10143
|
|
|
10144
|
+
ENCODE_AI_PROVIDER_CREDENTIAL_PATCH = {
|
|
10145
|
+
"credentials" => ["credentials", ->(_v) { encode_AIProviderCredential(_v) }],
|
|
10146
|
+
"clear_fields" => ["clearFields", nil],
|
|
10147
|
+
"clearFields" => ["clearFields", nil],
|
|
10148
|
+
}.freeze
|
|
10149
|
+
|
|
10150
|
+
def self.encode_AIProviderCredentialPatch(data)
|
|
10151
|
+
encode_fields(ENCODE_AI_PROVIDER_CREDENTIAL_PATCH, data)
|
|
10152
|
+
end
|
|
10153
|
+
|
|
9624
10154
|
ENCODE_AI_PROVIDER_KEY_SPEC = {
|
|
9625
10155
|
"provider" => ["provider", nil],
|
|
9626
10156
|
"credentials" => ["credentials", ->(_v) { encode_AIProviderCredential(_v) }],
|
|
@@ -9721,6 +10251,9 @@ module Cadenya
|
|
|
9721
10251
|
"compactionConfig" => ["compactionConfig", ->(_v) { encode_AgentVariationSpec_CompactionConfig(_v) }],
|
|
9722
10252
|
"first_user_message_template" => ["firstUserMessageTemplate", nil],
|
|
9723
10253
|
"firstUserMessageTemplate" => ["firstUserMessageTemplate", nil],
|
|
10254
|
+
"assignments" => ["assignments", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_VariationAssignment(_v) }).call(_i) } : _v }],
|
|
10255
|
+
"memory_layer_assignments" => ["memoryLayerAssignments", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_VariationMemoryLayerAssignment(_v) }).call(_i) } : _v }],
|
|
10256
|
+
"memoryLayerAssignments" => ["memoryLayerAssignments", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_VariationMemoryLayerAssignment(_v) }).call(_i) } : _v }],
|
|
9724
10257
|
}.freeze
|
|
9725
10258
|
|
|
9726
10259
|
def self.encode_AgentVariationSpec(data)
|
|
@@ -9784,6 +10317,30 @@ module Cadenya
|
|
|
9784
10317
|
encode_fields(ENCODE_AGENT_VARIATION_SPEC_PROGRESSIVE_DISCOVERY, data)
|
|
9785
10318
|
end
|
|
9786
10319
|
|
|
10320
|
+
ENCODE_BEDROCK_CONFIG = {
|
|
10321
|
+
"region" => ["region", nil],
|
|
10322
|
+
}.freeze
|
|
10323
|
+
|
|
10324
|
+
def self.encode_BedrockConfig(data)
|
|
10325
|
+
encode_fields(ENCODE_BEDROCK_CONFIG, data)
|
|
10326
|
+
end
|
|
10327
|
+
|
|
10328
|
+
ENCODE_CAPABILITY_REASONING = {
|
|
10329
|
+
"mode" => ["mode", nil],
|
|
10330
|
+
}.freeze
|
|
10331
|
+
|
|
10332
|
+
def self.encode_Capability_Reasoning(data)
|
|
10333
|
+
encode_fields(ENCODE_CAPABILITY_REASONING, data)
|
|
10334
|
+
end
|
|
10335
|
+
|
|
10336
|
+
ENCODE_CAPABILITY_STOP_SEQUENCES = {
|
|
10337
|
+
"limit" => ["limit", nil],
|
|
10338
|
+
}.freeze
|
|
10339
|
+
|
|
10340
|
+
def self.encode_Capability_StopSequences(data)
|
|
10341
|
+
encode_fields(ENCODE_CAPABILITY_STOP_SEQUENCES, data)
|
|
10342
|
+
end
|
|
10343
|
+
|
|
9787
10344
|
ENCODE_COMPACTION_CONFIG_SUMMARIZATION_STRATEGY = {
|
|
9788
10345
|
"instructions" => ["instructions", nil],
|
|
9789
10346
|
}.freeze
|
|
@@ -9913,6 +10470,27 @@ module Cadenya
|
|
|
9913
10470
|
encode_fields(ENCODE_CREDENTIAL_API_KEY, data)
|
|
9914
10471
|
end
|
|
9915
10472
|
|
|
10473
|
+
ENCODE_CREDENTIAL_AWS_ACCESS_KEY = {
|
|
10474
|
+
"access_key_id" => ["accessKeyId", nil],
|
|
10475
|
+
"accessKeyId" => ["accessKeyId", nil],
|
|
10476
|
+
"secret_access_key" => ["secretAccessKey", nil],
|
|
10477
|
+
"secretAccessKey" => ["secretAccessKey", nil],
|
|
10478
|
+
"session_token" => ["sessionToken", nil],
|
|
10479
|
+
"sessionToken" => ["sessionToken", nil],
|
|
10480
|
+
}.freeze
|
|
10481
|
+
|
|
10482
|
+
def self.encode_CredentialAWSAccessKey(data)
|
|
10483
|
+
encode_fields(ENCODE_CREDENTIAL_AWS_ACCESS_KEY, data)
|
|
10484
|
+
end
|
|
10485
|
+
|
|
10486
|
+
ENCODE_CREDENTIAL_GOOGLE_SERVICE_ACCOUNT = {
|
|
10487
|
+
"json" => ["json", nil],
|
|
10488
|
+
}.freeze
|
|
10489
|
+
|
|
10490
|
+
def self.encode_CredentialGoogleServiceAccount(data)
|
|
10491
|
+
encode_fields(ENCODE_CREDENTIAL_GOOGLE_SERVICE_ACCOUNT, data)
|
|
10492
|
+
end
|
|
10493
|
+
|
|
9916
10494
|
ENCODE_CREDENTIAL_HEADERS = {
|
|
9917
10495
|
"headers" => ["headers", nil],
|
|
9918
10496
|
}.freeze
|
|
@@ -9987,6 +10565,63 @@ module Cadenya
|
|
|
9987
10565
|
encode_fields(ENCODE_MEMORY_REFERENCE, data)
|
|
9988
10566
|
end
|
|
9989
10567
|
|
|
10568
|
+
ENCODE_MODEL_PRICING_OVERRIDE = {
|
|
10569
|
+
"input_price_per_million_tokens" => ["inputPricePerMillionTokens", nil],
|
|
10570
|
+
"inputPricePerMillionTokens" => ["inputPricePerMillionTokens", nil],
|
|
10571
|
+
"output_price_per_million_tokens" => ["outputPricePerMillionTokens", nil],
|
|
10572
|
+
"outputPricePerMillionTokens" => ["outputPricePerMillionTokens", nil],
|
|
10573
|
+
}.freeze
|
|
10574
|
+
|
|
10575
|
+
def self.encode_ModelPricingOverride(data)
|
|
10576
|
+
encode_fields(ENCODE_MODEL_PRICING_OVERRIDE, data)
|
|
10577
|
+
end
|
|
10578
|
+
|
|
10579
|
+
ENCODE_MODEL_SPEC = {
|
|
10580
|
+
"provider" => ["provider", nil],
|
|
10581
|
+
"family" => ["family", nil],
|
|
10582
|
+
"max_input_tokens" => ["maxInputTokens", nil],
|
|
10583
|
+
"maxInputTokens" => ["maxInputTokens", nil],
|
|
10584
|
+
"max_output_tokens" => ["maxOutputTokens", nil],
|
|
10585
|
+
"maxOutputTokens" => ["maxOutputTokens", nil],
|
|
10586
|
+
"input_price_per_million_tokens" => ["inputPricePerMillionTokens", nil],
|
|
10587
|
+
"inputPricePerMillionTokens" => ["inputPricePerMillionTokens", nil],
|
|
10588
|
+
"output_price_per_million_tokens" => ["outputPricePerMillionTokens", nil],
|
|
10589
|
+
"outputPricePerMillionTokens" => ["outputPricePerMillionTokens", nil],
|
|
10590
|
+
"capabilities" => ["capabilities", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_ModelSpec_Capability(_v) }).call(_i) } : _v }],
|
|
10591
|
+
"provider_model_id" => ["providerModelId", nil],
|
|
10592
|
+
"providerModelId" => ["providerModelId", nil],
|
|
10593
|
+
}.freeze
|
|
10594
|
+
|
|
10595
|
+
def self.encode_ModelSpec(data)
|
|
10596
|
+
encode_fields(ENCODE_MODEL_SPEC, data)
|
|
10597
|
+
end
|
|
10598
|
+
|
|
10599
|
+
def self.encode_ModelSpec_Capability(data)
|
|
10600
|
+
data = data.to_h if !data.is_a?(Hash) && data.class.name.to_s.start_with?(name.split("::").first + "::Types")
|
|
10601
|
+
unless data.is_a?(Hash)
|
|
10602
|
+
raise TypeError, "expected a Hash (or a decoded Types value object), got #{data.class}"
|
|
10603
|
+
end
|
|
10604
|
+
|
|
10605
|
+
case data["type"] || data[:type]
|
|
10606
|
+
when "temperature"
|
|
10607
|
+
(->(_v) { encode_ModelSpec_Capability_Temperature(_v) }).call(data)
|
|
10608
|
+
when "topP"
|
|
10609
|
+
(->(_v) { encode_ModelSpec_Capability_TopP(_v) }).call(data)
|
|
10610
|
+
when "topK"
|
|
10611
|
+
(->(_v) { encode_ModelSpec_Capability_TopK(_v) }).call(data)
|
|
10612
|
+
when "stopSequences"
|
|
10613
|
+
(->(_v) { encode_ModelSpec_Capability_StopSequences(_v) }).call(data)
|
|
10614
|
+
when "maxOutputTokens"
|
|
10615
|
+
(->(_v) { encode_ModelSpec_Capability_MaxOutputTokens(_v) }).call(data)
|
|
10616
|
+
when "reasoning"
|
|
10617
|
+
(->(_v) { encode_ModelSpec_Capability_Reasoning(_v) }).call(data)
|
|
10618
|
+
when "caching"
|
|
10619
|
+
(->(_v) { encode_ModelSpec_Capability_Caching(_v) }).call(data)
|
|
10620
|
+
else
|
|
10621
|
+
data
|
|
10622
|
+
end
|
|
10623
|
+
end
|
|
10624
|
+
|
|
9990
10625
|
ENCODE_OBJECTIVE_EPISODIC_CONFIG = {
|
|
9991
10626
|
"key" => ["key", nil],
|
|
9992
10627
|
}.freeze
|
|
@@ -10064,6 +10699,24 @@ module Cadenya
|
|
|
10064
10699
|
encode_fields(ENCODE_PARAMETER_ACTION_SET, data)
|
|
10065
10700
|
end
|
|
10066
10701
|
|
|
10702
|
+
def self.encode_RemoveAgentVariationAssignmentRequest(data)
|
|
10703
|
+
data = data.to_h if !data.is_a?(Hash) && data.class.name.to_s.start_with?(name.split("::").first + "::Types")
|
|
10704
|
+
unless data.is_a?(Hash)
|
|
10705
|
+
raise TypeError, "expected a Hash (or a decoded Types value object), got #{data.class}"
|
|
10706
|
+
end
|
|
10707
|
+
|
|
10708
|
+
case data["type"] || data[:type]
|
|
10709
|
+
when "toolId"
|
|
10710
|
+
(->(_v) { encode_RemoveAgentVariationAssignmentRequest_ToolId(_v) }).call(data)
|
|
10711
|
+
when "toolSetId"
|
|
10712
|
+
(->(_v) { encode_RemoveAgentVariationAssignmentRequest_ToolSetId(_v) }).call(data)
|
|
10713
|
+
when "subAgentId"
|
|
10714
|
+
(->(_v) { encode_RemoveAgentVariationAssignmentRequest_SubAgentId(_v) }).call(data)
|
|
10715
|
+
else
|
|
10716
|
+
data
|
|
10717
|
+
end
|
|
10718
|
+
end
|
|
10719
|
+
|
|
10067
10720
|
ENCODE_RESULT_ACTION_TRANSFORM = {
|
|
10068
10721
|
"content_template" => ["contentTemplate", nil],
|
|
10069
10722
|
"contentTemplate" => ["contentTemplate", nil],
|
|
@@ -10513,6 +11166,44 @@ module Cadenya
|
|
|
10513
11166
|
encode_fields(ENCODE_UPLOAD_SPEC, data)
|
|
10514
11167
|
end
|
|
10515
11168
|
|
|
11169
|
+
def self.encode_VariationAssignment(data)
|
|
11170
|
+
data = data.to_h if !data.is_a?(Hash) && data.class.name.to_s.start_with?(name.split("::").first + "::Types")
|
|
11171
|
+
unless data.is_a?(Hash)
|
|
11172
|
+
raise TypeError, "expected a Hash (or a decoded Types value object), got #{data.class}"
|
|
11173
|
+
end
|
|
11174
|
+
|
|
11175
|
+
case data["type"] || data[:type]
|
|
11176
|
+
when "toolId"
|
|
11177
|
+
(->(_v) { encode_VariationAssignment_ToolId(_v) }).call(data)
|
|
11178
|
+
when "toolSetId"
|
|
11179
|
+
(->(_v) { encode_VariationAssignment_ToolSetId(_v) }).call(data)
|
|
11180
|
+
when "subAgentId"
|
|
11181
|
+
(->(_v) { encode_VariationAssignment_SubAgentId(_v) }).call(data)
|
|
11182
|
+
else
|
|
11183
|
+
data
|
|
11184
|
+
end
|
|
11185
|
+
end
|
|
11186
|
+
|
|
11187
|
+
ENCODE_VARIATION_MEMORY_LAYER_ASSIGNMENT = {
|
|
11188
|
+
"memory_layer_id" => ["memoryLayerId", nil],
|
|
11189
|
+
"memoryLayerId" => ["memoryLayerId", nil],
|
|
11190
|
+
"position" => ["position", nil],
|
|
11191
|
+
}.freeze
|
|
11192
|
+
|
|
11193
|
+
def self.encode_VariationMemoryLayerAssignment(data)
|
|
11194
|
+
encode_fields(ENCODE_VARIATION_MEMORY_LAYER_ASSIGNMENT, data)
|
|
11195
|
+
end
|
|
11196
|
+
|
|
11197
|
+
ENCODE_VERTEX_CONFIG = {
|
|
11198
|
+
"project_id" => ["projectId", nil],
|
|
11199
|
+
"projectId" => ["projectId", nil],
|
|
11200
|
+
"location" => ["location", nil],
|
|
11201
|
+
}.freeze
|
|
11202
|
+
|
|
11203
|
+
def self.encode_VertexConfig(data)
|
|
11204
|
+
encode_fields(ENCODE_VERTEX_CONFIG, data)
|
|
11205
|
+
end
|
|
11206
|
+
|
|
10516
11207
|
ENCODE_WIDGET_SESSION_SPEC = {
|
|
10517
11208
|
"widget_id" => ["widgetId", nil],
|
|
10518
11209
|
"widgetId" => ["widgetId", nil],
|
|
@@ -10559,6 +11250,36 @@ module Cadenya
|
|
|
10559
11250
|
encode_fields(ENCODE_WORKSPACE_SPEC, data)
|
|
10560
11251
|
end
|
|
10561
11252
|
|
|
11253
|
+
ENCODE_VARIATION_ASSIGNMENT_TOOL_ID = {
|
|
11254
|
+
"type" => ["type", nil],
|
|
11255
|
+
"tool_id" => ["toolId", nil],
|
|
11256
|
+
"toolId" => ["toolId", nil],
|
|
11257
|
+
}.freeze
|
|
11258
|
+
|
|
11259
|
+
def self.encode_VariationAssignment_ToolId(data)
|
|
11260
|
+
encode_fields(ENCODE_VARIATION_ASSIGNMENT_TOOL_ID, data)
|
|
11261
|
+
end
|
|
11262
|
+
|
|
11263
|
+
ENCODE_VARIATION_ASSIGNMENT_TOOL_SET_ID = {
|
|
11264
|
+
"type" => ["type", nil],
|
|
11265
|
+
"tool_set_id" => ["toolSetId", nil],
|
|
11266
|
+
"toolSetId" => ["toolSetId", nil],
|
|
11267
|
+
}.freeze
|
|
11268
|
+
|
|
11269
|
+
def self.encode_VariationAssignment_ToolSetId(data)
|
|
11270
|
+
encode_fields(ENCODE_VARIATION_ASSIGNMENT_TOOL_SET_ID, data)
|
|
11271
|
+
end
|
|
11272
|
+
|
|
11273
|
+
ENCODE_VARIATION_ASSIGNMENT_SUB_AGENT_ID = {
|
|
11274
|
+
"type" => ["type", nil],
|
|
11275
|
+
"sub_agent_id" => ["subAgentId", nil],
|
|
11276
|
+
"subAgentId" => ["subAgentId", nil],
|
|
11277
|
+
}.freeze
|
|
11278
|
+
|
|
11279
|
+
def self.encode_VariationAssignment_SubAgentId(data)
|
|
11280
|
+
encode_fields(ENCODE_VARIATION_ASSIGNMENT_SUB_AGENT_ID, data)
|
|
11281
|
+
end
|
|
11282
|
+
|
|
10562
11283
|
ENCODE_TOOL_SET_ADAPTER_MCP_VARIANT = {
|
|
10563
11284
|
"type" => ["type", nil],
|
|
10564
11285
|
"mcp" => ["mcp", ->(_v) { encode_ToolSetAdapter_MCP(_v) }],
|
|
@@ -10897,6 +11618,42 @@ module Cadenya
|
|
|
10897
11618
|
encode_fields(ENCODE_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID, data, drop: DROP_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID)
|
|
10898
11619
|
end
|
|
10899
11620
|
|
|
11621
|
+
ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_ID = {
|
|
11622
|
+
"type" => ["type", nil],
|
|
11623
|
+
"tool_id" => ["toolId", nil],
|
|
11624
|
+
"toolId" => ["toolId", nil],
|
|
11625
|
+
}.freeze
|
|
11626
|
+
|
|
11627
|
+
DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_ID = ["agentId", "agent_id", "variationId", "variation_id", "workspaceId", "workspace_id"].freeze
|
|
11628
|
+
|
|
11629
|
+
def self.encode_RemoveAgentVariationAssignmentRequest_ToolId(data)
|
|
11630
|
+
encode_fields(ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_ID, data, drop: DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_ID)
|
|
11631
|
+
end
|
|
11632
|
+
|
|
11633
|
+
ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_SET_ID = {
|
|
11634
|
+
"type" => ["type", nil],
|
|
11635
|
+
"tool_set_id" => ["toolSetId", nil],
|
|
11636
|
+
"toolSetId" => ["toolSetId", nil],
|
|
11637
|
+
}.freeze
|
|
11638
|
+
|
|
11639
|
+
DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_SET_ID = ["agentId", "agent_id", "variationId", "variation_id", "workspaceId", "workspace_id"].freeze
|
|
11640
|
+
|
|
11641
|
+
def self.encode_RemoveAgentVariationAssignmentRequest_ToolSetId(data)
|
|
11642
|
+
encode_fields(ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_SET_ID, data, drop: DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_SET_ID)
|
|
11643
|
+
end
|
|
11644
|
+
|
|
11645
|
+
ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID = {
|
|
11646
|
+
"type" => ["type", nil],
|
|
11647
|
+
"sub_agent_id" => ["subAgentId", nil],
|
|
11648
|
+
"subAgentId" => ["subAgentId", nil],
|
|
11649
|
+
}.freeze
|
|
11650
|
+
|
|
11651
|
+
DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID = ["agentId", "agent_id", "variationId", "variation_id", "workspaceId", "workspace_id"].freeze
|
|
11652
|
+
|
|
11653
|
+
def self.encode_RemoveAgentVariationAssignmentRequest_SubAgentId(data)
|
|
11654
|
+
encode_fields(ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID, data, drop: DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID)
|
|
11655
|
+
end
|
|
11656
|
+
|
|
10900
11657
|
ENCODE_AI_PROVIDER_CREDENTIAL_API_KEY = {
|
|
10901
11658
|
"type" => ["type", nil],
|
|
10902
11659
|
"api_key" => ["apiKey", ->(_v) { encode_CredentialAPIKey(_v) }],
|
|
@@ -10916,6 +11673,26 @@ module Cadenya
|
|
|
10916
11673
|
encode_fields(ENCODE_AI_PROVIDER_CREDENTIAL_HEADERS, data)
|
|
10917
11674
|
end
|
|
10918
11675
|
|
|
11676
|
+
ENCODE_AI_PROVIDER_CREDENTIAL_GOOGLE_SERVICE_ACCOUNT = {
|
|
11677
|
+
"type" => ["type", nil],
|
|
11678
|
+
"google_service_account" => ["googleServiceAccount", ->(_v) { encode_CredentialGoogleServiceAccount(_v) }],
|
|
11679
|
+
"googleServiceAccount" => ["googleServiceAccount", ->(_v) { encode_CredentialGoogleServiceAccount(_v) }],
|
|
11680
|
+
}.freeze
|
|
11681
|
+
|
|
11682
|
+
def self.encode_AIProviderCredential_GoogleServiceAccount(data)
|
|
11683
|
+
encode_fields(ENCODE_AI_PROVIDER_CREDENTIAL_GOOGLE_SERVICE_ACCOUNT, data)
|
|
11684
|
+
end
|
|
11685
|
+
|
|
11686
|
+
ENCODE_AI_PROVIDER_CREDENTIAL_AWS_ACCESS_KEY = {
|
|
11687
|
+
"type" => ["type", nil],
|
|
11688
|
+
"aws_access_key" => ["awsAccessKey", ->(_v) { encode_CredentialAWSAccessKey(_v) }],
|
|
11689
|
+
"awsAccessKey" => ["awsAccessKey", ->(_v) { encode_CredentialAWSAccessKey(_v) }],
|
|
11690
|
+
}.freeze
|
|
11691
|
+
|
|
11692
|
+
def self.encode_AIProviderCredential_AwsAccessKey(data)
|
|
11693
|
+
encode_fields(ENCODE_AI_PROVIDER_CREDENTIAL_AWS_ACCESS_KEY, data)
|
|
11694
|
+
end
|
|
11695
|
+
|
|
10919
11696
|
ENCODE_AI_PROVIDER_CONFIG_OPENROUTER = {
|
|
10920
11697
|
"type" => ["type", nil],
|
|
10921
11698
|
"openrouter" => ["openrouter", ->(_v) { encode_OpenRouterConfig(_v) }],
|
|
@@ -10944,5 +11721,90 @@ module Cadenya
|
|
|
10944
11721
|
encode_fields(ENCODE_AI_PROVIDER_CONFIG_OPENAI_COMPATIBLE, data)
|
|
10945
11722
|
end
|
|
10946
11723
|
|
|
11724
|
+
ENCODE_AI_PROVIDER_CONFIG_VERTEX = {
|
|
11725
|
+
"type" => ["type", nil],
|
|
11726
|
+
"vertex" => ["vertex", ->(_v) { encode_VertexConfig(_v) }],
|
|
11727
|
+
}.freeze
|
|
11728
|
+
|
|
11729
|
+
def self.encode_AIProviderConfig_Vertex(data)
|
|
11730
|
+
encode_fields(ENCODE_AI_PROVIDER_CONFIG_VERTEX, data)
|
|
11731
|
+
end
|
|
11732
|
+
|
|
11733
|
+
ENCODE_AI_PROVIDER_CONFIG_BEDROCK = {
|
|
11734
|
+
"type" => ["type", nil],
|
|
11735
|
+
"bedrock" => ["bedrock", ->(_v) { encode_BedrockConfig(_v) }],
|
|
11736
|
+
}.freeze
|
|
11737
|
+
|
|
11738
|
+
def self.encode_AIProviderConfig_Bedrock(data)
|
|
11739
|
+
encode_fields(ENCODE_AI_PROVIDER_CONFIG_BEDROCK, data)
|
|
11740
|
+
end
|
|
11741
|
+
|
|
11742
|
+
ENCODE_MODEL_SPEC_CAPABILITY_TEMPERATURE = {
|
|
11743
|
+
"type" => ["type", nil],
|
|
11744
|
+
"temperature" => ["temperature", nil],
|
|
11745
|
+
}.freeze
|
|
11746
|
+
|
|
11747
|
+
def self.encode_ModelSpec_Capability_Temperature(data)
|
|
11748
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_TEMPERATURE, data)
|
|
11749
|
+
end
|
|
11750
|
+
|
|
11751
|
+
ENCODE_MODEL_SPEC_CAPABILITY_TOP_P = {
|
|
11752
|
+
"type" => ["type", nil],
|
|
11753
|
+
"top_p" => ["topP", nil],
|
|
11754
|
+
"topP" => ["topP", nil],
|
|
11755
|
+
}.freeze
|
|
11756
|
+
|
|
11757
|
+
def self.encode_ModelSpec_Capability_TopP(data)
|
|
11758
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_TOP_P, data)
|
|
11759
|
+
end
|
|
11760
|
+
|
|
11761
|
+
ENCODE_MODEL_SPEC_CAPABILITY_TOP_K = {
|
|
11762
|
+
"type" => ["type", nil],
|
|
11763
|
+
"top_k" => ["topK", nil],
|
|
11764
|
+
"topK" => ["topK", nil],
|
|
11765
|
+
}.freeze
|
|
11766
|
+
|
|
11767
|
+
def self.encode_ModelSpec_Capability_TopK(data)
|
|
11768
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_TOP_K, data)
|
|
11769
|
+
end
|
|
11770
|
+
|
|
11771
|
+
ENCODE_MODEL_SPEC_CAPABILITY_STOP_SEQUENCES = {
|
|
11772
|
+
"type" => ["type", nil],
|
|
11773
|
+
"stop_sequences" => ["stopSequences", ->(_v) { encode_Capability_StopSequences(_v) }],
|
|
11774
|
+
"stopSequences" => ["stopSequences", ->(_v) { encode_Capability_StopSequences(_v) }],
|
|
11775
|
+
}.freeze
|
|
11776
|
+
|
|
11777
|
+
def self.encode_ModelSpec_Capability_StopSequences(data)
|
|
11778
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_STOP_SEQUENCES, data)
|
|
11779
|
+
end
|
|
11780
|
+
|
|
11781
|
+
ENCODE_MODEL_SPEC_CAPABILITY_MAX_OUTPUT_TOKENS = {
|
|
11782
|
+
"type" => ["type", nil],
|
|
11783
|
+
"max_output_tokens" => ["maxOutputTokens", nil],
|
|
11784
|
+
"maxOutputTokens" => ["maxOutputTokens", nil],
|
|
11785
|
+
}.freeze
|
|
11786
|
+
|
|
11787
|
+
def self.encode_ModelSpec_Capability_MaxOutputTokens(data)
|
|
11788
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_MAX_OUTPUT_TOKENS, data)
|
|
11789
|
+
end
|
|
11790
|
+
|
|
11791
|
+
ENCODE_MODEL_SPEC_CAPABILITY_REASONING = {
|
|
11792
|
+
"type" => ["type", nil],
|
|
11793
|
+
"reasoning" => ["reasoning", ->(_v) { encode_Capability_Reasoning(_v) }],
|
|
11794
|
+
}.freeze
|
|
11795
|
+
|
|
11796
|
+
def self.encode_ModelSpec_Capability_Reasoning(data)
|
|
11797
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_REASONING, data)
|
|
11798
|
+
end
|
|
11799
|
+
|
|
11800
|
+
ENCODE_MODEL_SPEC_CAPABILITY_CACHING = {
|
|
11801
|
+
"type" => ["type", nil],
|
|
11802
|
+
"caching" => ["caching", nil],
|
|
11803
|
+
}.freeze
|
|
11804
|
+
|
|
11805
|
+
def self.encode_ModelSpec_Capability_Caching(data)
|
|
11806
|
+
encode_fields(ENCODE_MODEL_SPEC_CAPABILITY_CACHING, data)
|
|
11807
|
+
end
|
|
11808
|
+
|
|
10947
11809
|
end
|
|
10948
11810
|
end
|