aws-sdk-bedrockagentcore 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.
@@ -23,7 +23,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:bedrockagentcore)
23
23
  # structure.
24
24
  #
25
25
  # bedrock_agent_core = Aws::BedrockAgentCore::Client.new
26
- # resp = bedrock_agent_core.create_event(params)
26
+ # resp = bedrock_agent_core.batch_create_memory_records(params)
27
27
  #
28
28
  # See {Client} for more information.
29
29
  #
@@ -56,7 +56,7 @@ module Aws::BedrockAgentCore
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagentcore/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-bedrockagentcore/event_streams'
58
58
 
59
- GEM_VERSION = '1.5.0'
59
+ GEM_VERSION = '1.7.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -81,6 +81,67 @@ module Aws
81
81
  | (?Hash[Symbol, untyped]) -> instance
82
82
 
83
83
 
84
+ interface _BatchCreateMemoryRecordsResponseSuccess
85
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchCreateMemoryRecordsOutput]
86
+ def successful_records: () -> ::Array[Types::MemoryRecordOutput]
87
+ def failed_records: () -> ::Array[Types::MemoryRecordOutput]
88
+ end
89
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#batch_create_memory_records-instance_method
90
+ def batch_create_memory_records: (
91
+ memory_id: ::String,
92
+ records: Array[
93
+ {
94
+ request_identifier: ::String,
95
+ namespaces: Array[::String],
96
+ content: {
97
+ text: ::String?
98
+ },
99
+ timestamp: ::Time,
100
+ memory_strategy_id: ::String?
101
+ },
102
+ ],
103
+ ?client_token: ::String
104
+ ) -> _BatchCreateMemoryRecordsResponseSuccess
105
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchCreateMemoryRecordsResponseSuccess
106
+
107
+ interface _BatchDeleteMemoryRecordsResponseSuccess
108
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchDeleteMemoryRecordsOutput]
109
+ def successful_records: () -> ::Array[Types::MemoryRecordOutput]
110
+ def failed_records: () -> ::Array[Types::MemoryRecordOutput]
111
+ end
112
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#batch_delete_memory_records-instance_method
113
+ def batch_delete_memory_records: (
114
+ memory_id: ::String,
115
+ records: Array[
116
+ {
117
+ memory_record_id: ::String
118
+ },
119
+ ]
120
+ ) -> _BatchDeleteMemoryRecordsResponseSuccess
121
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteMemoryRecordsResponseSuccess
122
+
123
+ interface _BatchUpdateMemoryRecordsResponseSuccess
124
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchUpdateMemoryRecordsOutput]
125
+ def successful_records: () -> ::Array[Types::MemoryRecordOutput]
126
+ def failed_records: () -> ::Array[Types::MemoryRecordOutput]
127
+ end
128
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#batch_update_memory_records-instance_method
129
+ def batch_update_memory_records: (
130
+ memory_id: ::String,
131
+ records: Array[
132
+ {
133
+ memory_record_id: ::String,
134
+ timestamp: ::Time,
135
+ content: {
136
+ text: ::String?
137
+ }?,
138
+ namespaces: Array[::String]?,
139
+ memory_strategy_id: ::String?
140
+ },
141
+ ]
142
+ ) -> _BatchUpdateMemoryRecordsResponseSuccess
143
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchUpdateMemoryRecordsResponseSuccess
144
+
84
145
  interface _CreateEventResponseSuccess
85
146
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateEventOutput]
86
147
  def event: () -> Types::Event
@@ -107,7 +168,10 @@ module Aws
107
168
  root_event_id: ::String?,
108
169
  name: ::String
109
170
  },
110
- ?client_token: ::String
171
+ ?client_token: ::String,
172
+ ?metadata: Hash[::String, {
173
+ string_value: ::String?
174
+ }]
111
175
  ) -> _CreateEventResponseSuccess
112
176
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventResponseSuccess
113
177
 
@@ -135,6 +199,20 @@ module Aws
135
199
  ) -> _DeleteMemoryRecordResponseSuccess
136
200
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMemoryRecordResponseSuccess
137
201
 
202
+ interface _GetAgentCardResponseSuccess
203
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAgentCardResponse]
204
+ def runtime_session_id: () -> ::String
205
+ def agent_card: () -> untyped
206
+ def status_code: () -> ::Integer
207
+ end
208
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_agent_card-instance_method
209
+ def get_agent_card: (
210
+ ?runtime_session_id: ::String,
211
+ agent_runtime_arn: ::String,
212
+ ?qualifier: ::String
213
+ ) -> _GetAgentCardResponseSuccess
214
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAgentCardResponseSuccess
215
+
138
216
  interface _GetBrowserSessionResponseSuccess
139
217
  include ::Seahorse::Client::_ResponseSuccess[Types::GetBrowserSessionResponse]
140
218
  def browser_identifier: () -> ::String
@@ -295,6 +373,8 @@ module Aws
295
373
  def invoke_code_interpreter: (
296
374
  code_interpreter_identifier: ::String,
297
375
  ?session_id: ::String,
376
+ ?trace_id: ::String,
377
+ ?trace_parent: ::String,
298
378
  name: ("executeCode" | "executeCommand" | "readFiles" | "listFiles" | "removeFiles" | "writeFiles" | "startCommandExecution" | "getTask" | "stopTask"),
299
379
  ?arguments: {
300
380
  code: ::String?,
@@ -372,7 +452,20 @@ module Aws
372
452
  branch: {
373
453
  name: ::String,
374
454
  include_parent_branches: bool?
375
- }?
455
+ }?,
456
+ event_metadata: Array[
457
+ {
458
+ left: {
459
+ metadata_key: ::String?
460
+ },
461
+ operator: ("EQUALS_TO" | "EXISTS" | "NOT_EXISTS"),
462
+ right: {
463
+ metadata_value: {
464
+ string_value: ::String?
465
+ }?
466
+ }?
467
+ },
468
+ ]?
376
469
  },
377
470
  ?max_results: ::Integer,
378
471
  ?next_token: ::String
@@ -436,6 +529,8 @@ module Aws
436
529
  end
437
530
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#start_browser_session-instance_method
438
531
  def start_browser_session: (
532
+ ?trace_id: ::String,
533
+ ?trace_parent: ::String,
439
534
  browser_identifier: ::String,
440
535
  ?name: ::String,
441
536
  ?session_timeout_seconds: ::Integer,
@@ -455,6 +550,8 @@ module Aws
455
550
  end
456
551
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#start_code_interpreter_session-instance_method
457
552
  def start_code_interpreter_session: (
553
+ ?trace_id: ::String,
554
+ ?trace_parent: ::String,
458
555
  code_interpreter_identifier: ::String,
459
556
  ?name: ::String,
460
557
  ?session_timeout_seconds: ::Integer,
@@ -470,6 +567,8 @@ module Aws
470
567
  end
471
568
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#stop_browser_session-instance_method
472
569
  def stop_browser_session: (
570
+ ?trace_id: ::String,
571
+ ?trace_parent: ::String,
473
572
  browser_identifier: ::String,
474
573
  session_id: ::String,
475
574
  ?client_token: ::String
@@ -484,12 +583,28 @@ module Aws
484
583
  end
485
584
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#stop_code_interpreter_session-instance_method
486
585
  def stop_code_interpreter_session: (
586
+ ?trace_id: ::String,
587
+ ?trace_parent: ::String,
487
588
  code_interpreter_identifier: ::String,
488
589
  session_id: ::String,
489
590
  ?client_token: ::String
490
591
  ) -> _StopCodeInterpreterSessionResponseSuccess
491
592
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopCodeInterpreterSessionResponseSuccess
492
593
 
594
+ interface _StopRuntimeSessionResponseSuccess
595
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopRuntimeSessionResponse]
596
+ def runtime_session_id: () -> ::String
597
+ def status_code: () -> ::Integer
598
+ end
599
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#stop_runtime_session-instance_method
600
+ def stop_runtime_session: (
601
+ runtime_session_id: ::String,
602
+ agent_runtime_arn: ::String,
603
+ ?qualifier: ::String,
604
+ ?client_token: ::String
605
+ ) -> _StopRuntimeSessionResponseSuccess
606
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopRuntimeSessionResponseSuccess
607
+
493
608
  interface _UpdateBrowserStreamResponseSuccess
494
609
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateBrowserStreamResponse]
495
610
  def browser_identifier: () -> ::String
data/sig/types.rbs CHANGED
@@ -30,6 +30,43 @@ module Aws::BedrockAgentCore
30
30
  SENSITIVE: []
31
31
  end
32
32
 
33
+ class BatchCreateMemoryRecordsInput
34
+ attr_accessor memory_id: ::String
35
+ attr_accessor records: ::Array[Types::MemoryRecordCreateInput]
36
+ attr_accessor client_token: ::String
37
+ SENSITIVE: []
38
+ end
39
+
40
+ class BatchCreateMemoryRecordsOutput
41
+ attr_accessor successful_records: ::Array[Types::MemoryRecordOutput]
42
+ attr_accessor failed_records: ::Array[Types::MemoryRecordOutput]
43
+ SENSITIVE: []
44
+ end
45
+
46
+ class BatchDeleteMemoryRecordsInput
47
+ attr_accessor memory_id: ::String
48
+ attr_accessor records: ::Array[Types::MemoryRecordDeleteInput]
49
+ SENSITIVE: []
50
+ end
51
+
52
+ class BatchDeleteMemoryRecordsOutput
53
+ attr_accessor successful_records: ::Array[Types::MemoryRecordOutput]
54
+ attr_accessor failed_records: ::Array[Types::MemoryRecordOutput]
55
+ SENSITIVE: []
56
+ end
57
+
58
+ class BatchUpdateMemoryRecordsInput
59
+ attr_accessor memory_id: ::String
60
+ attr_accessor records: ::Array[Types::MemoryRecordUpdateInput]
61
+ SENSITIVE: []
62
+ end
63
+
64
+ class BatchUpdateMemoryRecordsOutput
65
+ attr_accessor successful_records: ::Array[Types::MemoryRecordOutput]
66
+ attr_accessor failed_records: ::Array[Types::MemoryRecordOutput]
67
+ SENSITIVE: []
68
+ end
69
+
33
70
  class Branch
34
71
  attr_accessor root_event_id: ::String
35
72
  attr_accessor name: ::String
@@ -120,6 +157,7 @@ module Aws::BedrockAgentCore
120
157
  attr_accessor payload: ::Array[Types::PayloadType]
121
158
  attr_accessor branch: Types::Branch
122
159
  attr_accessor client_token: ::String
160
+ attr_accessor metadata: ::Hash[::String, Types::MetadataValue]
123
161
  SENSITIVE: []
124
162
  end
125
163
 
@@ -160,11 +198,34 @@ module Aws::BedrockAgentCore
160
198
  attr_accessor event_timestamp: ::Time
161
199
  attr_accessor payload: ::Array[Types::PayloadType]
162
200
  attr_accessor branch: Types::Branch
201
+ attr_accessor metadata: ::Hash[::String, Types::MetadataValue]
202
+ SENSITIVE: []
203
+ end
204
+
205
+ class EventMetadataFilterExpression
206
+ attr_accessor left: Types::LeftExpression
207
+ attr_accessor operator: ("EQUALS_TO" | "EXISTS" | "NOT_EXISTS")
208
+ attr_accessor right: Types::RightExpression
163
209
  SENSITIVE: []
164
210
  end
165
211
 
166
212
  class FilterInput
167
213
  attr_accessor branch: Types::BranchFilter
214
+ attr_accessor event_metadata: ::Array[Types::EventMetadataFilterExpression]
215
+ SENSITIVE: []
216
+ end
217
+
218
+ class GetAgentCardRequest
219
+ attr_accessor runtime_session_id: ::String
220
+ attr_accessor agent_runtime_arn: ::String
221
+ attr_accessor qualifier: ::String
222
+ SENSITIVE: []
223
+ end
224
+
225
+ class GetAgentCardResponse
226
+ attr_accessor runtime_session_id: ::String
227
+ attr_accessor agent_card: untyped
228
+ attr_accessor status_code: ::Integer
168
229
  SENSITIVE: []
169
230
  end
170
231
 
@@ -340,6 +401,8 @@ module Aws::BedrockAgentCore
340
401
  class InvokeCodeInterpreterRequest
341
402
  attr_accessor code_interpreter_identifier: ::String
342
403
  attr_accessor session_id: ::String
404
+ attr_accessor trace_id: ::String
405
+ attr_accessor trace_parent: ::String
343
406
  attr_accessor name: ("executeCode" | "executeCommand" | "readFiles" | "listFiles" | "removeFiles" | "writeFiles" | "startCommandExecution" | "getTask" | "stopTask")
344
407
  attr_accessor arguments: Types::ToolArguments
345
408
  SENSITIVE: []
@@ -351,6 +414,17 @@ module Aws::BedrockAgentCore
351
414
  SENSITIVE: []
352
415
  end
353
416
 
417
+ class LeftExpression
418
+ attr_accessor metadata_key: ::String
419
+ attr_accessor unknown: untyped
420
+ SENSITIVE: []
421
+
422
+ class MetadataKey < LeftExpression
423
+ end
424
+ class Unknown < LeftExpression
425
+ end
426
+ end
427
+
354
428
  class ListActorsInput
355
429
  attr_accessor memory_id: ::String
356
430
  attr_accessor max_results: ::Integer
@@ -463,6 +537,29 @@ module Aws::BedrockAgentCore
463
537
  SENSITIVE: []
464
538
  end
465
539
 
540
+ class MemoryRecordCreateInput
541
+ attr_accessor request_identifier: ::String
542
+ attr_accessor namespaces: ::Array[::String]
543
+ attr_accessor content: Types::MemoryContent
544
+ attr_accessor timestamp: ::Time
545
+ attr_accessor memory_strategy_id: ::String
546
+ SENSITIVE: []
547
+ end
548
+
549
+ class MemoryRecordDeleteInput
550
+ attr_accessor memory_record_id: ::String
551
+ SENSITIVE: []
552
+ end
553
+
554
+ class MemoryRecordOutput
555
+ attr_accessor memory_record_id: ::String
556
+ attr_accessor status: ("SUCCEEDED" | "FAILED")
557
+ attr_accessor request_identifier: ::String
558
+ attr_accessor error_code: ::Integer
559
+ attr_accessor error_message: ::String
560
+ SENSITIVE: []
561
+ end
562
+
466
563
  class MemoryRecordSummary
467
564
  attr_accessor memory_record_id: ::String
468
565
  attr_accessor content: Types::MemoryContent
@@ -473,6 +570,26 @@ module Aws::BedrockAgentCore
473
570
  SENSITIVE: []
474
571
  end
475
572
 
573
+ class MemoryRecordUpdateInput
574
+ attr_accessor memory_record_id: ::String
575
+ attr_accessor timestamp: ::Time
576
+ attr_accessor content: Types::MemoryContent
577
+ attr_accessor namespaces: ::Array[::String]
578
+ attr_accessor memory_strategy_id: ::String
579
+ SENSITIVE: []
580
+ end
581
+
582
+ class MetadataValue
583
+ attr_accessor string_value: ::String
584
+ attr_accessor unknown: untyped
585
+ SENSITIVE: []
586
+
587
+ class StringValue < MetadataValue
588
+ end
589
+ class Unknown < MetadataValue
590
+ end
591
+ end
592
+
476
593
  class PayloadType
477
594
  attr_accessor conversational: Types::Conversational
478
595
  attr_accessor blob: untyped
@@ -517,6 +634,17 @@ module Aws::BedrockAgentCore
517
634
  SENSITIVE: []
518
635
  end
519
636
 
637
+ class RightExpression
638
+ attr_accessor metadata_value: Types::MetadataValue
639
+ attr_accessor unknown: untyped
640
+ SENSITIVE: []
641
+
642
+ class MetadataValue < RightExpression
643
+ end
644
+ class Unknown < RightExpression
645
+ end
646
+ end
647
+
520
648
  class RuntimeClientError
521
649
  attr_accessor message: ::String
522
650
  SENSITIVE: []
@@ -548,6 +676,8 @@ module Aws::BedrockAgentCore
548
676
  end
549
677
 
550
678
  class StartBrowserSessionRequest
679
+ attr_accessor trace_id: ::String
680
+ attr_accessor trace_parent: ::String
551
681
  attr_accessor browser_identifier: ::String
552
682
  attr_accessor name: ::String
553
683
  attr_accessor session_timeout_seconds: ::Integer
@@ -565,6 +695,8 @@ module Aws::BedrockAgentCore
565
695
  end
566
696
 
567
697
  class StartCodeInterpreterSessionRequest
698
+ attr_accessor trace_id: ::String
699
+ attr_accessor trace_parent: ::String
568
700
  attr_accessor code_interpreter_identifier: ::String
569
701
  attr_accessor name: ::String
570
702
  attr_accessor session_timeout_seconds: ::Integer
@@ -580,6 +712,8 @@ module Aws::BedrockAgentCore
580
712
  end
581
713
 
582
714
  class StopBrowserSessionRequest
715
+ attr_accessor trace_id: ::String
716
+ attr_accessor trace_parent: ::String
583
717
  attr_accessor browser_identifier: ::String
584
718
  attr_accessor session_id: ::String
585
719
  attr_accessor client_token: ::String
@@ -594,6 +728,8 @@ module Aws::BedrockAgentCore
594
728
  end
595
729
 
596
730
  class StopCodeInterpreterSessionRequest
731
+ attr_accessor trace_id: ::String
732
+ attr_accessor trace_parent: ::String
597
733
  attr_accessor code_interpreter_identifier: ::String
598
734
  attr_accessor session_id: ::String
599
735
  attr_accessor client_token: ::String
@@ -607,6 +743,20 @@ module Aws::BedrockAgentCore
607
743
  SENSITIVE: []
608
744
  end
609
745
 
746
+ class StopRuntimeSessionRequest
747
+ attr_accessor runtime_session_id: ::String
748
+ attr_accessor agent_runtime_arn: ::String
749
+ attr_accessor qualifier: ::String
750
+ attr_accessor client_token: ::String
751
+ SENSITIVE: []
752
+ end
753
+
754
+ class StopRuntimeSessionResponse
755
+ attr_accessor runtime_session_id: ::String
756
+ attr_accessor status_code: ::Integer
757
+ SENSITIVE: []
758
+ end
759
+
610
760
  class StreamUpdate
611
761
  attr_accessor automation_stream_update: Types::AutomationStreamUpdate
612
762
  attr_accessor unknown: untyped
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services