cadenya 1.5.0 → 1.7.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.
data/lib/cadenya/types.rb CHANGED
@@ -399,6 +399,29 @@ module Cadenya
399
399
  end
400
400
  end
401
401
 
402
+ class ActivateAgentPoolRequest
403
+ attr_reader :workspace_id, :id
404
+
405
+ def initialize(workspace_id: nil, id: nil)
406
+ @workspace_id = workspace_id
407
+ @id = id
408
+ end
409
+
410
+ def self.from_json(data)
411
+ new(
412
+ workspace_id: data["workspaceId"],
413
+ id: data["id"],
414
+ )
415
+ end
416
+
417
+ def to_h
418
+ {
419
+ workspace_id: Util.plain(@workspace_id),
420
+ id: Util.plain(@id),
421
+ }.reject { |_k, v| v.nil? }
422
+ end
423
+ end
424
+
402
425
  def self.decode_AddAgentVariationAssignmentRequest(data)
403
426
  return nil if data.nil? || data["type"].to_s.empty?
404
427
  case data["type"]
@@ -408,6 +431,8 @@ module Cadenya
408
431
  Types::AddAgentVariationAssignmentRequest_ToolSetId.from_json(data)
409
432
  when "subAgentId"
410
433
  Types::AddAgentVariationAssignmentRequest_SubAgentId.from_json(data)
434
+ when "agentPoolId"
435
+ Types::AddAgentVariationAssignmentRequest_AgentPoolId.from_json(data)
411
436
  else
412
437
  raise ArgumentError, "AddAgentVariationAssignmentRequest: unknown type #{data["type"].inspect}"
413
438
  end
@@ -525,6 +550,138 @@ module Cadenya
525
550
  end
526
551
  end
527
552
 
553
+ AgentPoolState = ["AGENT_POOL_STATE_UNSPECIFIED", "AGENT_POOL_STATE_ACTIVE", "AGENT_POOL_STATE_INACTIVE", "AGENT_POOL_STATE_ARCHIVED"].freeze
554
+
555
+ class AgentPool
556
+ attr_reader :metadata, :spec, :info, :state
557
+
558
+ def initialize(metadata: nil, spec: nil, info: nil, state: nil)
559
+ @metadata = metadata
560
+ @spec = spec
561
+ @info = info
562
+ @state = state
563
+ end
564
+
565
+ def self.from_json(data)
566
+ new(
567
+ metadata: data["metadata"].nil? ? nil : Types::ResourceMetadata.from_json(data["metadata"]),
568
+ spec: data["spec"].nil? ? nil : Types::AgentPoolSpec.from_json(data["spec"]),
569
+ info: data["info"].nil? ? nil : Types::AgentPoolInfo.from_json(data["info"]),
570
+ state: data["state"],
571
+ )
572
+ end
573
+
574
+ def to_h
575
+ {
576
+ metadata: Util.plain(@metadata),
577
+ spec: Util.plain(@spec),
578
+ info: Util.plain(@info),
579
+ state: Util.plain(@state),
580
+ }.reject { |_k, v| v.nil? }
581
+ end
582
+ end
583
+
584
+ class AgentPoolAssignment
585
+ attr_reader :agent_id
586
+
587
+ def initialize(agent_id: nil)
588
+ @agent_id = agent_id
589
+ end
590
+
591
+ def self.from_json(data)
592
+ new(
593
+ agent_id: data["agentId"],
594
+ )
595
+ end
596
+
597
+ def to_h
598
+ {
599
+ agent_id: Util.plain(@agent_id),
600
+ }.reject { |_k, v| v.nil? }
601
+ end
602
+ end
603
+
604
+ class AgentPoolInfo
605
+ attr_reader :assigned_agents, :created_by
606
+
607
+ def initialize(assigned_agents: nil, created_by: nil)
608
+ @assigned_agents = assigned_agents
609
+ @created_by = created_by
610
+ end
611
+
612
+ def self.from_json(data)
613
+ new(
614
+ assigned_agents: data["assignedAgents"],
615
+ created_by: data["createdBy"].nil? ? nil : Types::Profile.from_json(data["createdBy"]),
616
+ )
617
+ end
618
+
619
+ def to_h
620
+ {
621
+ assigned_agents: Util.plain(@assigned_agents),
622
+ created_by: Util.plain(@created_by),
623
+ }.reject { |_k, v| v.nil? }
624
+ end
625
+ end
626
+
627
+ class AgentPoolSpec
628
+ attr_reader :description, :state, :assignments, :instructions
629
+
630
+ def initialize(description: nil, state: nil, assignments: nil, instructions: nil)
631
+ @description = description
632
+ @state = state
633
+ @assignments = assignments
634
+ @instructions = instructions
635
+ end
636
+
637
+ def self.from_json(data)
638
+ new(
639
+ description: data["description"],
640
+ state: data["state"],
641
+ assignments: data["assignments"].nil? ? nil : (data["assignments"]).map { |item| Types::AgentPoolAssignment.from_json(item) },
642
+ instructions: data["instructions"],
643
+ )
644
+ end
645
+
646
+ def to_h
647
+ {
648
+ description: Util.plain(@description),
649
+ state: Util.plain(@state),
650
+ assignments: Util.plain(@assignments),
651
+ instructions: Util.plain(@instructions),
652
+ }.reject { |_k, v| v.nil? }
653
+ end
654
+ end
655
+
656
+ class AgentPoolUpdateSpec
657
+ attr_reader :description, :state, :assignments, :instructions
658
+
659
+ def initialize(description: nil, state: nil, assignments: nil, instructions: nil)
660
+ @description = description
661
+ @state = state
662
+ @assignments = assignments
663
+ @instructions = instructions
664
+ end
665
+
666
+ def self.from_json(data)
667
+ new(
668
+ description: data["description"],
669
+ state: data["state"],
670
+ assignments: data["assignments"].nil? ? nil : (data["assignments"]).map { |item| Types::AgentPoolAssignment.from_json(item) },
671
+ instructions: data["instructions"],
672
+ )
673
+ end
674
+
675
+ def to_h
676
+ {
677
+ description: Util.plain(@description),
678
+ state: Util.plain(@state),
679
+ assignments: Util.plain(@assignments),
680
+ instructions: Util.plain(@instructions),
681
+ }.reject { |_k, v| v.nil? }
682
+ end
683
+ end
684
+
528
685
  AgentScheduleState = ["STATE_UNSPECIFIED", "STATE_ACTIVE", "STATE_PAUSED", "STATE_ARCHIVED"].freeze
529
686
 
530
687
  class AgentSchedule
@@ -724,9 +881,9 @@ module Cadenya
724
881
  end
725
882
 
726
883
  class AgentVariationInfo
727
- attr_reader :tool_count, :tool_set_count, :sub_agent_count, :created_by, :model, :score, :feedback_count, :memory_layer_count, :effective_tool_count, :assignment_metadata
884
+ attr_reader :tool_count, :tool_set_count, :sub_agent_count, :created_by, :model, :score, :feedback_count, :memory_layer_count, :effective_tool_count, :assignment_metadata, :agent_pool_count
728
885
 
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, assignment_metadata: nil)
886
+ 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, assignment_metadata: nil, agent_pool_count: nil)
730
887
  @tool_count = tool_count
731
888
  @tool_set_count = tool_set_count
732
889
  @sub_agent_count = sub_agent_count
@@ -737,6 +894,7 @@ module Cadenya
737
894
  @memory_layer_count = memory_layer_count
738
895
  @effective_tool_count = effective_tool_count
739
896
  @assignment_metadata = assignment_metadata
897
+ @agent_pool_count = agent_pool_count
740
898
  end
741
899
 
742
900
  def self.from_json(data)
@@ -751,6 +909,7 @@ module Cadenya
751
909
  memory_layer_count: data["memoryLayerCount"],
752
910
  effective_tool_count: data["effectiveToolCount"],
753
911
  assignment_metadata: data["assignmentMetadata"].nil? ? nil : (data["assignmentMetadata"]).transform_values { |v| Types::BareMetadata.from_json(v) },
912
+ agent_pool_count: data["agentPoolCount"],
754
913
  )
755
914
  end
756
915
 
@@ -766,6 +925,7 @@ module Cadenya
766
925
  memory_layer_count: Util.plain(@memory_layer_count),
767
926
  effective_tool_count: Util.plain(@effective_tool_count),
768
927
  assignment_metadata: Util.plain(@assignment_metadata),
928
+ agent_pool_count: Util.plain(@agent_pool_count),
769
929
  }.reject { |_k, v| v.nil? }
770
930
  end
771
931
  end
@@ -958,6 +1118,29 @@ module Cadenya
958
1118
  end
959
1119
  end
960
1120
 
1121
+ class ArchiveAgentPoolRequest
1122
+ attr_reader :workspace_id, :id
1123
+
1124
+ def initialize(workspace_id: nil, id: nil)
1125
+ @workspace_id = workspace_id
1126
+ @id = id
1127
+ end
1128
+
1129
+ def self.from_json(data)
1130
+ new(
1131
+ workspace_id: data["workspaceId"],
1132
+ id: data["id"],
1133
+ )
1134
+ end
1135
+
1136
+ def to_h
1137
+ {
1138
+ workspace_id: Util.plain(@workspace_id),
1139
+ id: Util.plain(@id),
1140
+ }.reject { |_k, v| v.nil? }
1141
+ end
1142
+ end
1143
+
961
1144
  class ArchiveAgentRequest
962
1145
  attr_reader :workspace_id, :id
963
1146
 
@@ -1154,6 +1337,8 @@ module Cadenya
1154
1337
  Types::CallableTool_Agent.from_json(data)
1155
1338
  when "cadenyaProvidedTool"
1156
1339
  Types::CallableTool_CadenyaProvidedTool.from_json(data)
1340
+ when "agentPool"
1341
+ Types::CallableTool_AgentPool.from_json(data)
1157
1342
  else
1158
1343
  raise ArgumentError, "CallableTool: unknown type #{data["type"].inspect}"
1159
1344
  end
@@ -1303,26 +1488,6 @@ module Cadenya
1303
1488
  end
1304
1489
  end
1305
1490
 
1306
- class CompactObjectiveResponse
1307
- attr_reader :context_window
1308
-
1309
- def initialize(context_window: nil)
1310
- @context_window = context_window
1311
- end
1312
-
1313
- def self.from_json(data)
1314
- new(
1315
- context_window: data["contextWindow"].nil? ? nil : Types::ObjectiveContextWindowData.from_json(data["contextWindow"]),
1316
- )
1317
- end
1318
-
1319
- def to_h
1320
- {
1321
- context_window: Util.plain(@context_window),
1322
- }.reject { |_k, v| v.nil? }
1323
- end
1324
- end
1325
-
1326
1491
  class CompactionConfig_SummarizationStrategy
1327
1492
  attr_reader :instructions
1328
1493
 
@@ -1562,6 +1727,18 @@ module Cadenya
1562
1727
  end
1563
1728
  end
1564
1729
 
1730
+ def self.decode_ContinueObjectiveResponse(data)
1731
+ return nil if data.nil? || data["type"].to_s.empty?
1732
+ case data["type"]
1733
+ when "event"
1734
+ Types::ContinueObjectiveResponse_Event.from_json(data)
1735
+ when "queuedAction"
1736
+ Types::ContinueObjectiveResponse_QueuedAction.from_json(data)
1737
+ else
1738
+ raise ArgumentError, "ContinueObjectiveResponse: unknown type #{data["type"].inspect}"
1739
+ end
1740
+ end
1741
+
1565
1742
  class CreateAIProviderKeyRequest
1566
1743
  attr_reader :workspace_id, :metadata, :spec
1567
1744
 
@@ -1640,6 +1817,32 @@ module Cadenya
1640
1817
  end
1641
1818
  end
1642
1819
 
1820
+ class CreateAgentPoolRequest
1821
+ attr_reader :workspace_id, :metadata, :spec
1822
+
1823
+ def initialize(workspace_id: nil, metadata: nil, spec: nil)
1824
+ @workspace_id = workspace_id
1825
+ @metadata = metadata
1826
+ @spec = spec
1827
+ end
1828
+
1829
+ def self.from_json(data)
1830
+ new(
1831
+ workspace_id: data["workspaceId"],
1832
+ metadata: data["metadata"].nil? ? nil : Types::CreateResourceMetadata.from_json(data["metadata"]),
1833
+ spec: data["spec"].nil? ? nil : Types::AgentPoolSpec.from_json(data["spec"]),
1834
+ )
1835
+ end
1836
+
1837
+ def to_h
1838
+ {
1839
+ workspace_id: Util.plain(@workspace_id),
1840
+ metadata: Util.plain(@metadata),
1841
+ spec: Util.plain(@spec),
1842
+ }.reject { |_k, v| v.nil? }
1843
+ end
1844
+ end
1845
+
1643
1846
  class CreateAgentRequest
1644
1847
  attr_reader :workspace_id, :metadata, :spec, :default_variation
1645
1848
 
@@ -1727,6 +1930,97 @@ module Cadenya
1727
1930
  end
1728
1931
  end
1729
1932
 
1933
+ class CreateAndStreamObjectiveRequest
1934
+ attr_reader :workspace_id, :agent_id, :variation_id, :metadata, :system_prompt_data, :first_user_message, :secrets, :memory_cascade, :first_user_message_data, :episodic_memory, :tenant, :subject, :pinned_parameters
1935
+
1936
+ def initialize(workspace_id: nil, agent_id: nil, variation_id: nil, metadata: nil, system_prompt_data: nil, first_user_message: nil, secrets: nil, memory_cascade: nil, first_user_message_data: nil, episodic_memory: nil, tenant: nil, subject: nil, pinned_parameters: nil)
1937
+ @workspace_id = workspace_id
1938
+ @agent_id = agent_id
1939
+ @variation_id = variation_id
1940
+ @metadata = metadata
1941
+ @system_prompt_data = system_prompt_data
1942
+ @first_user_message = first_user_message
1943
+ @secrets = secrets
1944
+ @memory_cascade = memory_cascade
1945
+ @first_user_message_data = first_user_message_data
1946
+ @episodic_memory = episodic_memory
1947
+ @tenant = tenant
1948
+ @subject = subject
1949
+ @pinned_parameters = pinned_parameters
1950
+ end
1951
+
1952
+ def self.from_json(data)
1953
+ new(
1954
+ workspace_id: data["workspaceId"],
1955
+ agent_id: data["agentId"],
1956
+ variation_id: data["variationId"],
1957
+ metadata: data["metadata"].nil? ? nil : Types::CreateAndStreamObjectiveRequest_Metadata.from_json(data["metadata"]),
1958
+ system_prompt_data: data["systemPromptData"],
1959
+ first_user_message: data["firstUserMessage"],
1960
+ secrets: data["secrets"].nil? ? nil : (data["secrets"]).map { |item| Types::CreateObjectiveRequest_Secret.from_json(item) },
1961
+ memory_cascade: data["memoryCascade"].nil? ? nil : (data["memoryCascade"]).map { |item| Types::MemoryReference.from_json(item) },
1962
+ first_user_message_data: data["firstUserMessageData"],
1963
+ episodic_memory: data["episodicMemory"].nil? ? nil : Types::ObjectiveEpisodicConfig.from_json(data["episodicMemory"]),
1964
+ tenant: data["tenant"].nil? ? nil : Types::TenantAssertion.from_json(data["tenant"]),
1965
+ subject: data["subject"].nil? ? nil : Types::SubjectAssertion.from_json(data["subject"]),
1966
+ pinned_parameters: data["pinnedParameters"],
1967
+ )
1968
+ end
1969
+
1970
+ def to_h
1971
+ {
1972
+ workspace_id: Util.plain(@workspace_id),
1973
+ agent_id: Util.plain(@agent_id),
1974
+ variation_id: Util.plain(@variation_id),
1975
+ metadata: Util.plain(@metadata),
1976
+ system_prompt_data: Util.plain(@system_prompt_data),
1977
+ first_user_message: Util.plain(@first_user_message),
1978
+ secrets: Util.plain(@secrets),
1979
+ memory_cascade: Util.plain(@memory_cascade),
1980
+ first_user_message_data: Util.plain(@first_user_message_data),
1981
+ episodic_memory: Util.plain(@episodic_memory),
1982
+ tenant: Util.plain(@tenant),
1983
+ subject: Util.plain(@subject),
1984
+ pinned_parameters: Util.plain(@pinned_parameters),
1985
+ }.reject { |_k, v| v.nil? }
1986
+ end
1987
+ end
1988
+
1989
+ class CreateAndStreamObjectiveRequest_Metadata
1990
+ attr_reader :labels, :external_id
1991
+
1992
+ def initialize(labels: nil, external_id: nil)
1993
+ @labels = labels
1994
+ @external_id = external_id
1995
+ end
1996
+
1997
+ def self.from_json(data)
1998
+ new(
1999
+ labels: data["labels"],
2000
+ external_id: data["externalId"],
2001
+ )
2002
+ end
2003
+
2004
+ def to_h
2005
+ {
2006
+ labels: Util.plain(@labels),
2007
+ external_id: Util.plain(@external_id),
2008
+ }.reject { |_k, v| v.nil? }
2009
+ end
2010
+ end
2011
+
2012
+ def self.decode_CreateAndStreamObjectiveResponse(data)
2013
+ return nil if data.nil? || data["type"].to_s.empty?
2014
+ case data["type"]
2015
+ when "objective"
2016
+ Types::CreateAndStreamObjectiveResponse_Objective.from_json(data)
2017
+ when "event"
2018
+ Types::CreateAndStreamObjectiveResponse_Event.from_json(data)
2019
+ else
2020
+ raise ArgumentError, "CreateAndStreamObjectiveResponse: unknown type #{data["type"].inspect}"
2021
+ end
2022
+ end
2023
+
1730
2024
  class CreateMemoryEntryRequest
1731
2025
  attr_reader :workspace_id, :memory_layer_id, :metadata, :spec
1732
2026
 
@@ -2291,6 +2585,29 @@ module Cadenya
2291
2585
  end
2292
2586
  end
2293
2587
 
2588
+ class DeactivateAgentPoolRequest
2589
+ attr_reader :workspace_id, :id
2590
+
2591
+ def initialize(workspace_id: nil, id: nil)
2592
+ @workspace_id = workspace_id
2593
+ @id = id
2594
+ end
2595
+
2596
+ def self.from_json(data)
2597
+ new(
2598
+ workspace_id: data["workspaceId"],
2599
+ id: data["id"],
2600
+ )
2601
+ end
2602
+
2603
+ def to_h
2604
+ {
2605
+ workspace_id: Util.plain(@workspace_id),
2606
+ id: Util.plain(@id),
2607
+ }.reject { |_k, v| v.nil? }
2608
+ end
2609
+ end
2610
+
2294
2611
  class DeleteTenantWidgetSessionsResponse
2295
2612
  attr_reader :sessions_deleted, :objectives_deleted
2296
2613
 
@@ -2495,6 +2812,29 @@ module Cadenya
2495
2812
  end
2496
2813
  end
2497
2814
 
2815
+ class InterruptObjectiveRequest
2816
+ attr_reader :workspace_id, :objective_id
2817
+
2818
+ def initialize(workspace_id: nil, objective_id: nil)
2819
+ @workspace_id = workspace_id
2820
+ @objective_id = objective_id
2821
+ end
2822
+
2823
+ def self.from_json(data)
2824
+ new(
2825
+ workspace_id: data["workspaceId"],
2826
+ objective_id: data["objectiveId"],
2827
+ )
2828
+ end
2829
+
2830
+ def to_h
2831
+ {
2832
+ workspace_id: Util.plain(@workspace_id),
2833
+ objective_id: Util.plain(@objective_id),
2834
+ }.reject { |_k, v| v.nil? }
2835
+ end
2836
+ end
2837
+
2498
2838
  class ListAIProviderKeysResponse
2499
2839
  attr_reader :items, :pagination
2500
2840
 
@@ -2518,7 +2858,30 @@ module Cadenya
2518
2858
  end
2519
2859
  end
2520
2860
 
2521
- class ListAPIKeysResponse
2861
+ class ListAPIKeysResponse
2862
+ attr_reader :items, :pagination
2863
+
2864
+ def initialize(items: nil, pagination: nil)
2865
+ @items = items
2866
+ @pagination = pagination
2867
+ end
2868
+
2869
+ def self.from_json(data)
2870
+ new(
2871
+ items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::APIKey.from_json(item) },
2872
+ pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]),
2873
+ )
2874
+ end
2875
+
2876
+ def to_h
2877
+ {
2878
+ items: Util.plain(@items),
2879
+ pagination: Util.plain(@pagination),
2880
+ }.reject { |_k, v| v.nil? }
2881
+ end
2882
+ end
2883
+
2884
+ class ListAccountWorkspacesResponse
2522
2885
  attr_reader :items, :pagination
2523
2886
 
2524
2887
  def initialize(items: nil, pagination: nil)
@@ -2528,7 +2891,7 @@ module Cadenya
2528
2891
 
2529
2892
  def self.from_json(data)
2530
2893
  new(
2531
- items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::APIKey.from_json(item) },
2894
+ items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::Workspace.from_json(item) },
2532
2895
  pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]),
2533
2896
  )
2534
2897
  end
@@ -2541,7 +2904,7 @@ module Cadenya
2541
2904
  end
2542
2905
  end
2543
2906
 
2544
- class ListAccountWorkspacesResponse
2907
+ class ListAgentFeedbackResponse
2545
2908
  attr_reader :items, :pagination
2546
2909
 
2547
2910
  def initialize(items: nil, pagination: nil)
@@ -2551,7 +2914,7 @@ module Cadenya
2551
2914
 
2552
2915
  def self.from_json(data)
2553
2916
  new(
2554
- items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::Workspace.from_json(item) },
2917
+ items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::ObjectiveFeedback.from_json(item) },
2555
2918
  pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]),
2556
2919
  )
2557
2920
  end
@@ -2564,7 +2927,7 @@ module Cadenya
2564
2927
  end
2565
2928
  end
2566
2929
 
2567
- class ListAgentFeedbackResponse
2930
+ class ListAgentPoolsResponse
2568
2931
  attr_reader :items, :pagination
2569
2932
 
2570
2933
  def initialize(items: nil, pagination: nil)
@@ -2574,7 +2937,7 @@ module Cadenya
2574
2937
 
2575
2938
  def self.from_json(data)
2576
2939
  new(
2577
- items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::ObjectiveFeedback.from_json(item) },
2940
+ items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::AgentPool.from_json(item) },
2578
2941
  pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]),
2579
2942
  )
2580
2943
  end
@@ -2817,6 +3180,29 @@ module Cadenya
2817
3180
  end
2818
3181
  end
2819
3182
 
3183
+ class ListObjectiveQueuedActionsResponse
3184
+ attr_reader :items, :pagination
3185
+
3186
+ def initialize(items: nil, pagination: nil)
3187
+ @items = items
3188
+ @pagination = pagination
3189
+ end
3190
+
3191
+ def self.from_json(data)
3192
+ new(
3193
+ items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::ObjectiveQueuedAction.from_json(item) },
3194
+ pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]),
3195
+ )
3196
+ end
3197
+
3198
+ def to_h
3199
+ {
3200
+ items: Util.plain(@items),
3201
+ pagination: Util.plain(@pagination),
3202
+ }.reject { |_k, v| v.nil? }
3203
+ end
3204
+ end
3205
+
2820
3206
  class ListObjectiveToolCallsResponse
2821
3207
  attr_reader :items, :pagination
2822
3208
 
@@ -3543,17 +3929,19 @@ module Cadenya
3543
3929
  end
3544
3930
 
3545
3931
  class ModelBasePricing
3546
- attr_reader :input_price_per_million_tokens, :output_price_per_million_tokens
3932
+ attr_reader :input_price_per_million_tokens, :output_price_per_million_tokens, :cached_input_price_per_million_tokens
3547
3933
 
3548
- def initialize(input_price_per_million_tokens: nil, output_price_per_million_tokens: nil)
3934
+ def initialize(input_price_per_million_tokens: nil, output_price_per_million_tokens: nil, cached_input_price_per_million_tokens: nil)
3549
3935
  @input_price_per_million_tokens = input_price_per_million_tokens
3550
3936
  @output_price_per_million_tokens = output_price_per_million_tokens
3937
+ @cached_input_price_per_million_tokens = cached_input_price_per_million_tokens
3551
3938
  end
3552
3939
 
3553
3940
  def self.from_json(data)
3554
3941
  new(
3555
3942
  input_price_per_million_tokens: data["inputPricePerMillionTokens"],
3556
3943
  output_price_per_million_tokens: data["outputPricePerMillionTokens"],
3944
+ cached_input_price_per_million_tokens: data["cachedInputPricePerMillionTokens"],
3557
3945
  )
3558
3946
  end
3559
3947
 
@@ -3561,6 +3949,7 @@ module Cadenya
3561
3949
  {
3562
3950
  input_price_per_million_tokens: Util.plain(@input_price_per_million_tokens),
3563
3951
  output_price_per_million_tokens: Util.plain(@output_price_per_million_tokens),
3952
+ cached_input_price_per_million_tokens: Util.plain(@cached_input_price_per_million_tokens),
3564
3953
  }.reject { |_k, v| v.nil? }
3565
3954
  end
3566
3955
  end
@@ -3592,17 +3981,19 @@ module Cadenya
3592
3981
  end
3593
3982
 
3594
3983
  class ModelPricingOverride
3595
- attr_reader :input_price_per_million_tokens, :output_price_per_million_tokens
3984
+ attr_reader :input_price_per_million_tokens, :output_price_per_million_tokens, :cached_input_price_per_million_tokens
3596
3985
 
3597
- def initialize(input_price_per_million_tokens: nil, output_price_per_million_tokens: nil)
3986
+ def initialize(input_price_per_million_tokens: nil, output_price_per_million_tokens: nil, cached_input_price_per_million_tokens: nil)
3598
3987
  @input_price_per_million_tokens = input_price_per_million_tokens
3599
3988
  @output_price_per_million_tokens = output_price_per_million_tokens
3989
+ @cached_input_price_per_million_tokens = cached_input_price_per_million_tokens
3600
3990
  end
3601
3991
 
3602
3992
  def self.from_json(data)
3603
3993
  new(
3604
3994
  input_price_per_million_tokens: data["inputPricePerMillionTokens"],
3605
3995
  output_price_per_million_tokens: data["outputPricePerMillionTokens"],
3996
+ cached_input_price_per_million_tokens: data["cachedInputPricePerMillionTokens"],
3606
3997
  )
3607
3998
  end
3608
3999
 
@@ -3610,20 +4001,22 @@ module Cadenya
3610
4001
  {
3611
4002
  input_price_per_million_tokens: Util.plain(@input_price_per_million_tokens),
3612
4003
  output_price_per_million_tokens: Util.plain(@output_price_per_million_tokens),
4004
+ cached_input_price_per_million_tokens: Util.plain(@cached_input_price_per_million_tokens),
3613
4005
  }.reject { |_k, v| v.nil? }
3614
4006
  end
3615
4007
  end
3616
4008
 
3617
4009
  class ModelSpec
3618
- attr_reader :provider, :family, :max_input_tokens, :max_output_tokens, :input_price_per_million_tokens, :output_price_per_million_tokens, :capabilities, :provider_model_id
4010
+ attr_reader :provider, :family, :max_input_tokens, :max_output_tokens, :input_price_per_million_tokens, :output_price_per_million_tokens, :cached_input_price_per_million_tokens, :capabilities, :provider_model_id
3619
4011
 
3620
- 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)
4012
+ 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, cached_input_price_per_million_tokens: nil, capabilities: nil, provider_model_id: nil)
3621
4013
  @provider = provider
3622
4014
  @family = family
3623
4015
  @max_input_tokens = max_input_tokens
3624
4016
  @max_output_tokens = max_output_tokens
3625
4017
  @input_price_per_million_tokens = input_price_per_million_tokens
3626
4018
  @output_price_per_million_tokens = output_price_per_million_tokens
4019
+ @cached_input_price_per_million_tokens = cached_input_price_per_million_tokens
3627
4020
  @capabilities = capabilities
3628
4021
  @provider_model_id = provider_model_id
3629
4022
  end
@@ -3636,6 +4029,7 @@ module Cadenya
3636
4029
  max_output_tokens: data["maxOutputTokens"],
3637
4030
  input_price_per_million_tokens: data["inputPricePerMillionTokens"],
3638
4031
  output_price_per_million_tokens: data["outputPricePerMillionTokens"],
4032
+ cached_input_price_per_million_tokens: data["cachedInputPricePerMillionTokens"],
3639
4033
  capabilities: data["capabilities"].nil? ? nil : (data["capabilities"]).map { |item| Types.decode_ModelSpec_Capability(item) },
3640
4034
  provider_model_id: data["providerModelId"],
3641
4035
  )
@@ -3649,6 +4043,7 @@ module Cadenya
3649
4043
  max_output_tokens: Util.plain(@max_output_tokens),
3650
4044
  input_price_per_million_tokens: Util.plain(@input_price_per_million_tokens),
3651
4045
  output_price_per_million_tokens: Util.plain(@output_price_per_million_tokens),
4046
+ cached_input_price_per_million_tokens: Util.plain(@cached_input_price_per_million_tokens),
3652
4047
  capabilities: Util.plain(@capabilities),
3653
4048
  provider_model_id: Util.plain(@provider_model_id),
3654
4049
  }.reject { |_k, v| v.nil? }
@@ -3705,7 +4100,7 @@ module Cadenya
3705
4100
  end
3706
4101
  end
3707
4102
 
3708
- 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
4103
+ 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", "OBJECTIVE_STATE_INTERRUPTING"].freeze
3709
4104
 
3710
4105
  class Objective
3711
4106
  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
@@ -4046,6 +4441,8 @@ module Cadenya
4046
4441
  Types::ObjectiveEventData_StateChanged.from_json(data)
4047
4442
  when "heartbeat"
4048
4443
  Types::ObjectiveEventData_Heartbeat.from_json(data)
4444
+ when "interrupted"
4445
+ Types::ObjectiveEventData_Interrupted.from_json(data)
4049
4446
  else
4050
4447
  raise ArgumentError, "ObjectiveEventData: unknown type #{data["type"].inspect}"
4051
4448
  end
@@ -4238,9 +4635,78 @@ module Cadenya
4238
4635
  end
4239
4636
  end
4240
4637
 
4241
- 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
4638
+ class ObjectiveInterrupted
4639
+ attr_reader :message
4640
+
4641
+ def initialize(message: nil)
4642
+ @message = message
4643
+ end
4644
+
4645
+ def self.from_json(data)
4646
+ new(
4647
+ message: data["message"],
4648
+ )
4649
+ end
4650
+
4651
+ def to_h
4652
+ {
4653
+ message: Util.plain(@message),
4654
+ }.reject { |_k, v| v.nil? }
4655
+ end
4656
+ end
4657
+
4658
+ ObjectiveQueuedActionState = ["STATE_UNSPECIFIED", "STATE_QUEUED", "STATE_SENT", "STATE_REMOVED", "STATE_DISCARDED"].freeze
4659
+
4660
+ class ObjectiveQueuedAction
4661
+ attr_reader :metadata, :objective_id, :data, :state, :sent_at, :objective_event_id
4662
+
4663
+ def initialize(metadata: nil, objective_id: nil, data: nil, state: nil, sent_at: nil, objective_event_id: nil)
4664
+ @metadata = metadata
4665
+ @objective_id = objective_id
4666
+ @data = data
4667
+ @state = state
4668
+ @sent_at = sent_at
4669
+ @objective_event_id = objective_event_id
4670
+ end
4671
+
4672
+ def self.from_json(data)
4673
+ new(
4674
+ metadata: data["metadata"].nil? ? nil : Types::OperationMetadata.from_json(data["metadata"]),
4675
+ objective_id: data["objectiveId"],
4676
+ data: data["data"].nil? ? nil : Types.decode_ObjectiveQueuedActionData(data["data"]),
4677
+ state: data["state"],
4678
+ sent_at: data["sentAt"].nil? ? nil : Time.iso8601(data["sentAt"]),
4679
+ objective_event_id: data["objectiveEventId"],
4680
+ )
4681
+ end
4682
+
4683
+ def to_h
4684
+ {
4685
+ metadata: Util.plain(@metadata),
4686
+ objective_id: Util.plain(@objective_id),
4687
+ data: Util.plain(@data),
4688
+ state: Util.plain(@state),
4689
+ sent_at: Util.plain(@sent_at),
4690
+ objective_event_id: Util.plain(@objective_event_id),
4691
+ }.reject { |_k, v| v.nil? }
4692
+ end
4693
+ end
4694
+
4695
+ def self.decode_ObjectiveQueuedActionData(data)
4696
+ return nil if data.nil? || data["type"].to_s.empty?
4697
+ case data["type"]
4698
+ when "userMessage"
4699
+ Types::ObjectiveQueuedActionData_UserMessage.from_json(data)
4700
+ when "compaction"
4701
+ Types::ObjectiveQueuedActionData_Compaction.from_json(data)
4702
+ else
4703
+ raise ArgumentError, "ObjectiveQueuedActionData: unknown type #{data["type"].inspect}"
4704
+ end
4705
+ end
4242
4706
 
4243
- 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
4707
+ 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", "OBJECTIVE_STATE_INTERRUPTING"].freeze
4708
+
4709
+ 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", "OBJECTIVE_STATE_INTERRUPTING"].freeze
4244
4710
 
4245
4711
  class ObjectiveStateChanged
4246
4712
  attr_reader :from_state, :to_state, :message
@@ -4313,7 +4779,7 @@ module Cadenya
4313
4779
 
4314
4780
  ObjectiveToolCallStatus = ["TOOL_CALL_STATUS_UNSPECIFIED", "TOOL_CALL_STATUS_AUTO_APPROVED", "TOOL_CALL_STATUS_WAITING_FOR_APPROVAL", "TOOL_CALL_STATUS_APPROVED", "TOOL_CALL_STATUS_DENIED"].freeze
4315
4781
 
4316
- ObjectiveToolCallExecutionStatus = ["TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED", "TOOL_CALL_EXECUTION_STATUS_PENDING", "TOOL_CALL_EXECUTION_STATUS_RUNNING", "TOOL_CALL_EXECUTION_STATUS_COMPLETED", "TOOL_CALL_EXECUTION_STATUS_ERRORED", "TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT"].freeze
4782
+ ObjectiveToolCallExecutionStatus = ["TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED", "TOOL_CALL_EXECUTION_STATUS_PENDING", "TOOL_CALL_EXECUTION_STATUS_RUNNING", "TOOL_CALL_EXECUTION_STATUS_COMPLETED", "TOOL_CALL_EXECUTION_STATUS_ERRORED", "TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT", "TOOL_CALL_EXECUTION_STATUS_INTERRUPTED"].freeze
4317
4783
 
4318
4784
  class ObjectiveToolCall
4319
4785
  attr_reader :metadata, :data, :status, :info, :execution_status
@@ -4525,7 +4991,7 @@ module Cadenya
4525
4991
 
4526
4992
  ObjectiveToolCallWithResultStatus = ["TOOL_CALL_STATUS_UNSPECIFIED", "TOOL_CALL_STATUS_AUTO_APPROVED", "TOOL_CALL_STATUS_WAITING_FOR_APPROVAL", "TOOL_CALL_STATUS_APPROVED", "TOOL_CALL_STATUS_DENIED"].freeze
4527
4993
 
4528
- ObjectiveToolCallWithResultExecutionStatus = ["TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED", "TOOL_CALL_EXECUTION_STATUS_PENDING", "TOOL_CALL_EXECUTION_STATUS_RUNNING", "TOOL_CALL_EXECUTION_STATUS_COMPLETED", "TOOL_CALL_EXECUTION_STATUS_ERRORED", "TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT"].freeze
4994
+ ObjectiveToolCallWithResultExecutionStatus = ["TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED", "TOOL_CALL_EXECUTION_STATUS_PENDING", "TOOL_CALL_EXECUTION_STATUS_RUNNING", "TOOL_CALL_EXECUTION_STATUS_COMPLETED", "TOOL_CALL_EXECUTION_STATUS_ERRORED", "TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT", "TOOL_CALL_EXECUTION_STATUS_INTERRUPTED"].freeze
4529
4995
 
4530
4996
  class ObjectiveToolCallWithResult
4531
4997
  attr_reader :metadata, :data, :status, :info, :execution_status, :result, :resolved_secrets
@@ -4903,6 +5369,46 @@ module Cadenya
4903
5369
  end
4904
5370
  end
4905
5371
 
5372
+ class QueuedCompaction
5373
+ attr_reader :compaction_config
5374
+
5375
+ def initialize(compaction_config: nil)
5376
+ @compaction_config = compaction_config
5377
+ end
5378
+
5379
+ def self.from_json(data)
5380
+ new(
5381
+ compaction_config: data["compactionConfig"].nil? ? nil : Types::AgentVariationSpec_CompactionConfig.from_json(data["compactionConfig"]),
5382
+ )
5383
+ end
5384
+
5385
+ def to_h
5386
+ {
5387
+ compaction_config: Util.plain(@compaction_config),
5388
+ }.reject { |_k, v| v.nil? }
5389
+ end
5390
+ end
5391
+
5392
+ class QueuedUserMessage
5393
+ attr_reader :content
5394
+
5395
+ def initialize(content: nil)
5396
+ @content = content
5397
+ end
5398
+
5399
+ def self.from_json(data)
5400
+ new(
5401
+ content: data["content"],
5402
+ )
5403
+ end
5404
+
5405
+ def to_h
5406
+ {
5407
+ content: Util.plain(@content),
5408
+ }.reject { |_k, v| v.nil? }
5409
+ end
5410
+ end
5411
+
4906
5412
  class Reasoning
4907
5413
  attr_reader :content
4908
5414
 
@@ -4932,6 +5438,8 @@ module Cadenya
4932
5438
  Types::RemoveAgentVariationAssignmentRequest_ToolSetId.from_json(data)
4933
5439
  when "subAgentId"
4934
5440
  Types::RemoveAgentVariationAssignmentRequest_SubAgentId.from_json(data)
5441
+ when "agentPoolId"
5442
+ Types::RemoveAgentVariationAssignmentRequest_AgentPoolId.from_json(data)
4935
5443
  else
4936
5444
  raise ArgumentError, "RemoveAgentVariationAssignmentRequest: unknown type #{data["type"].inspect}"
4937
5445
  end
@@ -4966,6 +5474,32 @@ module Cadenya
4966
5474
  end
4967
5475
  end
4968
5476
 
5477
+ class RemoveObjectiveQueuedActionRequest
5478
+ attr_reader :workspace_id, :objective_id, :queued_action_id
5479
+
5480
+ def initialize(workspace_id: nil, objective_id: nil, queued_action_id: nil)
5481
+ @workspace_id = workspace_id
5482
+ @objective_id = objective_id
5483
+ @queued_action_id = queued_action_id
5484
+ end
5485
+
5486
+ def self.from_json(data)
5487
+ new(
5488
+ workspace_id: data["workspaceId"],
5489
+ objective_id: data["objectiveId"],
5490
+ queued_action_id: data["queuedActionId"],
5491
+ )
5492
+ end
5493
+
5494
+ def to_h
5495
+ {
5496
+ workspace_id: Util.plain(@workspace_id),
5497
+ objective_id: Util.plain(@objective_id),
5498
+ queued_action_id: Util.plain(@queued_action_id),
5499
+ }.reject { |_k, v| v.nil? }
5500
+ end
5501
+ end
5502
+
4969
5503
  ResolvedSecretSource = ["RESOLVED_SECRET_SOURCE_UNSPECIFIED", "RESOLVED_SECRET_SOURCE_WORKSPACE", "RESOLVED_SECRET_SOURCE_TOOLSET", "RESOLVED_SECRET_SOURCE_OBJECTIVE"].freeze
4970
5504
 
4971
5505
  class ResolvedSecret
@@ -6611,12 +7145,13 @@ module Cadenya
6611
7145
  end
6612
7146
 
6613
7147
  class ToolSetSpec
6614
- attr_reader :description, :adapter, :overlays
7148
+ attr_reader :description, :adapter, :overlays, :secrets
6615
7149
 
6616
- def initialize(description: nil, adapter: nil, overlays: nil)
7150
+ def initialize(description: nil, adapter: nil, overlays: nil, secrets: nil)
6617
7151
  @description = description
6618
7152
  @adapter = adapter
6619
7153
  @overlays = overlays
7154
+ @secrets = secrets
6620
7155
  end
6621
7156
 
6622
7157
  def self.from_json(data)
@@ -6624,6 +7159,7 @@ module Cadenya
6624
7159
  description: data["description"],
6625
7160
  adapter: data["adapter"].nil? ? nil : Types.decode_ToolSetAdapter(data["adapter"]),
6626
7161
  overlays: data["overlays"].nil? ? nil : (data["overlays"]).map { |item| Types::ToolOverlay.from_json(item) },
7162
+ secrets: data["secrets"].nil? ? nil : (data["secrets"]).map { |item| Types::ToolSetSpec_Secret.from_json(item) },
6627
7163
  )
6628
7164
  end
6629
7165
 
@@ -6632,6 +7168,30 @@ module Cadenya
6632
7168
  description: Util.plain(@description),
6633
7169
  adapter: Util.plain(@adapter),
6634
7170
  overlays: Util.plain(@overlays),
7171
+ secrets: Util.plain(@secrets),
7172
+ }.reject { |_k, v| v.nil? }
7173
+ end
7174
+ end
7175
+
7176
+ class ToolSetSpec_Secret
7177
+ attr_reader :name, :value
7178
+
7179
+ def initialize(name: nil, value: nil)
7180
+ @name = name
7181
+ @value = value
7182
+ end
7183
+
7184
+ def self.from_json(data)
7185
+ new(
7186
+ name: data["name"],
7187
+ value: data["value"],
7188
+ )
7189
+ end
7190
+
7191
+ def to_h
7192
+ {
7193
+ name: Util.plain(@name),
7194
+ value: Util.plain(@value),
6635
7195
  }.reject { |_k, v| v.nil? }
6636
7196
  end
6637
7197
  end
@@ -6713,6 +7273,29 @@ module Cadenya
6713
7273
  end
6714
7274
  end
6715
7275
 
7276
+ class UnarchiveAgentPoolRequest
7277
+ attr_reader :workspace_id, :id
7278
+
7279
+ def initialize(workspace_id: nil, id: nil)
7280
+ @workspace_id = workspace_id
7281
+ @id = id
7282
+ end
7283
+
7284
+ def self.from_json(data)
7285
+ new(
7286
+ workspace_id: data["workspaceId"],
7287
+ id: data["id"],
7288
+ )
7289
+ end
7290
+
7291
+ def to_h
7292
+ {
7293
+ workspace_id: Util.plain(@workspace_id),
7294
+ id: Util.plain(@id),
7295
+ }.reject { |_k, v| v.nil? }
7296
+ end
7297
+ end
7298
+
6716
7299
  class UnarchiveAgentRequest
6717
7300
  attr_reader :workspace_id, :id
6718
7301
 
@@ -6898,6 +7481,38 @@ module Cadenya
6898
7481
  end
6899
7482
  end
6900
7483
 
7484
+ class UpdateAgentPoolRequest
7485
+ attr_reader :workspace_id, :id, :metadata, :spec, :update_mask
7486
+
7487
+ def initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil)
7488
+ @workspace_id = workspace_id
7489
+ @id = id
7490
+ @metadata = metadata
7491
+ @spec = spec
7492
+ @update_mask = update_mask
7493
+ end
7494
+
7495
+ def self.from_json(data)
7496
+ new(
7497
+ workspace_id: data["workspaceId"],
7498
+ id: data["id"],
7499
+ metadata: data["metadata"].nil? ? nil : Types::UpdateResourceMetadata.from_json(data["metadata"]),
7500
+ spec: data["spec"].nil? ? nil : Types::AgentPoolUpdateSpec.from_json(data["spec"]),
7501
+ update_mask: data["updateMask"],
7502
+ )
7503
+ end
7504
+
7505
+ def to_h
7506
+ {
7507
+ workspace_id: Util.plain(@workspace_id),
7508
+ id: Util.plain(@id),
7509
+ metadata: Util.plain(@metadata),
7510
+ spec: Util.plain(@spec),
7511
+ update_mask: Util.plain(@update_mask),
7512
+ }.reject { |_k, v| v.nil? }
7513
+ end
7514
+ end
7515
+
6901
7516
  class UpdateAgentRequest
6902
7517
  attr_reader :workspace_id, :id, :metadata, :spec, :update_mask
6903
7518
 
@@ -7467,6 +8082,8 @@ module Cadenya
7467
8082
  Types::VariationAssignment_ToolSetId.from_json(data)
7468
8083
  when "subAgentId"
7469
8084
  Types::VariationAssignment_SubAgentId.from_json(data)
8085
+ when "agentPoolId"
8086
+ Types::VariationAssignment_AgentPoolId.from_json(data)
7470
8087
  else
7471
8088
  raise ArgumentError, "VariationAssignment: unknown type #{data["type"].inspect}"
7472
8089
  end
@@ -7543,7 +8160,7 @@ module Cadenya
7543
8160
 
7544
8161
  WebhookDeliveryDataStatus = ["WEBHOOK_DELIVERY_STATUS_UNSPECIFIED", "WEBHOOK_DELIVERY_STATUS_PENDING", "WEBHOOK_DELIVERY_STATUS_COMPLETED", "WEBHOOK_DELIVERY_STATUS_FAILED", "WEBHOOK_DELIVERY_STATUS_DISABLED"].freeze
7545
8162
 
7546
- 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", "OBJECTIVE_EVENT_TYPE_HEARTBEAT"].freeze
8163
+ 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", "OBJECTIVE_EVENT_TYPE_HEARTBEAT", "OBJECTIVE_EVENT_TYPE_INTERRUPTED"].freeze
7547
8164
 
7548
8165
  class WebhookDeliveryData
7549
8166
  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
@@ -7604,6 +8221,29 @@ module Cadenya
7604
8221
  end
7605
8222
  end
7606
8223
 
8224
+ class WhoamiResponse
8225
+ attr_reader :profile, :default_workspace
8226
+
8227
+ def initialize(profile: nil, default_workspace: nil)
8228
+ @profile = profile
8229
+ @default_workspace = default_workspace
8230
+ end
8231
+
8232
+ def self.from_json(data)
8233
+ new(
8234
+ profile: data["profile"].nil? ? nil : Types::Profile.from_json(data["profile"]),
8235
+ default_workspace: data["defaultWorkspace"].nil? ? nil : Types::AccountResourceMetadata.from_json(data["defaultWorkspace"]),
8236
+ )
8237
+ end
8238
+
8239
+ def to_h
8240
+ {
8241
+ profile: Util.plain(@profile),
8242
+ default_workspace: Util.plain(@default_workspace),
8243
+ }.reject { |_k, v| v.nil? }
8244
+ end
8245
+ end
8246
+
7607
8247
  WidgetState = ["STATE_UNSPECIFIED", "STATE_ACTIVE", "STATE_ARCHIVED"].freeze
7608
8248
 
7609
8249
  class Widget
@@ -8132,30 +8772,53 @@ module Cadenya
8132
8772
  def to_h
8133
8773
  {
8134
8774
  type: Util.plain(@type),
8135
- tool_set_id: Util.plain(@tool_set_id),
8775
+ tool_set_id: Util.plain(@tool_set_id),
8776
+ }.reject { |_k, v| v.nil? }
8777
+ end
8778
+ end
8779
+
8780
+ class VariationAssignment_SubAgentId
8781
+ attr_reader :type, :sub_agent_id
8782
+
8783
+ def initialize(type: nil, sub_agent_id: nil)
8784
+ @type = type
8785
+ @sub_agent_id = sub_agent_id
8786
+ end
8787
+
8788
+ def self.from_json(data)
8789
+ new(
8790
+ type: data["type"],
8791
+ sub_agent_id: data["subAgentId"],
8792
+ )
8793
+ end
8794
+
8795
+ def to_h
8796
+ {
8797
+ type: Util.plain(@type),
8798
+ sub_agent_id: Util.plain(@sub_agent_id),
8136
8799
  }.reject { |_k, v| v.nil? }
8137
8800
  end
8138
8801
  end
8139
8802
 
8140
- class VariationAssignment_SubAgentId
8141
- attr_reader :type, :sub_agent_id
8803
+ class VariationAssignment_AgentPoolId
8804
+ attr_reader :type, :agent_pool_id
8142
8805
 
8143
- def initialize(type: nil, sub_agent_id: nil)
8806
+ def initialize(type: nil, agent_pool_id: nil)
8144
8807
  @type = type
8145
- @sub_agent_id = sub_agent_id
8808
+ @agent_pool_id = agent_pool_id
8146
8809
  end
8147
8810
 
8148
8811
  def self.from_json(data)
8149
8812
  new(
8150
8813
  type: data["type"],
8151
- sub_agent_id: data["subAgentId"],
8814
+ agent_pool_id: data["agentPoolId"],
8152
8815
  )
8153
8816
  end
8154
8817
 
8155
8818
  def to_h
8156
8819
  {
8157
8820
  type: Util.plain(@type),
8158
- sub_agent_id: Util.plain(@sub_agent_id),
8821
+ agent_pool_id: Util.plain(@agent_pool_id),
8159
8822
  }.reject { |_k, v| v.nil? }
8160
8823
  end
8161
8824
  end
@@ -9361,6 +10024,29 @@ module Cadenya
9361
10024
  end
9362
10025
  end
9363
10026
 
10027
+ class ObjectiveEventData_Interrupted
10028
+ attr_reader :type, :interrupted
10029
+
10030
+ def initialize(type: nil, interrupted: nil)
10031
+ @type = type
10032
+ @interrupted = interrupted
10033
+ end
10034
+
10035
+ def self.from_json(data)
10036
+ new(
10037
+ type: data["type"],
10038
+ interrupted: data["interrupted"].nil? ? nil : Types::ObjectiveInterrupted.from_json(data["interrupted"]),
10039
+ )
10040
+ end
10041
+
10042
+ def to_h
10043
+ {
10044
+ type: Util.plain(@type),
10045
+ interrupted: Util.plain(@interrupted),
10046
+ }.reject { |_k, v| v.nil? }
10047
+ end
10048
+ end
10049
+
9364
10050
  class CallableTool_Tool
9365
10051
  attr_reader :type, :tool
9366
10052
 
@@ -9430,6 +10116,29 @@ module Cadenya
9430
10116
  end
9431
10117
  end
9432
10118
 
10119
+ class CallableTool_AgentPool
10120
+ attr_reader :type, :agent_pool
10121
+
10122
+ def initialize(type: nil, agent_pool: nil)
10123
+ @type = type
10124
+ @agent_pool = agent_pool
10125
+ end
10126
+
10127
+ def self.from_json(data)
10128
+ new(
10129
+ type: data["type"],
10130
+ agent_pool: data["agentPool"].nil? ? nil : Types::ResourceMetadata.from_json(data["agentPool"]),
10131
+ )
10132
+ end
10133
+
10134
+ def to_h
10135
+ {
10136
+ type: Util.plain(@type),
10137
+ agent_pool: Util.plain(@agent_pool),
10138
+ }.reject { |_k, v| v.nil? }
10139
+ end
10140
+ end
10141
+
9433
10142
  class MemoryEntryCreateSpec_Content
9434
10143
  attr_reader :type, :content, :key, :description
9435
10144
 
@@ -9488,6 +10197,98 @@ module Cadenya
9488
10197
  end
9489
10198
  end
9490
10199
 
10200
+ class ObjectiveQueuedActionData_UserMessage
10201
+ attr_reader :type, :user_message
10202
+
10203
+ def initialize(type: nil, user_message: nil)
10204
+ @type = type
10205
+ @user_message = user_message
10206
+ end
10207
+
10208
+ def self.from_json(data)
10209
+ new(
10210
+ type: data["type"],
10211
+ user_message: data["userMessage"].nil? ? nil : Types::QueuedUserMessage.from_json(data["userMessage"]),
10212
+ )
10213
+ end
10214
+
10215
+ def to_h
10216
+ {
10217
+ type: Util.plain(@type),
10218
+ user_message: Util.plain(@user_message),
10219
+ }.reject { |_k, v| v.nil? }
10220
+ end
10221
+ end
10222
+
10223
+ class ObjectiveQueuedActionData_Compaction
10224
+ attr_reader :type, :compaction
10225
+
10226
+ def initialize(type: nil, compaction: nil)
10227
+ @type = type
10228
+ @compaction = compaction
10229
+ end
10230
+
10231
+ def self.from_json(data)
10232
+ new(
10233
+ type: data["type"],
10234
+ compaction: data["compaction"].nil? ? nil : Types::QueuedCompaction.from_json(data["compaction"]),
10235
+ )
10236
+ end
10237
+
10238
+ def to_h
10239
+ {
10240
+ type: Util.plain(@type),
10241
+ compaction: Util.plain(@compaction),
10242
+ }.reject { |_k, v| v.nil? }
10243
+ end
10244
+ end
10245
+
10246
+ class ContinueObjectiveResponse_Event
10247
+ attr_reader :type, :event
10248
+
10249
+ def initialize(type: nil, event: nil)
10250
+ @type = type
10251
+ @event = event
10252
+ end
10253
+
10254
+ def self.from_json(data)
10255
+ new(
10256
+ type: data["type"],
10257
+ event: data["event"].nil? ? nil : Types::ObjectiveEvent.from_json(data["event"]),
10258
+ )
10259
+ end
10260
+
10261
+ def to_h
10262
+ {
10263
+ type: Util.plain(@type),
10264
+ event: Util.plain(@event),
10265
+ }.reject { |_k, v| v.nil? }
10266
+ end
10267
+ end
10268
+
10269
+ class ContinueObjectiveResponse_QueuedAction
10270
+ attr_reader :type, :queued_action
10271
+
10272
+ def initialize(type: nil, queued_action: nil)
10273
+ @type = type
10274
+ @queued_action = queued_action
10275
+ end
10276
+
10277
+ def self.from_json(data)
10278
+ new(
10279
+ type: data["type"],
10280
+ queued_action: data["queuedAction"].nil? ? nil : Types::ObjectiveQueuedAction.from_json(data["queuedAction"]),
10281
+ )
10282
+ end
10283
+
10284
+ def to_h
10285
+ {
10286
+ type: Util.plain(@type),
10287
+ queued_action: Util.plain(@queued_action),
10288
+ }.reject { |_k, v| v.nil? }
10289
+ end
10290
+ end
10291
+
9491
10292
  class SetToolCallContentRequest_ContentBlock_Text
9492
10293
  attr_reader :type, :text
9493
10294
 
@@ -9653,6 +10454,38 @@ module Cadenya
9653
10454
  end
9654
10455
  end
9655
10456
 
10457
+ class AddAgentVariationAssignmentRequest_AgentPoolId
10458
+ attr_reader :type, :agent_pool_id, :workspace_id, :agent_id, :variation_id
10459
+
10460
+ def initialize(type: nil, agent_pool_id: nil, workspace_id: nil, agent_id: nil, variation_id: nil)
10461
+ @type = type
10462
+ @agent_pool_id = agent_pool_id
10463
+ @workspace_id = workspace_id
10464
+ @agent_id = agent_id
10465
+ @variation_id = variation_id
10466
+ end
10467
+
10468
+ def self.from_json(data)
10469
+ new(
10470
+ type: data["type"],
10471
+ agent_pool_id: data["agentPoolId"],
10472
+ workspace_id: data["workspaceId"],
10473
+ agent_id: data["agentId"],
10474
+ variation_id: data["variationId"],
10475
+ )
10476
+ end
10477
+
10478
+ def to_h
10479
+ {
10480
+ type: Util.plain(@type),
10481
+ agent_pool_id: Util.plain(@agent_pool_id),
10482
+ workspace_id: Util.plain(@workspace_id),
10483
+ agent_id: Util.plain(@agent_id),
10484
+ variation_id: Util.plain(@variation_id),
10485
+ }.reject { |_k, v| v.nil? }
10486
+ end
10487
+ end
10488
+
9656
10489
  class RemoveAgentVariationAssignmentRequest_ToolId
9657
10490
  attr_reader :type, :tool_id, :workspace_id, :agent_id, :variation_id
9658
10491
 
@@ -9749,6 +10582,38 @@ module Cadenya
9749
10582
  end
9750
10583
  end
9751
10584
 
10585
+ class RemoveAgentVariationAssignmentRequest_AgentPoolId
10586
+ attr_reader :type, :agent_pool_id, :workspace_id, :agent_id, :variation_id
10587
+
10588
+ def initialize(type: nil, agent_pool_id: nil, workspace_id: nil, agent_id: nil, variation_id: nil)
10589
+ @type = type
10590
+ @agent_pool_id = agent_pool_id
10591
+ @workspace_id = workspace_id
10592
+ @agent_id = agent_id
10593
+ @variation_id = variation_id
10594
+ end
10595
+
10596
+ def self.from_json(data)
10597
+ new(
10598
+ type: data["type"],
10599
+ agent_pool_id: data["agentPoolId"],
10600
+ workspace_id: data["workspaceId"],
10601
+ agent_id: data["agentId"],
10602
+ variation_id: data["variationId"],
10603
+ )
10604
+ end
10605
+
10606
+ def to_h
10607
+ {
10608
+ type: Util.plain(@type),
10609
+ agent_pool_id: Util.plain(@agent_pool_id),
10610
+ workspace_id: Util.plain(@workspace_id),
10611
+ agent_id: Util.plain(@agent_id),
10612
+ variation_id: Util.plain(@variation_id),
10613
+ }.reject { |_k, v| v.nil? }
10614
+ end
10615
+ end
10616
+
9752
10617
  class AIProviderCredential_ApiKey
9753
10618
  attr_reader :type, :api_key
9754
10619
 
@@ -10117,6 +10982,52 @@ module Cadenya
10117
10982
  end
10118
10983
  end
10119
10984
 
10985
+ class CreateAndStreamObjectiveResponse_Objective
10986
+ attr_reader :type, :objective
10987
+
10988
+ def initialize(type: nil, objective: nil)
10989
+ @type = type
10990
+ @objective = objective
10991
+ end
10992
+
10993
+ def self.from_json(data)
10994
+ new(
10995
+ type: data["type"],
10996
+ objective: data["objective"].nil? ? nil : Types::Objective.from_json(data["objective"]),
10997
+ )
10998
+ end
10999
+
11000
+ def to_h
11001
+ {
11002
+ type: Util.plain(@type),
11003
+ objective: Util.plain(@objective),
11004
+ }.reject { |_k, v| v.nil? }
11005
+ end
11006
+ end
11007
+
11008
+ class CreateAndStreamObjectiveResponse_Event
11009
+ attr_reader :type, :event
11010
+
11011
+ def initialize(type: nil, event: nil)
11012
+ @type = type
11013
+ @event = event
11014
+ end
11015
+
11016
+ def self.from_json(data)
11017
+ new(
11018
+ type: data["type"],
11019
+ event: data["event"].nil? ? nil : Types::ObjectiveEvent.from_json(data["event"]),
11020
+ )
11021
+ end
11022
+
11023
+ def to_h
11024
+ {
11025
+ type: Util.plain(@type),
11026
+ event: Util.plain(@event),
11027
+ }.reject { |_k, v| v.nil? }
11028
+ end
11029
+ end
11030
+
10120
11031
  WidgetSessionErrorReason = ["TOKEN_EXPIRED", "SESSION_REVOKED", "SESSION_EXPIRED", "SESSION_EXHAUSTED"].freeze
10121
11032
 
10122
11033
  class WidgetSessionErrorInfo
@@ -10148,23 +11059,27 @@ module Cadenya
10148
11059
  end
10149
11060
  end
10150
11061
 
11062
+ AgentPoolServiceListAgentPoolsState = ["AGENT_POOL_STATE_UNSPECIFIED", "AGENT_POOL_STATE_ACTIVE", "AGENT_POOL_STATE_INACTIVE", "AGENT_POOL_STATE_ARCHIVED"].freeze
11063
+
10151
11064
  AgentServiceListAgentsState = ["STATE_UNSPECIFIED", "STATE_DRAFT", "STATE_PUBLISHED", "STATE_ARCHIVED"].freeze
10152
11065
 
10153
11066
  AgentServiceListAgentsVariationSelectionMode = ["VARIATION_SELECTION_MODE_UNSPECIFIED", "VARIATION_SELECTION_MODE_RANDOM", "VARIATION_SELECTION_MODE_WEIGHTED"].freeze
10154
11067
 
10155
11068
  AgentServiceListAgentFeedbackSentiment = ["FEEDBACK_SENTIMENT_UNSPECIFIED", "FEEDBACK_SENTIMENT_POSITIVE", "FEEDBACK_SENTIMENT_NEGATIVE"].freeze
10156
11069
 
10157
- 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", "OBJECTIVE_EVENT_TYPE_HEARTBEAT"].freeze
11070
+ 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", "OBJECTIVE_EVENT_TYPE_HEARTBEAT", "OBJECTIVE_EVENT_TYPE_INTERRUPTED"].freeze
10158
11071
 
10159
11072
  MemoryServiceListMemoryLayersType = ["MEMORY_LAYER_TYPE_UNSPECIFIED", "MEMORY_LAYER_TYPE_EPISODIC", "MEMORY_LAYER_TYPE_SKILLS"].freeze
10160
11073
 
10161
11074
  ModelServiceListModelsState = ["STATE_UNSPECIFIED", "STATE_ENABLED", "STATE_DISABLED"].freeze
10162
11075
 
10163
- 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
11076
+ 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", "OBJECTIVE_STATE_INTERRUPTING"].freeze
11077
+
11078
+ ObjectiveServiceListObjectiveQueuedActionsState = ["STATE_UNSPECIFIED", "STATE_QUEUED", "STATE_SENT", "STATE_REMOVED", "STATE_DISCARDED"].freeze
10164
11079
 
10165
11080
  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
10166
11081
 
10167
- ObjectiveServiceListObjectiveToolCallsExecutionStatus = ["TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED", "TOOL_CALL_EXECUTION_STATUS_PENDING", "TOOL_CALL_EXECUTION_STATUS_RUNNING", "TOOL_CALL_EXECUTION_STATUS_COMPLETED", "TOOL_CALL_EXECUTION_STATUS_ERRORED", "TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT"].freeze
11082
+ ObjectiveServiceListObjectiveToolCallsExecutionStatus = ["TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED", "TOOL_CALL_EXECUTION_STATUS_PENDING", "TOOL_CALL_EXECUTION_STATUS_RUNNING", "TOOL_CALL_EXECUTION_STATUS_COMPLETED", "TOOL_CALL_EXECUTION_STATUS_ERRORED", "TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT", "TOOL_CALL_EXECUTION_STATUS_INTERRUPTED"].freeze
10168
11083
 
10169
11084
  ToolServiceListToolSetsState = ["STATE_UNSPECIFIED", "STATE_ACTIVE", "STATE_ARCHIVED"].freeze
10170
11085
 
@@ -10295,11 +11210,44 @@ module Cadenya
10295
11210
  (->(_v) { encode_AddAgentVariationAssignmentRequest_ToolSetId(_v) }).call(data)
10296
11211
  when "subAgentId"
10297
11212
  (->(_v) { encode_AddAgentVariationAssignmentRequest_SubAgentId(_v) }).call(data)
11213
+ when "agentPoolId"
11214
+ (->(_v) { encode_AddAgentVariationAssignmentRequest_AgentPoolId(_v) }).call(data)
10298
11215
  else
10299
11216
  data
10300
11217
  end
10301
11218
  end
10302
11219
 
11220
+ ENCODE_AGENT_POOL_ASSIGNMENT = {
11221
+ "agent_id" => ["agentId", nil],
11222
+ "agentId" => ["agentId", nil],
11223
+ }.freeze
11224
+
11225
+ def self.encode_AgentPoolAssignment(data)
11226
+ encode_fields(ENCODE_AGENT_POOL_ASSIGNMENT, data)
11227
+ end
11228
+
11229
+ ENCODE_AGENT_POOL_SPEC = {
11230
+ "description" => ["description", nil],
11231
+ "state" => ["state", nil],
11232
+ "assignments" => ["assignments", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_AgentPoolAssignment(_v) }).call(_i) } : _v }],
11233
+ "instructions" => ["instructions", nil],
11234
+ }.freeze
11235
+
11236
+ def self.encode_AgentPoolSpec(data)
11237
+ encode_fields(ENCODE_AGENT_POOL_SPEC, data)
11238
+ end
11239
+
11240
+ ENCODE_AGENT_POOL_UPDATE_SPEC = {
11241
+ "description" => ["description", nil],
11242
+ "state" => ["state", nil],
11243
+ "assignments" => ["assignments", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_AgentPoolAssignment(_v) }).call(_i) } : _v }],
11244
+ "instructions" => ["instructions", nil],
11245
+ }.freeze
11246
+
11247
+ def self.encode_AgentPoolUpdateSpec(data)
11248
+ encode_fields(ENCODE_AGENT_POOL_UPDATE_SPEC, data)
11249
+ end
11250
+
10303
11251
  ENCODE_AGENT_SCHEDULE_SPEC = {
10304
11252
  "schedule" => ["schedule", ->(_v) { encode_AgentScheduleSpec_Schedule(_v) }],
10305
11253
  "overlap_policy" => ["overlapPolicy", nil],
@@ -10532,6 +11480,16 @@ module Cadenya
10532
11480
  encode_fields(ENCODE_CREATE_AGENT_VARIATION_REQUEST, data, drop: DROP_CREATE_AGENT_VARIATION_REQUEST)
10533
11481
  end
10534
11482
 
11483
+ ENCODE_CREATE_AND_STREAM_OBJECTIVE_REQUEST_METADATA = {
11484
+ "labels" => ["labels", nil],
11485
+ "external_id" => ["externalId", nil],
11486
+ "externalId" => ["externalId", nil],
11487
+ }.freeze
11488
+
11489
+ def self.encode_CreateAndStreamObjectiveRequest_Metadata(data)
11490
+ encode_fields(ENCODE_CREATE_AND_STREAM_OBJECTIVE_REQUEST_METADATA, data)
11491
+ end
11492
+
10535
11493
  ENCODE_CREATE_OBJECTIVE_REQUEST_SECRET = {
10536
11494
  "name" => ["name", nil],
10537
11495
  "value" => ["value", nil],
@@ -10680,6 +11638,8 @@ module Cadenya
10680
11638
  "inputPricePerMillionTokens" => ["inputPricePerMillionTokens", nil],
10681
11639
  "output_price_per_million_tokens" => ["outputPricePerMillionTokens", nil],
10682
11640
  "outputPricePerMillionTokens" => ["outputPricePerMillionTokens", nil],
11641
+ "cached_input_price_per_million_tokens" => ["cachedInputPricePerMillionTokens", nil],
11642
+ "cachedInputPricePerMillionTokens" => ["cachedInputPricePerMillionTokens", nil],
10683
11643
  }.freeze
10684
11644
 
10685
11645
  def self.encode_ModelPricingOverride(data)
@@ -10697,6 +11657,8 @@ module Cadenya
10697
11657
  "inputPricePerMillionTokens" => ["inputPricePerMillionTokens", nil],
10698
11658
  "output_price_per_million_tokens" => ["outputPricePerMillionTokens", nil],
10699
11659
  "outputPricePerMillionTokens" => ["outputPricePerMillionTokens", nil],
11660
+ "cached_input_price_per_million_tokens" => ["cachedInputPricePerMillionTokens", nil],
11661
+ "cachedInputPricePerMillionTokens" => ["cachedInputPricePerMillionTokens", nil],
10700
11662
  "capabilities" => ["capabilities", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_ModelSpec_Capability(_v) }).call(_i) } : _v }],
10701
11663
  "provider_model_id" => ["providerModelId", nil],
10702
11664
  "providerModelId" => ["providerModelId", nil],
@@ -10822,6 +11784,8 @@ module Cadenya
10822
11784
  (->(_v) { encode_RemoveAgentVariationAssignmentRequest_ToolSetId(_v) }).call(data)
10823
11785
  when "subAgentId"
10824
11786
  (->(_v) { encode_RemoveAgentVariationAssignmentRequest_SubAgentId(_v) }).call(data)
11787
+ when "agentPoolId"
11788
+ (->(_v) { encode_RemoveAgentVariationAssignmentRequest_AgentPoolId(_v) }).call(data)
10825
11789
  else
10826
11790
  data
10827
11791
  end
@@ -11202,12 +12166,22 @@ module Cadenya
11202
12166
  "description" => ["description", nil],
11203
12167
  "adapter" => ["adapter", ->(_v) { encode_ToolSetAdapter(_v) }],
11204
12168
  "overlays" => ["overlays", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_ToolOverlay(_v) }).call(_i) } : _v }],
12169
+ "secrets" => ["secrets", ->(_v) { _v.is_a?(Array) ? _v.map { |_i| (->(_v) { encode_ToolSetSpec_Secret(_v) }).call(_i) } : _v }],
11205
12170
  }.freeze
11206
12171
 
11207
12172
  def self.encode_ToolSetSpec(data)
11208
12173
  encode_fields(ENCODE_TOOL_SET_SPEC, data)
11209
12174
  end
11210
12175
 
12176
+ ENCODE_TOOL_SET_SPEC_SECRET = {
12177
+ "name" => ["name", nil],
12178
+ "value" => ["value", nil],
12179
+ }.freeze
12180
+
12181
+ def self.encode_ToolSetSpec_Secret(data)
12182
+ encode_fields(ENCODE_TOOL_SET_SPEC_SECRET, data)
12183
+ end
12184
+
11211
12185
  ENCODE_TOOL_SPEC = {
11212
12186
  "description" => ["description", nil],
11213
12187
  "requires_approval" => ["requiresApproval", nil],
@@ -11289,6 +12263,8 @@ module Cadenya
11289
12263
  (->(_v) { encode_VariationAssignment_ToolSetId(_v) }).call(data)
11290
12264
  when "subAgentId"
11291
12265
  (->(_v) { encode_VariationAssignment_SubAgentId(_v) }).call(data)
12266
+ when "agentPoolId"
12267
+ (->(_v) { encode_VariationAssignment_AgentPoolId(_v) }).call(data)
11292
12268
  else
11293
12269
  data
11294
12270
  end
@@ -11390,6 +12366,16 @@ module Cadenya
11390
12366
  encode_fields(ENCODE_VARIATION_ASSIGNMENT_SUB_AGENT_ID, data)
11391
12367
  end
11392
12368
 
12369
+ ENCODE_VARIATION_ASSIGNMENT_AGENT_POOL_ID = {
12370
+ "type" => ["type", nil],
12371
+ "agent_pool_id" => ["agentPoolId", nil],
12372
+ "agentPoolId" => ["agentPoolId", nil],
12373
+ }.freeze
12374
+
12375
+ def self.encode_VariationAssignment_AgentPoolId(data)
12376
+ encode_fields(ENCODE_VARIATION_ASSIGNMENT_AGENT_POOL_ID, data)
12377
+ end
12378
+
11393
12379
  ENCODE_TOOL_SET_ADAPTER_MCP_VARIANT = {
11394
12380
  "type" => ["type", nil],
11395
12381
  "mcp" => ["mcp", ->(_v) { encode_ToolSetAdapter_MCP(_v) }],
@@ -11728,6 +12714,18 @@ module Cadenya
11728
12714
  encode_fields(ENCODE_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID, data, drop: DROP_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID)
11729
12715
  end
11730
12716
 
12717
+ ENCODE_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID = {
12718
+ "type" => ["type", nil],
12719
+ "agent_pool_id" => ["agentPoolId", nil],
12720
+ "agentPoolId" => ["agentPoolId", nil],
12721
+ }.freeze
12722
+
12723
+ DROP_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID = ["agentId", "agent_id", "variationId", "variation_id", "workspaceId", "workspace_id"].freeze
12724
+
12725
+ def self.encode_AddAgentVariationAssignmentRequest_AgentPoolId(data)
12726
+ encode_fields(ENCODE_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID, data, drop: DROP_ADD_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID)
12727
+ end
12728
+
11731
12729
  ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_TOOL_ID = {
11732
12730
  "type" => ["type", nil],
11733
12731
  "tool_id" => ["toolId", nil],
@@ -11764,6 +12762,18 @@ module Cadenya
11764
12762
  encode_fields(ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID, data, drop: DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_SUB_AGENT_ID)
11765
12763
  end
11766
12764
 
12765
+ ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID = {
12766
+ "type" => ["type", nil],
12767
+ "agent_pool_id" => ["agentPoolId", nil],
12768
+ "agentPoolId" => ["agentPoolId", nil],
12769
+ }.freeze
12770
+
12771
+ DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID = ["agentId", "agent_id", "variationId", "variation_id", "workspaceId", "workspace_id"].freeze
12772
+
12773
+ def self.encode_RemoveAgentVariationAssignmentRequest_AgentPoolId(data)
12774
+ encode_fields(ENCODE_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID, data, drop: DROP_REMOVE_AGENT_VARIATION_ASSIGNMENT_REQUEST_AGENT_POOL_ID)
12775
+ end
12776
+
11767
12777
  ENCODE_AI_PROVIDER_CREDENTIAL_API_KEY = {
11768
12778
  "type" => ["type", nil],
11769
12779
  "api_key" => ["apiKey", ->(_v) { encode_CredentialAPIKey(_v) }],