aws-sdk-bedrockagentruntime 1.75.0 → 1.77.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(:bedrockagentruntime)
23
23
  # structure.
24
24
  #
25
25
  # bedrock_agent_runtime = Aws::BedrockAgentRuntime::Client.new
26
- # resp = bedrock_agent_runtime.create_invocation(params)
26
+ # resp = bedrock_agent_runtime.agentic_retrieve_stream(params)
27
27
  #
28
28
  # See {Client} for more information.
29
29
  #
@@ -56,7 +56,7 @@ module Aws::BedrockAgentRuntime
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
58
58
 
59
- GEM_VERSION = '1.75.0'
59
+ GEM_VERSION = '1.77.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -81,6 +81,69 @@ module Aws
81
81
  | (?Hash[Symbol, untyped]) -> instance
82
82
 
83
83
 
84
+ interface _AgenticRetrieveStreamResponseSuccess
85
+ include ::Seahorse::Client::_ResponseSuccess[Types::AgenticRetrieveStreamResponse]
86
+ def stream: () -> Types::AgenticRetrieveStreamResponseOutput
87
+ end
88
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#agentic_retrieve_stream-instance_method
89
+ def agentic_retrieve_stream: (
90
+ agentic_retrieve_configuration: {
91
+ foundation_model_configuration: {
92
+ bedrock_foundation_model_configuration: {
93
+ model_configuration: {
94
+ model_arn: ::String
95
+ }
96
+ }?,
97
+ type: ("BEDROCK_FOUNDATION_MODEL")
98
+ }?,
99
+ foundation_model_type: ("CUSTOM" | "MANAGED")?,
100
+ max_agent_iteration: ::Integer?,
101
+ reranking_configuration: {
102
+ bedrock_reranking_configuration: {
103
+ model_configuration: {
104
+ model_arn: ::String
105
+ }
106
+ }?,
107
+ type: ("BEDROCK_RERANKING_MODEL")
108
+ }?,
109
+ reranking_model_type: ("CUSTOM" | "MANAGED" | "NONE")?
110
+ },
111
+ ?generate_response: bool,
112
+ messages: Array[
113
+ {
114
+ content: {
115
+ text: ::String?
116
+ },
117
+ role: ("user" | "assistant")
118
+ }
119
+ ],
120
+ ?next_token: ::String,
121
+ ?policy_configuration: {
122
+ bedrock_guardrail_configuration: {
123
+ guardrail_id: ::String,
124
+ guardrail_version: ::String
125
+ }?
126
+ },
127
+ retrievers: Array[
128
+ {
129
+ configuration: {
130
+ knowledge_base: {
131
+ knowledge_base_id: ::String,
132
+ retrieval_overrides: {
133
+ filter: Params::retrieval_filter?,
134
+ max_number_of_results: ::Integer?
135
+ }?
136
+ }?
137
+ },
138
+ description: ::String?
139
+ }
140
+ ],
141
+ ?user_context: {
142
+ user_id: ::String
143
+ }
144
+ ) ?{ (*untyped) -> void } -> _AgenticRetrieveStreamResponseSuccess
145
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _AgenticRetrieveStreamResponseSuccess
146
+
84
147
  interface _CreateInvocationResponseSuccess
85
148
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateInvocationResponse]
86
149
  def created_at: () -> ::Time
@@ -181,6 +244,24 @@ module Aws
181
244
  ) -> _GetAgentMemoryResponseSuccess
182
245
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAgentMemoryResponseSuccess
183
246
 
247
+ interface _GetDocumentContentResponseSuccess
248
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetDocumentContentResponse]
249
+ def document_content_length: () -> ::Integer
250
+ def mime_type: () -> ::String
251
+ def presigned_url: () -> ::String
252
+ end
253
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_document_content-instance_method
254
+ def get_document_content: (
255
+ data_source_id: ::String,
256
+ document_id: ::String,
257
+ knowledge_base_id: ::String,
258
+ ?output_format: ("RAW" | "EXTRACTED"),
259
+ ?user_context: {
260
+ user_id: ::String
261
+ }
262
+ ) -> _GetDocumentContentResponseSuccess
263
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDocumentContentResponseSuccess
264
+
184
265
  interface _GetExecutionFlowSnapshotResponseSuccess
185
266
  include ::Seahorse::Client::_ResponseSuccess[Types::GetExecutionFlowSnapshotResponse]
186
267
  def customer_encryption_key_arn: () -> ::String
@@ -606,6 +687,9 @@ module Aws
606
687
  }?,
607
688
  text: ::String?,
608
689
  type: ("TEXT" | "IMAGE")?
690
+ },
691
+ ?user_context: {
692
+ user_id: ::String
609
693
  }
610
694
  ) -> _RetrieveResponseSuccess
611
695
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveResponseSuccess
@@ -626,7 +710,10 @@ module Aws
626
710
  ?session_configuration: {
627
711
  kms_key_arn: ::String
628
712
  },
629
- ?session_id: ::String
713
+ ?session_id: ::String,
714
+ ?user_context: {
715
+ user_id: ::String
716
+ }
630
717
  ) -> _RetrieveAndGenerateResponseSuccess
631
718
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveAndGenerateResponseSuccess
632
719
 
@@ -644,7 +731,10 @@ module Aws
644
731
  ?session_configuration: {
645
732
  kms_key_arn: ::String
646
733
  },
647
- ?session_id: ::String
734
+ ?session_id: ::String,
735
+ ?user_context: {
736
+ user_id: ::String
737
+ }
648
738
  ) ?{ (*untyped) -> void } -> _RetrieveAndGenerateStreamResponseSuccess
649
739
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _RetrieveAndGenerateStreamResponseSuccess
650
740
 
data/sig/params.rbs CHANGED
@@ -8,36 +8,6 @@
8
8
  module Aws
9
9
  module BedrockAgentRuntime
10
10
  module Params
11
- type conversation_history = {
12
- messages: Array[
13
- {
14
- content: Array[
15
- {
16
- text: ::String?
17
- }
18
- ],
19
- role: ("user" | "assistant")
20
- }
21
- ]?
22
- }
23
-
24
- type file_source = {
25
- byte_content: {
26
- data: ::String,
27
- media_type: ::String
28
- }?,
29
- s3_location: {
30
- uri: ::String
31
- }?,
32
- source_type: ("S3" | "BYTE_CONTENT")
33
- }
34
-
35
- type input_file = {
36
- name: ::String,
37
- source: Params::file_source,
38
- use_case: ("CODE_INTERPRETER" | "CHAT")
39
- }
40
-
41
11
  type retrieval_filter = {
42
12
  and_all: Array[
43
13
  {
@@ -218,15 +188,34 @@ module Aws
218
188
  }?
219
189
  }
220
190
 
221
- type implicit_filter_configuration = {
222
- metadata_attributes: Array[
191
+ type conversation_history = {
192
+ messages: Array[
223
193
  {
224
- description: ::String,
225
- key: ::String,
226
- type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
194
+ content: Array[
195
+ {
196
+ text: ::String?
197
+ }
198
+ ],
199
+ role: ("user" | "assistant")
227
200
  }
228
- ],
229
- model_arn: ::String
201
+ ]?
202
+ }
203
+
204
+ type file_source = {
205
+ byte_content: {
206
+ data: ::String,
207
+ media_type: ::String
208
+ }?,
209
+ s3_location: {
210
+ uri: ::String
211
+ }?,
212
+ source_type: ("S3" | "BYTE_CONTENT")
213
+ }
214
+
215
+ type input_file = {
216
+ name: ::String,
217
+ source: Params::file_source,
218
+ use_case: ("CODE_INTERPRETER" | "CHAT")
230
219
  }
231
220
 
232
221
  type reranking_metadata_selective_mode_configuration = {
@@ -247,6 +236,39 @@ module Aws
247
236
  selective_mode_configuration: Params::reranking_metadata_selective_mode_configuration?
248
237
  }
249
238
 
239
+ type managed_search_bedrock_reranking_configuration = {
240
+ metadata_configuration: Params::metadata_configuration_for_reranking?,
241
+ model_configuration: {
242
+ additional_model_request_fields: Hash[::String, {
243
+ }]?,
244
+ model_arn: ::String
245
+ },
246
+ number_of_reranked_results: ::Integer?
247
+ }
248
+
249
+ type managed_search_reranking_configuration = {
250
+ bedrock_reranking_configuration: Params::managed_search_bedrock_reranking_configuration?,
251
+ type: ("BEDROCK_RERANKING_MODEL")
252
+ }
253
+
254
+ type managed_search_configuration = {
255
+ filter: Params::retrieval_filter?,
256
+ number_of_results: ::Integer?,
257
+ reranking_configuration: Params::managed_search_reranking_configuration?,
258
+ reranking_model_type: ("CUSTOM" | "MANAGED" | "NONE")?
259
+ }
260
+
261
+ type implicit_filter_configuration = {
262
+ metadata_attributes: Array[
263
+ {
264
+ description: ::String,
265
+ key: ::String,
266
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
267
+ }
268
+ ],
269
+ model_arn: ::String
270
+ }
271
+
250
272
  type vector_search_bedrock_reranking_configuration = {
251
273
  metadata_configuration: Params::metadata_configuration_for_reranking?,
252
274
  model_configuration: {
@@ -271,7 +293,8 @@ module Aws
271
293
  }
272
294
 
273
295
  type knowledge_base_retrieval_configuration = {
274
- vector_search_configuration: Params::knowledge_base_vector_search_configuration
296
+ managed_search_configuration: Params::managed_search_configuration?,
297
+ vector_search_configuration: Params::knowledge_base_vector_search_configuration?
275
298
  }
276
299
 
277
300
  type api_result = {