aws-sdk-bedrockagentruntime 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +3009 -2950
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +404 -379
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +140 -140
- data/lib/aws-sdk-bedrockagentruntime/types.rb +2102 -1986
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +891 -886
- data/sig/types.rbs +411 -389
- metadata +1 -1
data/sig/client.rbs
CHANGED
|
@@ -83,29 +83,29 @@ module Aws
|
|
|
83
83
|
|
|
84
84
|
interface _CreateInvocationResponseSuccess
|
|
85
85
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateInvocationResponse]
|
|
86
|
-
def session_id: () -> ::String
|
|
87
|
-
def invocation_id: () -> ::String
|
|
88
86
|
def created_at: () -> ::Time
|
|
87
|
+
def invocation_id: () -> ::String
|
|
88
|
+
def session_id: () -> ::String
|
|
89
89
|
end
|
|
90
90
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#create_invocation-instance_method
|
|
91
91
|
def create_invocation: (
|
|
92
|
-
?invocation_id: ::String,
|
|
93
92
|
?description: ::String,
|
|
93
|
+
?invocation_id: ::String,
|
|
94
94
|
session_identifier: ::String
|
|
95
95
|
) -> _CreateInvocationResponseSuccess
|
|
96
96
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateInvocationResponseSuccess
|
|
97
97
|
|
|
98
98
|
interface _CreateSessionResponseSuccess
|
|
99
99
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateSessionResponse]
|
|
100
|
-
def
|
|
100
|
+
def created_at: () -> ::Time
|
|
101
101
|
def session_arn: () -> ::String
|
|
102
|
+
def session_id: () -> ::String
|
|
102
103
|
def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
|
|
103
|
-
def created_at: () -> ::Time
|
|
104
104
|
end
|
|
105
105
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#create_session-instance_method
|
|
106
106
|
def create_session: (
|
|
107
|
-
?session_metadata: Hash[::String, ::String],
|
|
108
107
|
?encryption_key_arn: ::String,
|
|
108
|
+
?session_metadata: Hash[::String, ::String],
|
|
109
109
|
?tags: Hash[::String, ::String]
|
|
110
110
|
) -> _CreateSessionResponseSuccess
|
|
111
111
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSessionResponseSuccess
|
|
@@ -115,8 +115,8 @@ module Aws
|
|
|
115
115
|
end
|
|
116
116
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#delete_agent_memory-instance_method
|
|
117
117
|
def delete_agent_memory: (
|
|
118
|
-
agent_id: ::String,
|
|
119
118
|
agent_alias_id: ::String,
|
|
119
|
+
agent_id: ::String,
|
|
120
120
|
?memory_id: ::String,
|
|
121
121
|
?session_id: ::String
|
|
122
122
|
) -> _DeleteAgentMemoryResponseSuccess
|
|
@@ -133,8 +133,8 @@ module Aws
|
|
|
133
133
|
|
|
134
134
|
interface _EndSessionResponseSuccess
|
|
135
135
|
include ::Seahorse::Client::_ResponseSuccess[Types::EndSessionResponse]
|
|
136
|
-
def session_id: () -> ::String
|
|
137
136
|
def session_arn: () -> ::String
|
|
137
|
+
def session_id: () -> ::String
|
|
138
138
|
def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
|
|
139
139
|
end
|
|
140
140
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#end_session-instance_method
|
|
@@ -150,16 +150,16 @@ module Aws
|
|
|
150
150
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#generate_query-instance_method
|
|
151
151
|
def generate_query: (
|
|
152
152
|
query_generation_input: {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
text: ::String,
|
|
154
|
+
type: ("TEXT")
|
|
155
155
|
},
|
|
156
156
|
transformation_configuration: {
|
|
157
157
|
mode: ("TEXT_TO_SQL"),
|
|
158
158
|
text_to_sql_configuration: {
|
|
159
|
-
type: ("KNOWLEDGE_BASE"),
|
|
160
159
|
knowledge_base_configuration: {
|
|
161
160
|
knowledge_base_arn: ::String
|
|
162
|
-
}
|
|
161
|
+
}?,
|
|
162
|
+
type: ("KNOWLEDGE_BASE")
|
|
163
163
|
}?
|
|
164
164
|
}
|
|
165
165
|
) -> _GenerateQueryResponseSuccess
|
|
@@ -167,53 +167,53 @@ module Aws
|
|
|
167
167
|
|
|
168
168
|
interface _GetAgentMemoryResponseSuccess
|
|
169
169
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetAgentMemoryResponse]
|
|
170
|
-
def next_token: () -> ::String
|
|
171
170
|
def memory_contents: () -> ::Array[Types::Memory]
|
|
171
|
+
def next_token: () -> ::String
|
|
172
172
|
end
|
|
173
173
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_agent_memory-instance_method
|
|
174
174
|
def get_agent_memory: (
|
|
175
|
-
?next_token: ::String,
|
|
176
|
-
?max_items: ::Integer,
|
|
177
|
-
agent_id: ::String,
|
|
178
175
|
agent_alias_id: ::String,
|
|
176
|
+
agent_id: ::String,
|
|
177
|
+
?max_items: ::Integer,
|
|
178
|
+
memory_id: ::String,
|
|
179
179
|
memory_type: ("SESSION_SUMMARY"),
|
|
180
|
-
|
|
180
|
+
?next_token: ::String
|
|
181
181
|
) -> _GetAgentMemoryResponseSuccess
|
|
182
182
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAgentMemoryResponseSuccess
|
|
183
183
|
|
|
184
184
|
interface _GetExecutionFlowSnapshotResponseSuccess
|
|
185
185
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetExecutionFlowSnapshotResponse]
|
|
186
|
-
def
|
|
186
|
+
def customer_encryption_key_arn: () -> ::String
|
|
187
|
+
def definition: () -> ::String
|
|
188
|
+
def execution_role_arn: () -> ::String
|
|
187
189
|
def flow_alias_identifier: () -> ::String
|
|
190
|
+
def flow_identifier: () -> ::String
|
|
188
191
|
def flow_version: () -> ::String
|
|
189
|
-
def execution_role_arn: () -> ::String
|
|
190
|
-
def definition: () -> ::String
|
|
191
|
-
def customer_encryption_key_arn: () -> ::String
|
|
192
192
|
end
|
|
193
193
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_execution_flow_snapshot-instance_method
|
|
194
194
|
def get_execution_flow_snapshot: (
|
|
195
|
-
|
|
195
|
+
execution_identifier: ::String,
|
|
196
196
|
flow_alias_identifier: ::String,
|
|
197
|
-
|
|
197
|
+
flow_identifier: ::String
|
|
198
198
|
) -> _GetExecutionFlowSnapshotResponseSuccess
|
|
199
199
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetExecutionFlowSnapshotResponseSuccess
|
|
200
200
|
|
|
201
201
|
interface _GetFlowExecutionResponseSuccess
|
|
202
202
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetFlowExecutionResponse]
|
|
203
|
-
def execution_arn: () -> ::String
|
|
204
|
-
def status: () -> ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Aborted")
|
|
205
|
-
def started_at: () -> ::Time
|
|
206
203
|
def ended_at: () -> ::Time
|
|
207
204
|
def errors: () -> ::Array[Types::FlowExecutionError]
|
|
205
|
+
def execution_arn: () -> ::String
|
|
208
206
|
def flow_alias_identifier: () -> ::String
|
|
209
207
|
def flow_identifier: () -> ::String
|
|
210
208
|
def flow_version: () -> ::String
|
|
209
|
+
def started_at: () -> ::Time
|
|
210
|
+
def status: () -> ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Aborted")
|
|
211
211
|
end
|
|
212
212
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_flow_execution-instance_method
|
|
213
213
|
def get_flow_execution: (
|
|
214
|
-
|
|
214
|
+
execution_identifier: ::String,
|
|
215
215
|
flow_alias_identifier: ::String,
|
|
216
|
-
|
|
216
|
+
flow_identifier: ::String
|
|
217
217
|
) -> _GetFlowExecutionResponseSuccess
|
|
218
218
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFlowExecutionResponseSuccess
|
|
219
219
|
|
|
@@ -231,13 +231,13 @@ module Aws
|
|
|
231
231
|
|
|
232
232
|
interface _GetSessionResponseSuccess
|
|
233
233
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetSessionResponse]
|
|
234
|
-
def session_id: () -> ::String
|
|
235
|
-
def session_arn: () -> ::String
|
|
236
|
-
def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
|
|
237
234
|
def created_at: () -> ::Time
|
|
235
|
+
def encryption_key_arn: () -> ::String
|
|
238
236
|
def last_updated_at: () -> ::Time
|
|
237
|
+
def session_arn: () -> ::String
|
|
238
|
+
def session_id: () -> ::String
|
|
239
239
|
def session_metadata: () -> ::Hash[::String, ::String]
|
|
240
|
-
def
|
|
240
|
+
def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
|
|
241
241
|
end
|
|
242
242
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#get_session-instance_method
|
|
243
243
|
def get_session: (
|
|
@@ -249,97 +249,82 @@ module Aws
|
|
|
249
249
|
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeAgentResponse]
|
|
250
250
|
def completion: () -> Types::ResponseStream
|
|
251
251
|
def content_type: () -> ::String
|
|
252
|
-
def session_id: () -> ::String
|
|
253
252
|
def memory_id: () -> ::String
|
|
253
|
+
def session_id: () -> ::String
|
|
254
254
|
end
|
|
255
255
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_agent-instance_method
|
|
256
256
|
def invoke_agent: (
|
|
257
|
+
agent_alias_id: ::String,
|
|
258
|
+
agent_id: ::String,
|
|
259
|
+
?bedrock_model_configurations: {
|
|
260
|
+
performance_config: {
|
|
261
|
+
latency: ("standard" | "optimized")?
|
|
262
|
+
}?
|
|
263
|
+
},
|
|
264
|
+
?enable_trace: bool,
|
|
265
|
+
?end_session: bool,
|
|
266
|
+
?input_text: ::String,
|
|
267
|
+
?memory_id: ::String,
|
|
268
|
+
?prompt_creation_configurations: {
|
|
269
|
+
exclude_previous_thinking_steps: bool?,
|
|
270
|
+
previous_conversation_turns_to_include: ::Integer?
|
|
271
|
+
},
|
|
272
|
+
session_id: ::String,
|
|
257
273
|
?session_state: {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
body: ::String?,
|
|
271
|
-
images: Array[
|
|
272
|
-
{
|
|
273
|
-
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
274
|
-
source: {
|
|
275
|
-
bytes: ::String?
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
]?
|
|
279
|
-
}]?,
|
|
280
|
-
agent_id: ::String?
|
|
281
|
-
}?,
|
|
282
|
-
function_result: {
|
|
283
|
-
action_group: ::String,
|
|
284
|
-
confirmation_state: ("CONFIRM" | "DENY")?,
|
|
285
|
-
function: ::String?,
|
|
286
|
-
response_body: Hash[::String, {
|
|
287
|
-
body: ::String?,
|
|
288
|
-
images: Array[
|
|
289
|
-
{
|
|
290
|
-
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
291
|
-
source: {
|
|
292
|
-
bytes: ::String?
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
]?
|
|
296
|
-
}]?,
|
|
297
|
-
response_state: ("FAILURE" | "REPROMPT")?,
|
|
298
|
-
agent_id: ::String?
|
|
299
|
-
}?
|
|
300
|
-
},
|
|
301
|
-
]?,
|
|
302
|
-
invocation_id: ::String?,
|
|
274
|
+
conversation_history: {
|
|
275
|
+
messages: Array[
|
|
276
|
+
{
|
|
277
|
+
content: Array[
|
|
278
|
+
{
|
|
279
|
+
text: ::String?
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
role: ("user" | "assistant")
|
|
283
|
+
},
|
|
284
|
+
]?
|
|
285
|
+
}?,
|
|
303
286
|
files: Array[
|
|
304
287
|
{
|
|
305
288
|
name: ::String,
|
|
306
289
|
source: {
|
|
307
|
-
|
|
290
|
+
byte_content: {
|
|
291
|
+
data: ::String,
|
|
292
|
+
media_type: ::String
|
|
293
|
+
}?,
|
|
308
294
|
s3_location: {
|
|
309
295
|
uri: ::String
|
|
310
296
|
}?,
|
|
311
|
-
|
|
312
|
-
media_type: ::String,
|
|
313
|
-
data: ::String
|
|
314
|
-
}?
|
|
297
|
+
source_type: ("S3" | "BYTE_CONTENT")
|
|
315
298
|
},
|
|
316
299
|
use_case: ("CODE_INTERPRETER" | "CHAT")
|
|
317
300
|
},
|
|
318
301
|
]?,
|
|
302
|
+
invocation_id: ::String?,
|
|
319
303
|
knowledge_base_configurations: Array[
|
|
320
304
|
{
|
|
321
305
|
knowledge_base_id: ::String,
|
|
322
306
|
retrieval_configuration: {
|
|
323
307
|
vector_search_configuration: {
|
|
324
|
-
number_of_results: ::Integer?,
|
|
325
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
326
308
|
filter: {
|
|
309
|
+
and_all: Array[
|
|
310
|
+
untyped,
|
|
311
|
+
]?,
|
|
327
312
|
equals: {
|
|
328
313
|
key: ::String,
|
|
329
314
|
value: {
|
|
330
315
|
}
|
|
331
316
|
}?,
|
|
332
|
-
|
|
317
|
+
greater_than: {
|
|
333
318
|
key: ::String,
|
|
334
319
|
value: {
|
|
335
320
|
}
|
|
336
321
|
}?,
|
|
337
|
-
|
|
322
|
+
greater_than_or_equals: {
|
|
338
323
|
key: ::String,
|
|
339
324
|
value: {
|
|
340
325
|
}
|
|
341
326
|
}?,
|
|
342
|
-
|
|
327
|
+
in: {
|
|
343
328
|
key: ::String,
|
|
344
329
|
value: {
|
|
345
330
|
}
|
|
@@ -354,22 +339,25 @@ module Aws
|
|
|
354
339
|
value: {
|
|
355
340
|
}
|
|
356
341
|
}?,
|
|
357
|
-
|
|
342
|
+
list_contains: {
|
|
358
343
|
key: ::String,
|
|
359
344
|
value: {
|
|
360
345
|
}
|
|
361
346
|
}?,
|
|
362
|
-
|
|
347
|
+
not_equals: {
|
|
363
348
|
key: ::String,
|
|
364
349
|
value: {
|
|
365
350
|
}
|
|
366
351
|
}?,
|
|
367
|
-
|
|
352
|
+
not_in: {
|
|
368
353
|
key: ::String,
|
|
369
354
|
value: {
|
|
370
355
|
}
|
|
371
356
|
}?,
|
|
372
|
-
|
|
357
|
+
or_all: Array[
|
|
358
|
+
untyped,
|
|
359
|
+
]?,
|
|
360
|
+
starts_with: {
|
|
373
361
|
key: ::String,
|
|
374
362
|
value: {
|
|
375
363
|
}
|
|
@@ -378,118 +366,130 @@ module Aws
|
|
|
378
366
|
key: ::String,
|
|
379
367
|
value: {
|
|
380
368
|
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
369
|
+
}?
|
|
370
|
+
}?,
|
|
371
|
+
implicit_filter_configuration: {
|
|
372
|
+
metadata_attributes: Array[
|
|
373
|
+
{
|
|
374
|
+
description: ::String,
|
|
375
|
+
key: ::String,
|
|
376
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
model_arn: ::String
|
|
388
380
|
}?,
|
|
381
|
+
number_of_results: ::Integer?,
|
|
382
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
389
383
|
reranking_configuration: {
|
|
390
|
-
type: ("BEDROCK_RERANKING_MODEL"),
|
|
391
384
|
bedrock_reranking_configuration: {
|
|
392
|
-
model_configuration: {
|
|
393
|
-
model_arn: ::String,
|
|
394
|
-
additional_model_request_fields: Hash[::String, {
|
|
395
|
-
}]?
|
|
396
|
-
},
|
|
397
|
-
number_of_reranked_results: ::Integer?,
|
|
398
385
|
metadata_configuration: {
|
|
399
386
|
selection_mode: ("SELECTIVE" | "ALL"),
|
|
400
387
|
selective_mode_configuration: {
|
|
401
|
-
|
|
388
|
+
fields_to_exclude: Array[
|
|
402
389
|
{
|
|
403
390
|
field_name: ::String
|
|
404
391
|
},
|
|
405
392
|
]?,
|
|
406
|
-
|
|
393
|
+
fields_to_include: Array[
|
|
407
394
|
{
|
|
408
395
|
field_name: ::String
|
|
409
396
|
},
|
|
410
397
|
]?
|
|
411
398
|
}?
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
{
|
|
418
|
-
key: ::String,
|
|
419
|
-
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
|
420
|
-
description: ::String
|
|
399
|
+
}?,
|
|
400
|
+
model_configuration: {
|
|
401
|
+
additional_model_request_fields: Hash[::String, {
|
|
402
|
+
}]?,
|
|
403
|
+
model_arn: ::String
|
|
421
404
|
},
|
|
422
|
-
|
|
423
|
-
|
|
405
|
+
number_of_reranked_results: ::Integer?
|
|
406
|
+
}?,
|
|
407
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
424
408
|
}?
|
|
425
409
|
}
|
|
426
410
|
}
|
|
427
411
|
},
|
|
428
412
|
]?,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
413
|
+
prompt_session_attributes: Hash[::String, ::String]?,
|
|
414
|
+
return_control_invocation_results: Array[
|
|
415
|
+
{
|
|
416
|
+
api_result: {
|
|
417
|
+
action_group: ::String,
|
|
418
|
+
agent_id: ::String?,
|
|
419
|
+
api_path: ::String?,
|
|
420
|
+
confirmation_state: ("CONFIRM" | "DENY")?,
|
|
421
|
+
http_method: ::String?,
|
|
422
|
+
http_status_code: ::Integer?,
|
|
423
|
+
response_body: Hash[::String, {
|
|
424
|
+
body: ::String?,
|
|
425
|
+
images: Array[
|
|
426
|
+
{
|
|
427
|
+
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
428
|
+
source: {
|
|
429
|
+
bytes: ::String?
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
]?
|
|
433
|
+
}]?,
|
|
434
|
+
response_state: ("FAILURE" | "REPROMPT")?
|
|
435
|
+
}?,
|
|
436
|
+
function_result: {
|
|
437
|
+
action_group: ::String,
|
|
438
|
+
agent_id: ::String?,
|
|
439
|
+
confirmation_state: ("CONFIRM" | "DENY")?,
|
|
440
|
+
function: ::String?,
|
|
441
|
+
response_body: Hash[::String, {
|
|
442
|
+
body: ::String?,
|
|
443
|
+
images: Array[
|
|
444
|
+
{
|
|
445
|
+
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
446
|
+
source: {
|
|
447
|
+
bytes: ::String?
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
]?
|
|
451
|
+
}]?,
|
|
452
|
+
response_state: ("FAILURE" | "REPROMPT")?
|
|
453
|
+
}?
|
|
454
|
+
},
|
|
455
|
+
]?,
|
|
456
|
+
session_attributes: Hash[::String, ::String]?
|
|
453
457
|
},
|
|
458
|
+
?source_arn: ::String,
|
|
454
459
|
?streaming_configurations: {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
?prompt_creation_configurations: {
|
|
459
|
-
previous_conversation_turns_to_include: ::Integer?,
|
|
460
|
-
exclude_previous_thinking_steps: bool?
|
|
461
|
-
},
|
|
462
|
-
?source_arn: ::String
|
|
460
|
+
apply_guardrail_interval: ::Integer?,
|
|
461
|
+
stream_final_response: bool?
|
|
462
|
+
}
|
|
463
463
|
) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
|
|
464
464
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
|
|
465
465
|
|
|
466
466
|
interface _InvokeFlowResponseSuccess
|
|
467
467
|
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeFlowResponse]
|
|
468
|
-
def response_stream: () -> Types::FlowResponseStream
|
|
469
468
|
def execution_id: () -> ::String
|
|
469
|
+
def response_stream: () -> Types::FlowResponseStream
|
|
470
470
|
end
|
|
471
471
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_flow-instance_method
|
|
472
472
|
def invoke_flow: (
|
|
473
|
-
|
|
473
|
+
?enable_trace: bool,
|
|
474
|
+
?execution_id: ::String,
|
|
474
475
|
flow_alias_identifier: ::String,
|
|
476
|
+
flow_identifier: ::String,
|
|
475
477
|
inputs: Array[
|
|
476
478
|
{
|
|
477
|
-
node_name: ::String,
|
|
478
|
-
node_output_name: ::String?,
|
|
479
479
|
content: {
|
|
480
480
|
document: {
|
|
481
481
|
}?
|
|
482
482
|
},
|
|
483
|
-
node_input_name: ::String
|
|
483
|
+
node_input_name: ::String?,
|
|
484
|
+
node_name: ::String,
|
|
485
|
+
node_output_name: ::String?
|
|
484
486
|
},
|
|
485
487
|
],
|
|
486
|
-
?enable_trace: bool,
|
|
487
488
|
?model_performance_configuration: {
|
|
488
489
|
performance_config: {
|
|
489
490
|
latency: ("standard" | "optimized")?
|
|
490
491
|
}?
|
|
491
|
-
}
|
|
492
|
-
?execution_id: ::String
|
|
492
|
+
}
|
|
493
493
|
) ?{ (*untyped) -> void } -> _InvokeFlowResponseSuccess
|
|
494
494
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeFlowResponseSuccess
|
|
495
495
|
|
|
@@ -501,213 +501,295 @@ module Aws
|
|
|
501
501
|
end
|
|
502
502
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_inline_agent-instance_method
|
|
503
503
|
def invoke_inline_agent: (
|
|
504
|
-
?customer_encryption_key_arn: ::String,
|
|
505
|
-
foundation_model: ::String,
|
|
506
|
-
instruction: ::String,
|
|
507
|
-
?idle_session_ttl_in_seconds: ::Integer,
|
|
508
504
|
?action_groups: Array[
|
|
509
505
|
{
|
|
510
|
-
action_group_name: ::String,
|
|
511
|
-
description: ::String?,
|
|
512
|
-
parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
|
|
513
506
|
action_group_executor: {
|
|
514
|
-
|
|
515
|
-
|
|
507
|
+
custom_control: ("RETURN_CONTROL")?,
|
|
508
|
+
lambda: ::String?
|
|
516
509
|
}?,
|
|
510
|
+
action_group_name: ::String,
|
|
517
511
|
api_schema: {
|
|
512
|
+
payload: ::String?,
|
|
518
513
|
s3: {
|
|
519
514
|
s3_bucket_name: ::String?,
|
|
520
515
|
s3_object_key: ::String?
|
|
521
|
-
}
|
|
522
|
-
payload: ::String?
|
|
516
|
+
}?
|
|
523
517
|
}?,
|
|
518
|
+
description: ::String?,
|
|
524
519
|
function_schema: {
|
|
525
520
|
functions: Array[
|
|
526
521
|
{
|
|
527
|
-
name: ::String,
|
|
528
522
|
description: ::String?,
|
|
523
|
+
name: ::String,
|
|
529
524
|
parameters: Hash[::String, {
|
|
530
525
|
description: ::String?,
|
|
531
|
-
|
|
532
|
-
|
|
526
|
+
required: bool?,
|
|
527
|
+
type: ("string" | "number" | "integer" | "boolean" | "array")
|
|
533
528
|
}]?,
|
|
534
529
|
require_confirmation: ("ENABLED" | "DISABLED")?
|
|
535
530
|
},
|
|
536
531
|
]?
|
|
537
532
|
}?,
|
|
533
|
+
parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
|
|
538
534
|
parent_action_group_signature_params: Hash[::String, ::String]?
|
|
539
535
|
},
|
|
540
536
|
],
|
|
541
|
-
?
|
|
537
|
+
?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
|
|
538
|
+
?agent_name: ::String,
|
|
539
|
+
?bedrock_model_configurations: {
|
|
540
|
+
performance_config: {
|
|
541
|
+
latency: ("standard" | "optimized")?
|
|
542
|
+
}?
|
|
543
|
+
},
|
|
544
|
+
?collaborator_configurations: Array[
|
|
542
545
|
{
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
key: ::String,
|
|
557
|
-
value: {
|
|
558
|
-
}
|
|
559
|
-
}?,
|
|
560
|
-
greater_than: {
|
|
561
|
-
key: ::String,
|
|
562
|
-
value: {
|
|
563
|
-
}
|
|
564
|
-
}?,
|
|
565
|
-
greater_than_or_equals: {
|
|
566
|
-
key: ::String,
|
|
567
|
-
value: {
|
|
568
|
-
}
|
|
569
|
-
}?,
|
|
570
|
-
less_than: {
|
|
571
|
-
key: ::String,
|
|
572
|
-
value: {
|
|
573
|
-
}
|
|
574
|
-
}?,
|
|
575
|
-
less_than_or_equals: {
|
|
576
|
-
key: ::String,
|
|
577
|
-
value: {
|
|
578
|
-
}
|
|
579
|
-
}?,
|
|
580
|
-
in: {
|
|
581
|
-
key: ::String,
|
|
582
|
-
value: {
|
|
583
|
-
}
|
|
584
|
-
}?,
|
|
585
|
-
not_in: {
|
|
586
|
-
key: ::String,
|
|
587
|
-
value: {
|
|
588
|
-
}
|
|
589
|
-
}?,
|
|
590
|
-
starts_with: {
|
|
591
|
-
key: ::String,
|
|
592
|
-
value: {
|
|
593
|
-
}
|
|
594
|
-
}?,
|
|
595
|
-
list_contains: {
|
|
596
|
-
key: ::String,
|
|
597
|
-
value: {
|
|
598
|
-
}
|
|
599
|
-
}?,
|
|
600
|
-
string_contains: {
|
|
601
|
-
key: ::String,
|
|
602
|
-
value: {
|
|
603
|
-
}
|
|
604
|
-
}?,
|
|
605
|
-
and_all: Array[
|
|
606
|
-
untyped,
|
|
607
|
-
]?,
|
|
608
|
-
or_all: Array[
|
|
609
|
-
untyped,
|
|
610
|
-
]?
|
|
546
|
+
agent_alias_arn: ::String?,
|
|
547
|
+
collaborator_instruction: ::String,
|
|
548
|
+
collaborator_name: ::String,
|
|
549
|
+
relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
|
|
550
|
+
},
|
|
551
|
+
],
|
|
552
|
+
?collaborators: Array[
|
|
553
|
+
{
|
|
554
|
+
action_groups: Array[
|
|
555
|
+
{
|
|
556
|
+
action_group_executor: {
|
|
557
|
+
custom_control: ("RETURN_CONTROL")?,
|
|
558
|
+
lambda: ::String?
|
|
611
559
|
}?,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}]?
|
|
619
|
-
},
|
|
620
|
-
number_of_reranked_results: ::Integer?,
|
|
621
|
-
metadata_configuration: {
|
|
622
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
623
|
-
selective_mode_configuration: {
|
|
624
|
-
fields_to_include: Array[
|
|
625
|
-
{
|
|
626
|
-
field_name: ::String
|
|
627
|
-
},
|
|
628
|
-
]?,
|
|
629
|
-
fields_to_exclude: Array[
|
|
630
|
-
{
|
|
631
|
-
field_name: ::String
|
|
632
|
-
},
|
|
633
|
-
]?
|
|
634
|
-
}?
|
|
635
|
-
}?
|
|
560
|
+
action_group_name: ::String,
|
|
561
|
+
api_schema: {
|
|
562
|
+
payload: ::String?,
|
|
563
|
+
s3: {
|
|
564
|
+
s3_bucket_name: ::String?,
|
|
565
|
+
s3_object_key: ::String?
|
|
636
566
|
}?
|
|
637
567
|
}?,
|
|
638
|
-
|
|
639
|
-
|
|
568
|
+
description: ::String?,
|
|
569
|
+
function_schema: {
|
|
570
|
+
functions: Array[
|
|
640
571
|
{
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
572
|
+
description: ::String?,
|
|
573
|
+
name: ::String,
|
|
574
|
+
parameters: Hash[::String, {
|
|
575
|
+
description: ::String?,
|
|
576
|
+
required: bool?,
|
|
577
|
+
type: ("string" | "number" | "integer" | "boolean" | "array")
|
|
578
|
+
}]?,
|
|
579
|
+
require_confirmation: ("ENABLED" | "DISABLED")?
|
|
644
580
|
},
|
|
645
|
-
]
|
|
646
|
-
|
|
581
|
+
]?
|
|
582
|
+
}?,
|
|
583
|
+
parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
|
|
584
|
+
parent_action_group_signature_params: Hash[::String, ::String]?
|
|
585
|
+
},
|
|
586
|
+
]?,
|
|
587
|
+
agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
|
|
588
|
+
agent_name: ::String?,
|
|
589
|
+
collaborator_configurations: Array[
|
|
590
|
+
{
|
|
591
|
+
agent_alias_arn: ::String?,
|
|
592
|
+
collaborator_instruction: ::String,
|
|
593
|
+
collaborator_name: ::String,
|
|
594
|
+
relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
|
|
595
|
+
},
|
|
596
|
+
]?,
|
|
597
|
+
customer_encryption_key_arn: ::String?,
|
|
598
|
+
foundation_model: ::String,
|
|
599
|
+
guardrail_configuration: {
|
|
600
|
+
guardrail_identifier: ::String,
|
|
601
|
+
guardrail_version: ::String
|
|
602
|
+
}?,
|
|
603
|
+
idle_session_ttl_in_seconds: ::Integer?,
|
|
604
|
+
instruction: ::String,
|
|
605
|
+
knowledge_bases: Array[
|
|
606
|
+
{
|
|
607
|
+
description: ::String,
|
|
608
|
+
knowledge_base_id: ::String,
|
|
609
|
+
retrieval_configuration: {
|
|
610
|
+
vector_search_configuration: {
|
|
611
|
+
filter: {
|
|
612
|
+
and_all: Array[
|
|
613
|
+
untyped,
|
|
614
|
+
]?,
|
|
615
|
+
equals: {
|
|
616
|
+
key: ::String,
|
|
617
|
+
value: {
|
|
618
|
+
}
|
|
619
|
+
}?,
|
|
620
|
+
greater_than: {
|
|
621
|
+
key: ::String,
|
|
622
|
+
value: {
|
|
623
|
+
}
|
|
624
|
+
}?,
|
|
625
|
+
greater_than_or_equals: {
|
|
626
|
+
key: ::String,
|
|
627
|
+
value: {
|
|
628
|
+
}
|
|
629
|
+
}?,
|
|
630
|
+
in: {
|
|
631
|
+
key: ::String,
|
|
632
|
+
value: {
|
|
633
|
+
}
|
|
634
|
+
}?,
|
|
635
|
+
less_than: {
|
|
636
|
+
key: ::String,
|
|
637
|
+
value: {
|
|
638
|
+
}
|
|
639
|
+
}?,
|
|
640
|
+
less_than_or_equals: {
|
|
641
|
+
key: ::String,
|
|
642
|
+
value: {
|
|
643
|
+
}
|
|
644
|
+
}?,
|
|
645
|
+
list_contains: {
|
|
646
|
+
key: ::String,
|
|
647
|
+
value: {
|
|
648
|
+
}
|
|
649
|
+
}?,
|
|
650
|
+
not_equals: {
|
|
651
|
+
key: ::String,
|
|
652
|
+
value: {
|
|
653
|
+
}
|
|
654
|
+
}?,
|
|
655
|
+
not_in: {
|
|
656
|
+
key: ::String,
|
|
657
|
+
value: {
|
|
658
|
+
}
|
|
659
|
+
}?,
|
|
660
|
+
or_all: Array[
|
|
661
|
+
untyped,
|
|
662
|
+
]?,
|
|
663
|
+
starts_with: {
|
|
664
|
+
key: ::String,
|
|
665
|
+
value: {
|
|
666
|
+
}
|
|
667
|
+
}?,
|
|
668
|
+
string_contains: {
|
|
669
|
+
key: ::String,
|
|
670
|
+
value: {
|
|
671
|
+
}
|
|
672
|
+
}?
|
|
673
|
+
}?,
|
|
674
|
+
implicit_filter_configuration: {
|
|
675
|
+
metadata_attributes: Array[
|
|
676
|
+
{
|
|
677
|
+
description: ::String,
|
|
678
|
+
key: ::String,
|
|
679
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
680
|
+
},
|
|
681
|
+
],
|
|
682
|
+
model_arn: ::String
|
|
683
|
+
}?,
|
|
684
|
+
number_of_results: ::Integer?,
|
|
685
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
686
|
+
reranking_configuration: {
|
|
687
|
+
bedrock_reranking_configuration: {
|
|
688
|
+
metadata_configuration: {
|
|
689
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
|
690
|
+
selective_mode_configuration: {
|
|
691
|
+
fields_to_exclude: Array[
|
|
692
|
+
{
|
|
693
|
+
field_name: ::String
|
|
694
|
+
},
|
|
695
|
+
]?,
|
|
696
|
+
fields_to_include: Array[
|
|
697
|
+
{
|
|
698
|
+
field_name: ::String
|
|
699
|
+
},
|
|
700
|
+
]?
|
|
701
|
+
}?
|
|
702
|
+
}?,
|
|
703
|
+
model_configuration: {
|
|
704
|
+
additional_model_request_fields: Hash[::String, {
|
|
705
|
+
}]?,
|
|
706
|
+
model_arn: ::String
|
|
707
|
+
},
|
|
708
|
+
number_of_reranked_results: ::Integer?
|
|
709
|
+
}?,
|
|
710
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
711
|
+
}?
|
|
712
|
+
}
|
|
647
713
|
}?
|
|
648
|
-
}
|
|
714
|
+
},
|
|
715
|
+
]?,
|
|
716
|
+
prompt_override_configuration: {
|
|
717
|
+
override_lambda: ::String?,
|
|
718
|
+
prompt_configurations: Array[
|
|
719
|
+
{
|
|
720
|
+
additional_model_request_fields: {
|
|
721
|
+
}?,
|
|
722
|
+
base_prompt_template: ::String?,
|
|
723
|
+
foundation_model: ::String?,
|
|
724
|
+
inference_configuration: {
|
|
725
|
+
maximum_length: ::Integer?,
|
|
726
|
+
stop_sequences: Array[::String]?,
|
|
727
|
+
temperature: ::Float?,
|
|
728
|
+
top_k: ::Integer?,
|
|
729
|
+
top_p: ::Float?
|
|
730
|
+
}?,
|
|
731
|
+
parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
|
|
732
|
+
prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
|
|
733
|
+
prompt_state: ("ENABLED" | "DISABLED")?,
|
|
734
|
+
prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
|
|
735
|
+
},
|
|
736
|
+
]
|
|
649
737
|
}?
|
|
650
738
|
},
|
|
651
739
|
],
|
|
740
|
+
?custom_orchestration: {
|
|
741
|
+
executor: {
|
|
742
|
+
lambda: ::String?
|
|
743
|
+
}?
|
|
744
|
+
},
|
|
745
|
+
?customer_encryption_key_arn: ::String,
|
|
746
|
+
?enable_trace: bool,
|
|
747
|
+
?end_session: bool,
|
|
748
|
+
foundation_model: ::String,
|
|
652
749
|
?guardrail_configuration: {
|
|
653
750
|
guardrail_identifier: ::String,
|
|
654
751
|
guardrail_version: ::String
|
|
655
752
|
},
|
|
656
|
-
?
|
|
657
|
-
|
|
753
|
+
?idle_session_ttl_in_seconds: ::Integer,
|
|
754
|
+
?inline_session_state: {
|
|
755
|
+
conversation_history: {
|
|
756
|
+
messages: Array[
|
|
757
|
+
{
|
|
758
|
+
content: Array[
|
|
759
|
+
{
|
|
760
|
+
text: ::String?
|
|
761
|
+
},
|
|
762
|
+
],
|
|
763
|
+
role: ("user" | "assistant")
|
|
764
|
+
},
|
|
765
|
+
]?
|
|
766
|
+
}?,
|
|
767
|
+
files: Array[
|
|
658
768
|
{
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
foundation_model: ::String?,
|
|
672
|
-
additional_model_request_fields: {
|
|
673
|
-
}?
|
|
769
|
+
name: ::String,
|
|
770
|
+
source: {
|
|
771
|
+
byte_content: {
|
|
772
|
+
data: ::String,
|
|
773
|
+
media_type: ::String
|
|
774
|
+
}?,
|
|
775
|
+
s3_location: {
|
|
776
|
+
uri: ::String
|
|
777
|
+
}?,
|
|
778
|
+
source_type: ("S3" | "BYTE_CONTENT")
|
|
779
|
+
},
|
|
780
|
+
use_case: ("CODE_INTERPRETER" | "CHAT")
|
|
674
781
|
},
|
|
675
|
-
]
|
|
676
|
-
|
|
677
|
-
},
|
|
678
|
-
?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
|
|
679
|
-
?collaborator_configurations: Array[
|
|
680
|
-
{
|
|
681
|
-
collaborator_name: ::String,
|
|
682
|
-
collaborator_instruction: ::String,
|
|
683
|
-
agent_alias_arn: ::String?,
|
|
684
|
-
relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
|
|
685
|
-
},
|
|
686
|
-
],
|
|
687
|
-
?agent_name: ::String,
|
|
688
|
-
session_id: ::String,
|
|
689
|
-
?end_session: bool,
|
|
690
|
-
?enable_trace: bool,
|
|
691
|
-
?input_text: ::String,
|
|
692
|
-
?streaming_configurations: {
|
|
693
|
-
stream_final_response: bool?,
|
|
694
|
-
apply_guardrail_interval: ::Integer?
|
|
695
|
-
},
|
|
696
|
-
?prompt_creation_configurations: {
|
|
697
|
-
previous_conversation_turns_to_include: ::Integer?,
|
|
698
|
-
exclude_previous_thinking_steps: bool?
|
|
699
|
-
},
|
|
700
|
-
?inline_session_state: {
|
|
701
|
-
session_attributes: Hash[::String, ::String]?,
|
|
782
|
+
]?,
|
|
783
|
+
invocation_id: ::String?,
|
|
702
784
|
prompt_session_attributes: Hash[::String, ::String]?,
|
|
703
785
|
return_control_invocation_results: Array[
|
|
704
786
|
{
|
|
705
787
|
api_result: {
|
|
706
788
|
action_group: ::String,
|
|
707
|
-
|
|
789
|
+
agent_id: ::String?,
|
|
708
790
|
api_path: ::String?,
|
|
709
791
|
confirmation_state: ("CONFIRM" | "DENY")?,
|
|
710
|
-
|
|
792
|
+
http_method: ::String?,
|
|
711
793
|
http_status_code: ::Integer?,
|
|
712
794
|
response_body: Hash[::String, {
|
|
713
795
|
body: ::String?,
|
|
@@ -720,10 +802,11 @@ module Aws
|
|
|
720
802
|
},
|
|
721
803
|
]?
|
|
722
804
|
}]?,
|
|
723
|
-
|
|
805
|
+
response_state: ("FAILURE" | "REPROMPT")?
|
|
724
806
|
}?,
|
|
725
807
|
function_result: {
|
|
726
808
|
action_group: ::String,
|
|
809
|
+
agent_id: ::String?,
|
|
727
810
|
confirmation_state: ("CONFIRM" | "DENY")?,
|
|
728
811
|
function: ::String?,
|
|
729
812
|
response_body: Hash[::String, {
|
|
@@ -737,239 +820,156 @@ module Aws
|
|
|
737
820
|
},
|
|
738
821
|
]?
|
|
739
822
|
}]?,
|
|
740
|
-
response_state: ("FAILURE" | "REPROMPT")
|
|
741
|
-
agent_id: ::String?
|
|
823
|
+
response_state: ("FAILURE" | "REPROMPT")?
|
|
742
824
|
}?
|
|
743
825
|
},
|
|
744
826
|
]?,
|
|
745
|
-
|
|
746
|
-
files: Array[
|
|
747
|
-
{
|
|
748
|
-
name: ::String,
|
|
749
|
-
source: {
|
|
750
|
-
source_type: ("S3" | "BYTE_CONTENT"),
|
|
751
|
-
s3_location: {
|
|
752
|
-
uri: ::String
|
|
753
|
-
}?,
|
|
754
|
-
byte_content: {
|
|
755
|
-
media_type: ::String,
|
|
756
|
-
data: ::String
|
|
757
|
-
}?
|
|
758
|
-
},
|
|
759
|
-
use_case: ("CODE_INTERPRETER" | "CHAT")
|
|
760
|
-
},
|
|
761
|
-
]?,
|
|
762
|
-
conversation_history: {
|
|
763
|
-
messages: Array[
|
|
764
|
-
{
|
|
765
|
-
role: ("user" | "assistant"),
|
|
766
|
-
content: Array[
|
|
767
|
-
{
|
|
768
|
-
text: ::String?
|
|
769
|
-
},
|
|
770
|
-
]
|
|
771
|
-
},
|
|
772
|
-
]?
|
|
773
|
-
}?
|
|
827
|
+
session_attributes: Hash[::String, ::String]?
|
|
774
828
|
},
|
|
775
|
-
?
|
|
829
|
+
?input_text: ::String,
|
|
830
|
+
instruction: ::String,
|
|
831
|
+
?knowledge_bases: Array[
|
|
776
832
|
{
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
833
|
+
description: ::String,
|
|
834
|
+
knowledge_base_id: ::String,
|
|
835
|
+
retrieval_configuration: {
|
|
836
|
+
vector_search_configuration: {
|
|
837
|
+
filter: {
|
|
838
|
+
and_all: Array[
|
|
839
|
+
untyped,
|
|
840
|
+
]?,
|
|
841
|
+
equals: {
|
|
842
|
+
key: ::String,
|
|
843
|
+
value: {
|
|
844
|
+
}
|
|
845
|
+
}?,
|
|
846
|
+
greater_than: {
|
|
847
|
+
key: ::String,
|
|
848
|
+
value: {
|
|
849
|
+
}
|
|
850
|
+
}?,
|
|
851
|
+
greater_than_or_equals: {
|
|
852
|
+
key: ::String,
|
|
853
|
+
value: {
|
|
854
|
+
}
|
|
855
|
+
}?,
|
|
856
|
+
in: {
|
|
857
|
+
key: ::String,
|
|
858
|
+
value: {
|
|
859
|
+
}
|
|
860
|
+
}?,
|
|
861
|
+
less_than: {
|
|
862
|
+
key: ::String,
|
|
863
|
+
value: {
|
|
864
|
+
}
|
|
865
|
+
}?,
|
|
866
|
+
less_than_or_equals: {
|
|
867
|
+
key: ::String,
|
|
868
|
+
value: {
|
|
869
|
+
}
|
|
870
|
+
}?,
|
|
871
|
+
list_contains: {
|
|
872
|
+
key: ::String,
|
|
873
|
+
value: {
|
|
874
|
+
}
|
|
875
|
+
}?,
|
|
876
|
+
not_equals: {
|
|
877
|
+
key: ::String,
|
|
878
|
+
value: {
|
|
879
|
+
}
|
|
880
|
+
}?,
|
|
881
|
+
not_in: {
|
|
882
|
+
key: ::String,
|
|
883
|
+
value: {
|
|
884
|
+
}
|
|
885
|
+
}?,
|
|
886
|
+
or_all: Array[
|
|
887
|
+
untyped,
|
|
888
|
+
]?,
|
|
889
|
+
starts_with: {
|
|
890
|
+
key: ::String,
|
|
891
|
+
value: {
|
|
892
|
+
}
|
|
794
893
|
}?,
|
|
795
|
-
|
|
894
|
+
string_contains: {
|
|
895
|
+
key: ::String,
|
|
896
|
+
value: {
|
|
897
|
+
}
|
|
898
|
+
}?
|
|
796
899
|
}?,
|
|
797
|
-
|
|
798
|
-
|
|
900
|
+
implicit_filter_configuration: {
|
|
901
|
+
metadata_attributes: Array[
|
|
799
902
|
{
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
description: ::String?,
|
|
804
|
-
type: ("string" | "number" | "integer" | "boolean" | "array"),
|
|
805
|
-
required: bool?
|
|
806
|
-
}]?,
|
|
807
|
-
require_confirmation: ("ENABLED" | "DISABLED")?
|
|
903
|
+
description: ::String,
|
|
904
|
+
key: ::String,
|
|
905
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
808
906
|
},
|
|
809
|
-
]
|
|
907
|
+
],
|
|
908
|
+
model_arn: ::String
|
|
810
909
|
}?,
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
not_equals: {
|
|
829
|
-
key: ::String,
|
|
830
|
-
value: {
|
|
831
|
-
}
|
|
832
|
-
}?,
|
|
833
|
-
greater_than: {
|
|
834
|
-
key: ::String,
|
|
835
|
-
value: {
|
|
836
|
-
}
|
|
837
|
-
}?,
|
|
838
|
-
greater_than_or_equals: {
|
|
839
|
-
key: ::String,
|
|
840
|
-
value: {
|
|
841
|
-
}
|
|
842
|
-
}?,
|
|
843
|
-
less_than: {
|
|
844
|
-
key: ::String,
|
|
845
|
-
value: {
|
|
846
|
-
}
|
|
847
|
-
}?,
|
|
848
|
-
less_than_or_equals: {
|
|
849
|
-
key: ::String,
|
|
850
|
-
value: {
|
|
851
|
-
}
|
|
852
|
-
}?,
|
|
853
|
-
in: {
|
|
854
|
-
key: ::String,
|
|
855
|
-
value: {
|
|
856
|
-
}
|
|
857
|
-
}?,
|
|
858
|
-
not_in: {
|
|
859
|
-
key: ::String,
|
|
860
|
-
value: {
|
|
861
|
-
}
|
|
862
|
-
}?,
|
|
863
|
-
starts_with: {
|
|
864
|
-
key: ::String,
|
|
865
|
-
value: {
|
|
866
|
-
}
|
|
867
|
-
}?,
|
|
868
|
-
list_contains: {
|
|
869
|
-
key: ::String,
|
|
870
|
-
value: {
|
|
871
|
-
}
|
|
872
|
-
}?,
|
|
873
|
-
string_contains: {
|
|
874
|
-
key: ::String,
|
|
875
|
-
value: {
|
|
876
|
-
}
|
|
877
|
-
}?,
|
|
878
|
-
and_all: Array[
|
|
879
|
-
untyped,
|
|
880
|
-
]?,
|
|
881
|
-
or_all: Array[
|
|
882
|
-
untyped,
|
|
883
|
-
]?
|
|
884
|
-
}?,
|
|
885
|
-
reranking_configuration: {
|
|
886
|
-
type: ("BEDROCK_RERANKING_MODEL"),
|
|
887
|
-
bedrock_reranking_configuration: {
|
|
888
|
-
model_configuration: {
|
|
889
|
-
model_arn: ::String,
|
|
890
|
-
additional_model_request_fields: Hash[::String, {
|
|
891
|
-
}]?
|
|
892
|
-
},
|
|
893
|
-
number_of_reranked_results: ::Integer?,
|
|
894
|
-
metadata_configuration: {
|
|
895
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
896
|
-
selective_mode_configuration: {
|
|
897
|
-
fields_to_include: Array[
|
|
898
|
-
{
|
|
899
|
-
field_name: ::String
|
|
900
|
-
},
|
|
901
|
-
]?,
|
|
902
|
-
fields_to_exclude: Array[
|
|
903
|
-
{
|
|
904
|
-
field_name: ::String
|
|
905
|
-
},
|
|
906
|
-
]?
|
|
907
|
-
}?
|
|
908
|
-
}?
|
|
910
|
+
number_of_results: ::Integer?,
|
|
911
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
912
|
+
reranking_configuration: {
|
|
913
|
+
bedrock_reranking_configuration: {
|
|
914
|
+
metadata_configuration: {
|
|
915
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
|
916
|
+
selective_mode_configuration: {
|
|
917
|
+
fields_to_exclude: Array[
|
|
918
|
+
{
|
|
919
|
+
field_name: ::String
|
|
920
|
+
},
|
|
921
|
+
]?,
|
|
922
|
+
fields_to_include: Array[
|
|
923
|
+
{
|
|
924
|
+
field_name: ::String
|
|
925
|
+
},
|
|
926
|
+
]?
|
|
909
927
|
}?
|
|
910
928
|
}?,
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
key: ::String,
|
|
915
|
-
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
|
916
|
-
description: ::String
|
|
917
|
-
},
|
|
918
|
-
],
|
|
929
|
+
model_configuration: {
|
|
930
|
+
additional_model_request_fields: Hash[::String, {
|
|
931
|
+
}]?,
|
|
919
932
|
model_arn: ::String
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
}?
|
|
923
|
-
},
|
|
924
|
-
]?,
|
|
925
|
-
guardrail_configuration: {
|
|
926
|
-
guardrail_identifier: ::String,
|
|
927
|
-
guardrail_version: ::String
|
|
928
|
-
}?,
|
|
929
|
-
prompt_override_configuration: {
|
|
930
|
-
prompt_configurations: Array[
|
|
931
|
-
{
|
|
932
|
-
prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?,
|
|
933
|
-
prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
|
|
934
|
-
prompt_state: ("ENABLED" | "DISABLED")?,
|
|
935
|
-
base_prompt_template: ::String?,
|
|
936
|
-
inference_configuration: {
|
|
937
|
-
temperature: ::Float?,
|
|
938
|
-
top_p: ::Float?,
|
|
939
|
-
top_k: ::Integer?,
|
|
940
|
-
maximum_length: ::Integer?,
|
|
941
|
-
stop_sequences: Array[::String]?
|
|
933
|
+
},
|
|
934
|
+
number_of_reranked_results: ::Integer?
|
|
942
935
|
}?,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
},
|
|
948
|
-
],
|
|
949
|
-
override_lambda: ::String?
|
|
950
|
-
}?,
|
|
951
|
-
agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
|
|
952
|
-
collaborator_configurations: Array[
|
|
953
|
-
{
|
|
954
|
-
collaborator_name: ::String,
|
|
955
|
-
collaborator_instruction: ::String,
|
|
956
|
-
agent_alias_arn: ::String?,
|
|
957
|
-
relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
|
|
958
|
-
},
|
|
959
|
-
]?,
|
|
960
|
-
agent_name: ::String?
|
|
936
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
937
|
+
}?
|
|
938
|
+
}
|
|
939
|
+
}?
|
|
961
940
|
},
|
|
962
941
|
],
|
|
963
|
-
?bedrock_model_configurations: {
|
|
964
|
-
performance_config: {
|
|
965
|
-
latency: ("standard" | "optimized")?
|
|
966
|
-
}?
|
|
967
|
-
},
|
|
968
942
|
?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
|
|
969
|
-
?
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
943
|
+
?prompt_creation_configurations: {
|
|
944
|
+
exclude_previous_thinking_steps: bool?,
|
|
945
|
+
previous_conversation_turns_to_include: ::Integer?
|
|
946
|
+
},
|
|
947
|
+
?prompt_override_configuration: {
|
|
948
|
+
override_lambda: ::String?,
|
|
949
|
+
prompt_configurations: Array[
|
|
950
|
+
{
|
|
951
|
+
additional_model_request_fields: {
|
|
952
|
+
}?,
|
|
953
|
+
base_prompt_template: ::String?,
|
|
954
|
+
foundation_model: ::String?,
|
|
955
|
+
inference_configuration: {
|
|
956
|
+
maximum_length: ::Integer?,
|
|
957
|
+
stop_sequences: Array[::String]?,
|
|
958
|
+
temperature: ::Float?,
|
|
959
|
+
top_k: ::Integer?,
|
|
960
|
+
top_p: ::Float?
|
|
961
|
+
}?,
|
|
962
|
+
parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
|
|
963
|
+
prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
|
|
964
|
+
prompt_state: ("ENABLED" | "DISABLED")?,
|
|
965
|
+
prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
|
|
966
|
+
},
|
|
967
|
+
]
|
|
968
|
+
},
|
|
969
|
+
session_id: ::String,
|
|
970
|
+
?streaming_configurations: {
|
|
971
|
+
apply_guardrail_interval: ::Integer?,
|
|
972
|
+
stream_final_response: bool?
|
|
973
973
|
}
|
|
974
974
|
) ?{ (*untyped) -> void } -> _InvokeInlineAgentResponseSuccess
|
|
975
975
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeInlineAgentResponseSuccess
|
|
@@ -981,12 +981,12 @@ module Aws
|
|
|
981
981
|
end
|
|
982
982
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_flow_execution_events-instance_method
|
|
983
983
|
def list_flow_execution_events: (
|
|
984
|
-
|
|
985
|
-
flow_alias_identifier: ::String,
|
|
984
|
+
event_type: ("Node" | "Flow"),
|
|
986
985
|
execution_identifier: ::String,
|
|
986
|
+
flow_alias_identifier: ::String,
|
|
987
|
+
flow_identifier: ::String,
|
|
987
988
|
?max_results: ::Integer,
|
|
988
|
-
?next_token: ::String
|
|
989
|
-
event_type: ("Node" | "Flow")
|
|
989
|
+
?next_token: ::String
|
|
990
990
|
) -> _ListFlowExecutionEventsResponseSuccess
|
|
991
991
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFlowExecutionEventsResponseSuccess
|
|
992
992
|
|
|
@@ -997,8 +997,8 @@ module Aws
|
|
|
997
997
|
end
|
|
998
998
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_flow_executions-instance_method
|
|
999
999
|
def list_flow_executions: (
|
|
1000
|
-
flow_identifier: ::String,
|
|
1001
1000
|
?flow_alias_identifier: ::String,
|
|
1001
|
+
flow_identifier: ::String,
|
|
1002
1002
|
?max_results: ::Integer,
|
|
1003
1003
|
?next_token: ::String
|
|
1004
1004
|
) -> _ListFlowExecutionsResponseSuccess
|
|
@@ -1012,8 +1012,8 @@ module Aws
|
|
|
1012
1012
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_invocation_steps-instance_method
|
|
1013
1013
|
def list_invocation_steps: (
|
|
1014
1014
|
?invocation_identifier: ::String,
|
|
1015
|
-
?next_token: ::String,
|
|
1016
1015
|
?max_results: ::Integer,
|
|
1016
|
+
?next_token: ::String,
|
|
1017
1017
|
session_identifier: ::String
|
|
1018
1018
|
) -> _ListInvocationStepsResponseSuccess
|
|
1019
1019
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInvocationStepsResponseSuccess
|
|
@@ -1025,16 +1025,16 @@ module Aws
|
|
|
1025
1025
|
end
|
|
1026
1026
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_invocations-instance_method
|
|
1027
1027
|
def list_invocations: (
|
|
1028
|
-
?next_token: ::String,
|
|
1029
1028
|
?max_results: ::Integer,
|
|
1029
|
+
?next_token: ::String,
|
|
1030
1030
|
session_identifier: ::String
|
|
1031
1031
|
) -> _ListInvocationsResponseSuccess
|
|
1032
1032
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInvocationsResponseSuccess
|
|
1033
1033
|
|
|
1034
1034
|
interface _ListSessionsResponseSuccess
|
|
1035
1035
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListSessionsResponse]
|
|
1036
|
-
def session_summaries: () -> ::Array[Types::SessionSummary]
|
|
1037
1036
|
def next_token: () -> ::String
|
|
1037
|
+
def session_summaries: () -> ::Array[Types::SessionSummary]
|
|
1038
1038
|
end
|
|
1039
1039
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#list_sessions-instance_method
|
|
1040
1040
|
def list_sessions: (
|
|
@@ -1074,13 +1074,12 @@ module Aws
|
|
|
1074
1074
|
end
|
|
1075
1075
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#put_invocation_step-instance_method
|
|
1076
1076
|
def put_invocation_step: (
|
|
1077
|
-
session_identifier: ::String,
|
|
1078
1077
|
invocation_identifier: ::String,
|
|
1078
|
+
?invocation_step_id: ::String,
|
|
1079
1079
|
invocation_step_time: ::Time,
|
|
1080
1080
|
payload: {
|
|
1081
1081
|
content_blocks: Array[
|
|
1082
1082
|
{
|
|
1083
|
-
text: ::String?,
|
|
1084
1083
|
image: {
|
|
1085
1084
|
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
1086
1085
|
source: {
|
|
@@ -1089,90 +1088,94 @@ module Aws
|
|
|
1089
1088
|
uri: ::String
|
|
1090
1089
|
}?
|
|
1091
1090
|
}
|
|
1092
|
-
}
|
|
1091
|
+
}?,
|
|
1092
|
+
text: ::String?
|
|
1093
1093
|
},
|
|
1094
1094
|
]?
|
|
1095
1095
|
},
|
|
1096
|
-
|
|
1096
|
+
session_identifier: ::String
|
|
1097
1097
|
) -> _PutInvocationStepResponseSuccess
|
|
1098
1098
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutInvocationStepResponseSuccess
|
|
1099
1099
|
|
|
1100
1100
|
interface _RerankResponseSuccess
|
|
1101
1101
|
include ::Seahorse::Client::_ResponseSuccess[Types::RerankResponse]
|
|
1102
|
-
def results: () -> ::Array[Types::RerankResult]
|
|
1103
1102
|
def next_token: () -> ::String
|
|
1103
|
+
def results: () -> ::Array[Types::RerankResult]
|
|
1104
1104
|
end
|
|
1105
1105
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#rerank-instance_method
|
|
1106
1106
|
def rerank: (
|
|
1107
|
+
?next_token: ::String,
|
|
1107
1108
|
queries: Array[
|
|
1108
1109
|
{
|
|
1109
|
-
type: ("TEXT"),
|
|
1110
1110
|
text_query: {
|
|
1111
1111
|
text: ::String?
|
|
1112
|
-
}
|
|
1112
|
+
},
|
|
1113
|
+
type: ("TEXT")
|
|
1113
1114
|
},
|
|
1114
1115
|
],
|
|
1116
|
+
reranking_configuration: {
|
|
1117
|
+
bedrock_reranking_configuration: {
|
|
1118
|
+
model_configuration: {
|
|
1119
|
+
additional_model_request_fields: Hash[::String, {
|
|
1120
|
+
}]?,
|
|
1121
|
+
model_arn: ::String
|
|
1122
|
+
},
|
|
1123
|
+
number_of_results: ::Integer?
|
|
1124
|
+
},
|
|
1125
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
1126
|
+
},
|
|
1115
1127
|
sources: Array[
|
|
1116
1128
|
{
|
|
1117
|
-
type: ("INLINE"),
|
|
1118
1129
|
inline_document_source: {
|
|
1119
|
-
|
|
1130
|
+
json_document: {
|
|
1131
|
+
}?,
|
|
1120
1132
|
text_document: {
|
|
1121
1133
|
text: ::String?
|
|
1122
1134
|
}?,
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1135
|
+
type: ("TEXT" | "JSON")
|
|
1136
|
+
},
|
|
1137
|
+
type: ("INLINE")
|
|
1126
1138
|
},
|
|
1127
|
-
]
|
|
1128
|
-
reranking_configuration: {
|
|
1129
|
-
type: ("BEDROCK_RERANKING_MODEL"),
|
|
1130
|
-
bedrock_reranking_configuration: {
|
|
1131
|
-
number_of_results: ::Integer?,
|
|
1132
|
-
model_configuration: {
|
|
1133
|
-
model_arn: ::String,
|
|
1134
|
-
additional_model_request_fields: Hash[::String, {
|
|
1135
|
-
}]?
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
},
|
|
1139
|
-
?next_token: ::String
|
|
1139
|
+
]
|
|
1140
1140
|
) -> _RerankResponseSuccess
|
|
1141
1141
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RerankResponseSuccess
|
|
1142
1142
|
|
|
1143
1143
|
interface _RetrieveResponseSuccess
|
|
1144
1144
|
include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveResponse]
|
|
1145
|
-
def retrieval_results: () -> ::Array[Types::KnowledgeBaseRetrievalResult]
|
|
1146
1145
|
def guardrail_action: () -> ("INTERVENED" | "NONE")
|
|
1147
1146
|
def next_token: () -> ::String
|
|
1147
|
+
def retrieval_results: () -> ::Array[Types::KnowledgeBaseRetrievalResult]
|
|
1148
1148
|
end
|
|
1149
1149
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve-instance_method
|
|
1150
1150
|
def retrieve: (
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
?guardrail_configuration: {
|
|
1152
|
+
guardrail_id: ::String,
|
|
1153
|
+
guardrail_version: ::String
|
|
1154
1154
|
},
|
|
1155
|
+
knowledge_base_id: ::String,
|
|
1156
|
+
?next_token: ::String,
|
|
1155
1157
|
?retrieval_configuration: {
|
|
1156
1158
|
vector_search_configuration: {
|
|
1157
|
-
number_of_results: ::Integer?,
|
|
1158
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1159
1159
|
filter: {
|
|
1160
|
+
and_all: Array[
|
|
1161
|
+
untyped,
|
|
1162
|
+
]?,
|
|
1160
1163
|
equals: {
|
|
1161
1164
|
key: ::String,
|
|
1162
1165
|
value: {
|
|
1163
1166
|
}
|
|
1164
1167
|
}?,
|
|
1165
|
-
|
|
1168
|
+
greater_than: {
|
|
1166
1169
|
key: ::String,
|
|
1167
1170
|
value: {
|
|
1168
1171
|
}
|
|
1169
1172
|
}?,
|
|
1170
|
-
|
|
1173
|
+
greater_than_or_equals: {
|
|
1171
1174
|
key: ::String,
|
|
1172
1175
|
value: {
|
|
1173
1176
|
}
|
|
1174
1177
|
}?,
|
|
1175
|
-
|
|
1178
|
+
in: {
|
|
1176
1179
|
key: ::String,
|
|
1177
1180
|
value: {
|
|
1178
1181
|
}
|
|
@@ -1187,22 +1190,25 @@ module Aws
|
|
|
1187
1190
|
value: {
|
|
1188
1191
|
}
|
|
1189
1192
|
}?,
|
|
1190
|
-
|
|
1193
|
+
list_contains: {
|
|
1191
1194
|
key: ::String,
|
|
1192
1195
|
value: {
|
|
1193
1196
|
}
|
|
1194
1197
|
}?,
|
|
1195
|
-
|
|
1198
|
+
not_equals: {
|
|
1196
1199
|
key: ::String,
|
|
1197
1200
|
value: {
|
|
1198
1201
|
}
|
|
1199
1202
|
}?,
|
|
1200
|
-
|
|
1203
|
+
not_in: {
|
|
1201
1204
|
key: ::String,
|
|
1202
1205
|
value: {
|
|
1203
1206
|
}
|
|
1204
1207
|
}?,
|
|
1205
|
-
|
|
1208
|
+
or_all: Array[
|
|
1209
|
+
untyped,
|
|
1210
|
+
]?,
|
|
1211
|
+
starts_with: {
|
|
1206
1212
|
key: ::String,
|
|
1207
1213
|
value: {
|
|
1208
1214
|
}
|
|
@@ -1211,99 +1217,178 @@ module Aws
|
|
|
1211
1217
|
key: ::String,
|
|
1212
1218
|
value: {
|
|
1213
1219
|
}
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1220
|
+
}?
|
|
1221
|
+
}?,
|
|
1222
|
+
implicit_filter_configuration: {
|
|
1223
|
+
metadata_attributes: Array[
|
|
1224
|
+
{
|
|
1225
|
+
description: ::String,
|
|
1226
|
+
key: ::String,
|
|
1227
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
1228
|
+
},
|
|
1229
|
+
],
|
|
1230
|
+
model_arn: ::String
|
|
1221
1231
|
}?,
|
|
1232
|
+
number_of_results: ::Integer?,
|
|
1233
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1222
1234
|
reranking_configuration: {
|
|
1223
|
-
type: ("BEDROCK_RERANKING_MODEL"),
|
|
1224
1235
|
bedrock_reranking_configuration: {
|
|
1225
|
-
model_configuration: {
|
|
1226
|
-
model_arn: ::String,
|
|
1227
|
-
additional_model_request_fields: Hash[::String, {
|
|
1228
|
-
}]?
|
|
1229
|
-
},
|
|
1230
|
-
number_of_reranked_results: ::Integer?,
|
|
1231
1236
|
metadata_configuration: {
|
|
1232
1237
|
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1233
1238
|
selective_mode_configuration: {
|
|
1234
|
-
|
|
1239
|
+
fields_to_exclude: Array[
|
|
1235
1240
|
{
|
|
1236
1241
|
field_name: ::String
|
|
1237
1242
|
},
|
|
1238
1243
|
]?,
|
|
1239
|
-
|
|
1244
|
+
fields_to_include: Array[
|
|
1240
1245
|
{
|
|
1241
1246
|
field_name: ::String
|
|
1242
1247
|
},
|
|
1243
1248
|
]?
|
|
1244
1249
|
}?
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
{
|
|
1251
|
-
key: ::String,
|
|
1252
|
-
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
|
1253
|
-
description: ::String
|
|
1250
|
+
}?,
|
|
1251
|
+
model_configuration: {
|
|
1252
|
+
additional_model_request_fields: Hash[::String, {
|
|
1253
|
+
}]?,
|
|
1254
|
+
model_arn: ::String
|
|
1254
1255
|
},
|
|
1255
|
-
|
|
1256
|
-
|
|
1256
|
+
number_of_reranked_results: ::Integer?
|
|
1257
|
+
}?,
|
|
1258
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
1257
1259
|
}?
|
|
1258
1260
|
}
|
|
1259
1261
|
},
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1262
|
+
retrieval_query: {
|
|
1263
|
+
image: {
|
|
1264
|
+
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
1265
|
+
inline_content: ::String
|
|
1266
|
+
}?,
|
|
1267
|
+
text: ::String?,
|
|
1268
|
+
type: ("TEXT" | "IMAGE")?
|
|
1269
|
+
}
|
|
1265
1270
|
) -> _RetrieveResponseSuccess
|
|
1266
1271
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveResponseSuccess
|
|
1267
1272
|
|
|
1268
1273
|
interface _RetrieveAndGenerateResponseSuccess
|
|
1269
1274
|
include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveAndGenerateResponse]
|
|
1270
|
-
def session_id: () -> ::String
|
|
1271
|
-
def output: () -> Types::RetrieveAndGenerateOutput
|
|
1272
1275
|
def citations: () -> ::Array[Types::Citation]
|
|
1273
1276
|
def guardrail_action: () -> ("INTERVENED" | "NONE")
|
|
1277
|
+
def output: () -> Types::RetrieveAndGenerateOutput
|
|
1278
|
+
def session_id: () -> ::String
|
|
1274
1279
|
end
|
|
1275
1280
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve_and_generate-instance_method
|
|
1276
1281
|
def retrieve_and_generate: (
|
|
1277
|
-
?session_id: ::String,
|
|
1278
1282
|
input: {
|
|
1279
1283
|
text: ::String
|
|
1280
1284
|
},
|
|
1281
1285
|
?retrieve_and_generate_configuration: {
|
|
1282
|
-
|
|
1286
|
+
external_sources_configuration: {
|
|
1287
|
+
generation_configuration: {
|
|
1288
|
+
additional_model_request_fields: Hash[::String, {
|
|
1289
|
+
}]?,
|
|
1290
|
+
guardrail_configuration: {
|
|
1291
|
+
guardrail_id: ::String,
|
|
1292
|
+
guardrail_version: ::String
|
|
1293
|
+
}?,
|
|
1294
|
+
inference_config: {
|
|
1295
|
+
text_inference_config: {
|
|
1296
|
+
max_tokens: ::Integer?,
|
|
1297
|
+
stop_sequences: Array[::String]?,
|
|
1298
|
+
temperature: ::Float?,
|
|
1299
|
+
top_p: ::Float?
|
|
1300
|
+
}?
|
|
1301
|
+
}?,
|
|
1302
|
+
performance_config: {
|
|
1303
|
+
latency: ("standard" | "optimized")?
|
|
1304
|
+
}?,
|
|
1305
|
+
prompt_template: {
|
|
1306
|
+
text_prompt_template: ::String?
|
|
1307
|
+
}?
|
|
1308
|
+
}?,
|
|
1309
|
+
model_arn: ::String,
|
|
1310
|
+
sources: Array[
|
|
1311
|
+
{
|
|
1312
|
+
byte_content: {
|
|
1313
|
+
content_type: ::String,
|
|
1314
|
+
data: ::String,
|
|
1315
|
+
identifier: ::String
|
|
1316
|
+
}?,
|
|
1317
|
+
s3_location: {
|
|
1318
|
+
uri: ::String
|
|
1319
|
+
}?,
|
|
1320
|
+
source_type: ("S3" | "BYTE_CONTENT")
|
|
1321
|
+
},
|
|
1322
|
+
]
|
|
1323
|
+
}?,
|
|
1283
1324
|
knowledge_base_configuration: {
|
|
1325
|
+
generation_configuration: {
|
|
1326
|
+
additional_model_request_fields: Hash[::String, {
|
|
1327
|
+
}]?,
|
|
1328
|
+
guardrail_configuration: {
|
|
1329
|
+
guardrail_id: ::String,
|
|
1330
|
+
guardrail_version: ::String
|
|
1331
|
+
}?,
|
|
1332
|
+
inference_config: {
|
|
1333
|
+
text_inference_config: {
|
|
1334
|
+
max_tokens: ::Integer?,
|
|
1335
|
+
stop_sequences: Array[::String]?,
|
|
1336
|
+
temperature: ::Float?,
|
|
1337
|
+
top_p: ::Float?
|
|
1338
|
+
}?
|
|
1339
|
+
}?,
|
|
1340
|
+
performance_config: {
|
|
1341
|
+
latency: ("standard" | "optimized")?
|
|
1342
|
+
}?,
|
|
1343
|
+
prompt_template: {
|
|
1344
|
+
text_prompt_template: ::String?
|
|
1345
|
+
}?
|
|
1346
|
+
}?,
|
|
1284
1347
|
knowledge_base_id: ::String,
|
|
1285
1348
|
model_arn: ::String,
|
|
1349
|
+
orchestration_configuration: {
|
|
1350
|
+
additional_model_request_fields: Hash[::String, {
|
|
1351
|
+
}]?,
|
|
1352
|
+
inference_config: {
|
|
1353
|
+
text_inference_config: {
|
|
1354
|
+
max_tokens: ::Integer?,
|
|
1355
|
+
stop_sequences: Array[::String]?,
|
|
1356
|
+
temperature: ::Float?,
|
|
1357
|
+
top_p: ::Float?
|
|
1358
|
+
}?
|
|
1359
|
+
}?,
|
|
1360
|
+
performance_config: {
|
|
1361
|
+
latency: ("standard" | "optimized")?
|
|
1362
|
+
}?,
|
|
1363
|
+
prompt_template: {
|
|
1364
|
+
text_prompt_template: ::String?
|
|
1365
|
+
}?,
|
|
1366
|
+
query_transformation_configuration: {
|
|
1367
|
+
type: ("QUERY_DECOMPOSITION")
|
|
1368
|
+
}?
|
|
1369
|
+
}?,
|
|
1286
1370
|
retrieval_configuration: {
|
|
1287
1371
|
vector_search_configuration: {
|
|
1288
|
-
number_of_results: ::Integer?,
|
|
1289
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1290
1372
|
filter: {
|
|
1373
|
+
and_all: Array[
|
|
1374
|
+
untyped,
|
|
1375
|
+
]?,
|
|
1291
1376
|
equals: {
|
|
1292
1377
|
key: ::String,
|
|
1293
1378
|
value: {
|
|
1294
1379
|
}
|
|
1295
1380
|
}?,
|
|
1296
|
-
|
|
1381
|
+
greater_than: {
|
|
1297
1382
|
key: ::String,
|
|
1298
1383
|
value: {
|
|
1299
1384
|
}
|
|
1300
1385
|
}?,
|
|
1301
|
-
|
|
1386
|
+
greater_than_or_equals: {
|
|
1302
1387
|
key: ::String,
|
|
1303
1388
|
value: {
|
|
1304
1389
|
}
|
|
1305
1390
|
}?,
|
|
1306
|
-
|
|
1391
|
+
in: {
|
|
1307
1392
|
key: ::String,
|
|
1308
1393
|
value: {
|
|
1309
1394
|
}
|
|
@@ -1318,22 +1403,25 @@ module Aws
|
|
|
1318
1403
|
value: {
|
|
1319
1404
|
}
|
|
1320
1405
|
}?,
|
|
1321
|
-
|
|
1406
|
+
list_contains: {
|
|
1322
1407
|
key: ::String,
|
|
1323
1408
|
value: {
|
|
1324
1409
|
}
|
|
1325
1410
|
}?,
|
|
1326
|
-
|
|
1411
|
+
not_equals: {
|
|
1327
1412
|
key: ::String,
|
|
1328
1413
|
value: {
|
|
1329
1414
|
}
|
|
1330
1415
|
}?,
|
|
1331
|
-
|
|
1416
|
+
not_in: {
|
|
1332
1417
|
key: ::String,
|
|
1333
1418
|
value: {
|
|
1334
1419
|
}
|
|
1335
1420
|
}?,
|
|
1336
|
-
|
|
1421
|
+
or_all: Array[
|
|
1422
|
+
untyped,
|
|
1423
|
+
]?,
|
|
1424
|
+
starts_with: {
|
|
1337
1425
|
key: ::String,
|
|
1338
1426
|
value: {
|
|
1339
1427
|
}
|
|
@@ -1342,178 +1430,175 @@ module Aws
|
|
|
1342
1430
|
key: ::String,
|
|
1343
1431
|
value: {
|
|
1344
1432
|
}
|
|
1345
|
-
}?,
|
|
1346
|
-
and_all: Array[
|
|
1347
|
-
untyped,
|
|
1348
|
-
]?,
|
|
1349
|
-
or_all: Array[
|
|
1350
|
-
untyped,
|
|
1351
|
-
]?
|
|
1352
|
-
}?,
|
|
1353
|
-
reranking_configuration: {
|
|
1354
|
-
type: ("BEDROCK_RERANKING_MODEL"),
|
|
1355
|
-
bedrock_reranking_configuration: {
|
|
1356
|
-
model_configuration: {
|
|
1357
|
-
model_arn: ::String,
|
|
1358
|
-
additional_model_request_fields: Hash[::String, {
|
|
1359
|
-
}]?
|
|
1360
|
-
},
|
|
1361
|
-
number_of_reranked_results: ::Integer?,
|
|
1362
|
-
metadata_configuration: {
|
|
1363
|
-
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1364
|
-
selective_mode_configuration: {
|
|
1365
|
-
fields_to_include: Array[
|
|
1366
|
-
{
|
|
1367
|
-
field_name: ::String
|
|
1368
|
-
},
|
|
1369
|
-
]?,
|
|
1370
|
-
fields_to_exclude: Array[
|
|
1371
|
-
{
|
|
1372
|
-
field_name: ::String
|
|
1373
|
-
},
|
|
1374
|
-
]?
|
|
1375
|
-
}?
|
|
1376
|
-
}?
|
|
1377
1433
|
}?
|
|
1378
|
-
}?,
|
|
1379
|
-
implicit_filter_configuration: {
|
|
1380
|
-
metadata_attributes: Array[
|
|
1381
|
-
{
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
},
|
|
1386
|
-
],
|
|
1387
|
-
model_arn: ::String
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
}?,
|
|
1417
|
-
inference_config: {
|
|
1418
|
-
text_inference_config: {
|
|
1419
|
-
temperature: ::Float?,
|
|
1420
|
-
top_p: ::Float?,
|
|
1421
|
-
max_tokens: ::Integer?,
|
|
1422
|
-
stop_sequences: Array[::String]?
|
|
1423
|
-
}?
|
|
1424
|
-
}?,
|
|
1425
|
-
additional_model_request_fields: Hash[::String, {
|
|
1426
|
-
}]?,
|
|
1427
|
-
query_transformation_configuration: {
|
|
1428
|
-
type: ("QUERY_DECOMPOSITION")
|
|
1429
|
-
}?,
|
|
1430
|
-
performance_config: {
|
|
1431
|
-
latency: ("standard" | "optimized")?
|
|
1432
|
-
}?
|
|
1433
|
-
}?
|
|
1434
|
-
}?,
|
|
1435
|
-
external_sources_configuration: {
|
|
1436
|
-
model_arn: ::String,
|
|
1437
|
-
sources: Array[
|
|
1438
|
-
{
|
|
1439
|
-
source_type: ("S3" | "BYTE_CONTENT"),
|
|
1440
|
-
s3_location: {
|
|
1441
|
-
uri: ::String
|
|
1442
|
-
}?,
|
|
1443
|
-
byte_content: {
|
|
1444
|
-
identifier: ::String,
|
|
1445
|
-
content_type: ::String,
|
|
1446
|
-
data: ::String
|
|
1447
|
-
}?
|
|
1448
|
-
},
|
|
1449
|
-
],
|
|
1450
|
-
generation_configuration: {
|
|
1451
|
-
prompt_template: {
|
|
1452
|
-
text_prompt_template: ::String?
|
|
1453
|
-
}?,
|
|
1454
|
-
guardrail_configuration: {
|
|
1455
|
-
guardrail_id: ::String,
|
|
1456
|
-
guardrail_version: ::String
|
|
1457
|
-
}?,
|
|
1458
|
-
inference_config: {
|
|
1459
|
-
text_inference_config: {
|
|
1460
|
-
temperature: ::Float?,
|
|
1461
|
-
top_p: ::Float?,
|
|
1462
|
-
max_tokens: ::Integer?,
|
|
1463
|
-
stop_sequences: Array[::String]?
|
|
1434
|
+
}?,
|
|
1435
|
+
implicit_filter_configuration: {
|
|
1436
|
+
metadata_attributes: Array[
|
|
1437
|
+
{
|
|
1438
|
+
description: ::String,
|
|
1439
|
+
key: ::String,
|
|
1440
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
1441
|
+
},
|
|
1442
|
+
],
|
|
1443
|
+
model_arn: ::String
|
|
1444
|
+
}?,
|
|
1445
|
+
number_of_results: ::Integer?,
|
|
1446
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1447
|
+
reranking_configuration: {
|
|
1448
|
+
bedrock_reranking_configuration: {
|
|
1449
|
+
metadata_configuration: {
|
|
1450
|
+
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1451
|
+
selective_mode_configuration: {
|
|
1452
|
+
fields_to_exclude: Array[
|
|
1453
|
+
{
|
|
1454
|
+
field_name: ::String
|
|
1455
|
+
},
|
|
1456
|
+
]?,
|
|
1457
|
+
fields_to_include: Array[
|
|
1458
|
+
{
|
|
1459
|
+
field_name: ::String
|
|
1460
|
+
},
|
|
1461
|
+
]?
|
|
1462
|
+
}?
|
|
1463
|
+
}?,
|
|
1464
|
+
model_configuration: {
|
|
1465
|
+
additional_model_request_fields: Hash[::String, {
|
|
1466
|
+
}]?,
|
|
1467
|
+
model_arn: ::String
|
|
1468
|
+
},
|
|
1469
|
+
number_of_reranked_results: ::Integer?
|
|
1470
|
+
}?,
|
|
1471
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
1464
1472
|
}?
|
|
1465
|
-
}
|
|
1466
|
-
additional_model_request_fields: Hash[::String, {
|
|
1467
|
-
}]?,
|
|
1468
|
-
performance_config: {
|
|
1469
|
-
latency: ("standard" | "optimized")?
|
|
1470
|
-
}?
|
|
1473
|
+
}
|
|
1471
1474
|
}?
|
|
1472
|
-
}
|
|
1475
|
+
}?,
|
|
1476
|
+
type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
|
|
1473
1477
|
},
|
|
1474
1478
|
?session_configuration: {
|
|
1475
1479
|
kms_key_arn: ::String
|
|
1476
|
-
}
|
|
1480
|
+
},
|
|
1481
|
+
?session_id: ::String
|
|
1477
1482
|
) -> _RetrieveAndGenerateResponseSuccess
|
|
1478
1483
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveAndGenerateResponseSuccess
|
|
1479
1484
|
|
|
1480
1485
|
interface _RetrieveAndGenerateStreamResponseSuccess
|
|
1481
1486
|
include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveAndGenerateStreamResponse]
|
|
1482
|
-
def stream: () -> Types::RetrieveAndGenerateStreamResponseOutput
|
|
1483
1487
|
def session_id: () -> ::String
|
|
1488
|
+
def stream: () -> Types::RetrieveAndGenerateStreamResponseOutput
|
|
1484
1489
|
end
|
|
1485
1490
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve_and_generate_stream-instance_method
|
|
1486
1491
|
def retrieve_and_generate_stream: (
|
|
1487
|
-
?session_id: ::String,
|
|
1488
1492
|
input: {
|
|
1489
1493
|
text: ::String
|
|
1490
1494
|
},
|
|
1491
1495
|
?retrieve_and_generate_configuration: {
|
|
1492
|
-
|
|
1496
|
+
external_sources_configuration: {
|
|
1497
|
+
generation_configuration: {
|
|
1498
|
+
additional_model_request_fields: Hash[::String, {
|
|
1499
|
+
}]?,
|
|
1500
|
+
guardrail_configuration: {
|
|
1501
|
+
guardrail_id: ::String,
|
|
1502
|
+
guardrail_version: ::String
|
|
1503
|
+
}?,
|
|
1504
|
+
inference_config: {
|
|
1505
|
+
text_inference_config: {
|
|
1506
|
+
max_tokens: ::Integer?,
|
|
1507
|
+
stop_sequences: Array[::String]?,
|
|
1508
|
+
temperature: ::Float?,
|
|
1509
|
+
top_p: ::Float?
|
|
1510
|
+
}?
|
|
1511
|
+
}?,
|
|
1512
|
+
performance_config: {
|
|
1513
|
+
latency: ("standard" | "optimized")?
|
|
1514
|
+
}?,
|
|
1515
|
+
prompt_template: {
|
|
1516
|
+
text_prompt_template: ::String?
|
|
1517
|
+
}?
|
|
1518
|
+
}?,
|
|
1519
|
+
model_arn: ::String,
|
|
1520
|
+
sources: Array[
|
|
1521
|
+
{
|
|
1522
|
+
byte_content: {
|
|
1523
|
+
content_type: ::String,
|
|
1524
|
+
data: ::String,
|
|
1525
|
+
identifier: ::String
|
|
1526
|
+
}?,
|
|
1527
|
+
s3_location: {
|
|
1528
|
+
uri: ::String
|
|
1529
|
+
}?,
|
|
1530
|
+
source_type: ("S3" | "BYTE_CONTENT")
|
|
1531
|
+
},
|
|
1532
|
+
]
|
|
1533
|
+
}?,
|
|
1493
1534
|
knowledge_base_configuration: {
|
|
1535
|
+
generation_configuration: {
|
|
1536
|
+
additional_model_request_fields: Hash[::String, {
|
|
1537
|
+
}]?,
|
|
1538
|
+
guardrail_configuration: {
|
|
1539
|
+
guardrail_id: ::String,
|
|
1540
|
+
guardrail_version: ::String
|
|
1541
|
+
}?,
|
|
1542
|
+
inference_config: {
|
|
1543
|
+
text_inference_config: {
|
|
1544
|
+
max_tokens: ::Integer?,
|
|
1545
|
+
stop_sequences: Array[::String]?,
|
|
1546
|
+
temperature: ::Float?,
|
|
1547
|
+
top_p: ::Float?
|
|
1548
|
+
}?
|
|
1549
|
+
}?,
|
|
1550
|
+
performance_config: {
|
|
1551
|
+
latency: ("standard" | "optimized")?
|
|
1552
|
+
}?,
|
|
1553
|
+
prompt_template: {
|
|
1554
|
+
text_prompt_template: ::String?
|
|
1555
|
+
}?
|
|
1556
|
+
}?,
|
|
1494
1557
|
knowledge_base_id: ::String,
|
|
1495
1558
|
model_arn: ::String,
|
|
1559
|
+
orchestration_configuration: {
|
|
1560
|
+
additional_model_request_fields: Hash[::String, {
|
|
1561
|
+
}]?,
|
|
1562
|
+
inference_config: {
|
|
1563
|
+
text_inference_config: {
|
|
1564
|
+
max_tokens: ::Integer?,
|
|
1565
|
+
stop_sequences: Array[::String]?,
|
|
1566
|
+
temperature: ::Float?,
|
|
1567
|
+
top_p: ::Float?
|
|
1568
|
+
}?
|
|
1569
|
+
}?,
|
|
1570
|
+
performance_config: {
|
|
1571
|
+
latency: ("standard" | "optimized")?
|
|
1572
|
+
}?,
|
|
1573
|
+
prompt_template: {
|
|
1574
|
+
text_prompt_template: ::String?
|
|
1575
|
+
}?,
|
|
1576
|
+
query_transformation_configuration: {
|
|
1577
|
+
type: ("QUERY_DECOMPOSITION")
|
|
1578
|
+
}?
|
|
1579
|
+
}?,
|
|
1496
1580
|
retrieval_configuration: {
|
|
1497
1581
|
vector_search_configuration: {
|
|
1498
|
-
number_of_results: ::Integer?,
|
|
1499
|
-
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1500
1582
|
filter: {
|
|
1583
|
+
and_all: Array[
|
|
1584
|
+
untyped,
|
|
1585
|
+
]?,
|
|
1501
1586
|
equals: {
|
|
1502
1587
|
key: ::String,
|
|
1503
1588
|
value: {
|
|
1504
1589
|
}
|
|
1505
1590
|
}?,
|
|
1506
|
-
|
|
1591
|
+
greater_than: {
|
|
1507
1592
|
key: ::String,
|
|
1508
1593
|
value: {
|
|
1509
1594
|
}
|
|
1510
1595
|
}?,
|
|
1511
|
-
|
|
1596
|
+
greater_than_or_equals: {
|
|
1512
1597
|
key: ::String,
|
|
1513
1598
|
value: {
|
|
1514
1599
|
}
|
|
1515
1600
|
}?,
|
|
1516
|
-
|
|
1601
|
+
in: {
|
|
1517
1602
|
key: ::String,
|
|
1518
1603
|
value: {
|
|
1519
1604
|
}
|
|
@@ -1528,22 +1613,25 @@ module Aws
|
|
|
1528
1613
|
value: {
|
|
1529
1614
|
}
|
|
1530
1615
|
}?,
|
|
1531
|
-
|
|
1616
|
+
list_contains: {
|
|
1532
1617
|
key: ::String,
|
|
1533
1618
|
value: {
|
|
1534
1619
|
}
|
|
1535
1620
|
}?,
|
|
1536
|
-
|
|
1621
|
+
not_equals: {
|
|
1537
1622
|
key: ::String,
|
|
1538
1623
|
value: {
|
|
1539
1624
|
}
|
|
1540
1625
|
}?,
|
|
1541
|
-
|
|
1626
|
+
not_in: {
|
|
1542
1627
|
key: ::String,
|
|
1543
1628
|
value: {
|
|
1544
1629
|
}
|
|
1545
1630
|
}?,
|
|
1546
|
-
|
|
1631
|
+
or_all: Array[
|
|
1632
|
+
untyped,
|
|
1633
|
+
]?,
|
|
1634
|
+
starts_with: {
|
|
1547
1635
|
key: ::String,
|
|
1548
1636
|
value: {
|
|
1549
1637
|
}
|
|
@@ -1552,138 +1640,55 @@ module Aws
|
|
|
1552
1640
|
key: ::String,
|
|
1553
1641
|
value: {
|
|
1554
1642
|
}
|
|
1555
|
-
}
|
|
1556
|
-
and_all: Array[
|
|
1557
|
-
untyped,
|
|
1558
|
-
]?,
|
|
1559
|
-
or_all: Array[
|
|
1560
|
-
untyped,
|
|
1561
|
-
]?
|
|
1643
|
+
}?
|
|
1562
1644
|
}?,
|
|
1645
|
+
implicit_filter_configuration: {
|
|
1646
|
+
metadata_attributes: Array[
|
|
1647
|
+
{
|
|
1648
|
+
description: ::String,
|
|
1649
|
+
key: ::String,
|
|
1650
|
+
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
|
|
1651
|
+
},
|
|
1652
|
+
],
|
|
1653
|
+
model_arn: ::String
|
|
1654
|
+
}?,
|
|
1655
|
+
number_of_results: ::Integer?,
|
|
1656
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?,
|
|
1563
1657
|
reranking_configuration: {
|
|
1564
|
-
type: ("BEDROCK_RERANKING_MODEL"),
|
|
1565
1658
|
bedrock_reranking_configuration: {
|
|
1566
|
-
model_configuration: {
|
|
1567
|
-
model_arn: ::String,
|
|
1568
|
-
additional_model_request_fields: Hash[::String, {
|
|
1569
|
-
}]?
|
|
1570
|
-
},
|
|
1571
|
-
number_of_reranked_results: ::Integer?,
|
|
1572
1659
|
metadata_configuration: {
|
|
1573
1660
|
selection_mode: ("SELECTIVE" | "ALL"),
|
|
1574
1661
|
selective_mode_configuration: {
|
|
1575
|
-
|
|
1662
|
+
fields_to_exclude: Array[
|
|
1576
1663
|
{
|
|
1577
1664
|
field_name: ::String
|
|
1578
1665
|
},
|
|
1579
1666
|
]?,
|
|
1580
|
-
|
|
1667
|
+
fields_to_include: Array[
|
|
1581
1668
|
{
|
|
1582
1669
|
field_name: ::String
|
|
1583
1670
|
},
|
|
1584
1671
|
]?
|
|
1585
1672
|
}?
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
{
|
|
1592
|
-
key: ::String,
|
|
1593
|
-
type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
|
|
1594
|
-
description: ::String
|
|
1673
|
+
}?,
|
|
1674
|
+
model_configuration: {
|
|
1675
|
+
additional_model_request_fields: Hash[::String, {
|
|
1676
|
+
}]?,
|
|
1677
|
+
model_arn: ::String
|
|
1595
1678
|
},
|
|
1596
|
-
|
|
1597
|
-
|
|
1679
|
+
number_of_reranked_results: ::Integer?
|
|
1680
|
+
}?,
|
|
1681
|
+
type: ("BEDROCK_RERANKING_MODEL")
|
|
1598
1682
|
}?
|
|
1599
1683
|
}
|
|
1600
|
-
}?,
|
|
1601
|
-
generation_configuration: {
|
|
1602
|
-
prompt_template: {
|
|
1603
|
-
text_prompt_template: ::String?
|
|
1604
|
-
}?,
|
|
1605
|
-
guardrail_configuration: {
|
|
1606
|
-
guardrail_id: ::String,
|
|
1607
|
-
guardrail_version: ::String
|
|
1608
|
-
}?,
|
|
1609
|
-
inference_config: {
|
|
1610
|
-
text_inference_config: {
|
|
1611
|
-
temperature: ::Float?,
|
|
1612
|
-
top_p: ::Float?,
|
|
1613
|
-
max_tokens: ::Integer?,
|
|
1614
|
-
stop_sequences: Array[::String]?
|
|
1615
|
-
}?
|
|
1616
|
-
}?,
|
|
1617
|
-
additional_model_request_fields: Hash[::String, {
|
|
1618
|
-
}]?,
|
|
1619
|
-
performance_config: {
|
|
1620
|
-
latency: ("standard" | "optimized")?
|
|
1621
|
-
}?
|
|
1622
|
-
}?,
|
|
1623
|
-
orchestration_configuration: {
|
|
1624
|
-
prompt_template: {
|
|
1625
|
-
text_prompt_template: ::String?
|
|
1626
|
-
}?,
|
|
1627
|
-
inference_config: {
|
|
1628
|
-
text_inference_config: {
|
|
1629
|
-
temperature: ::Float?,
|
|
1630
|
-
top_p: ::Float?,
|
|
1631
|
-
max_tokens: ::Integer?,
|
|
1632
|
-
stop_sequences: Array[::String]?
|
|
1633
|
-
}?
|
|
1634
|
-
}?,
|
|
1635
|
-
additional_model_request_fields: Hash[::String, {
|
|
1636
|
-
}]?,
|
|
1637
|
-
query_transformation_configuration: {
|
|
1638
|
-
type: ("QUERY_DECOMPOSITION")
|
|
1639
|
-
}?,
|
|
1640
|
-
performance_config: {
|
|
1641
|
-
latency: ("standard" | "optimized")?
|
|
1642
|
-
}?
|
|
1643
1684
|
}?
|
|
1644
1685
|
}?,
|
|
1645
|
-
|
|
1646
|
-
model_arn: ::String,
|
|
1647
|
-
sources: Array[
|
|
1648
|
-
{
|
|
1649
|
-
source_type: ("S3" | "BYTE_CONTENT"),
|
|
1650
|
-
s3_location: {
|
|
1651
|
-
uri: ::String
|
|
1652
|
-
}?,
|
|
1653
|
-
byte_content: {
|
|
1654
|
-
identifier: ::String,
|
|
1655
|
-
content_type: ::String,
|
|
1656
|
-
data: ::String
|
|
1657
|
-
}?
|
|
1658
|
-
},
|
|
1659
|
-
],
|
|
1660
|
-
generation_configuration: {
|
|
1661
|
-
prompt_template: {
|
|
1662
|
-
text_prompt_template: ::String?
|
|
1663
|
-
}?,
|
|
1664
|
-
guardrail_configuration: {
|
|
1665
|
-
guardrail_id: ::String,
|
|
1666
|
-
guardrail_version: ::String
|
|
1667
|
-
}?,
|
|
1668
|
-
inference_config: {
|
|
1669
|
-
text_inference_config: {
|
|
1670
|
-
temperature: ::Float?,
|
|
1671
|
-
top_p: ::Float?,
|
|
1672
|
-
max_tokens: ::Integer?,
|
|
1673
|
-
stop_sequences: Array[::String]?
|
|
1674
|
-
}?
|
|
1675
|
-
}?,
|
|
1676
|
-
additional_model_request_fields: Hash[::String, {
|
|
1677
|
-
}]?,
|
|
1678
|
-
performance_config: {
|
|
1679
|
-
latency: ("standard" | "optimized")?
|
|
1680
|
-
}?
|
|
1681
|
-
}?
|
|
1682
|
-
}?
|
|
1686
|
+
type: ("KNOWLEDGE_BASE" | "EXTERNAL_SOURCES")
|
|
1683
1687
|
},
|
|
1684
1688
|
?session_configuration: {
|
|
1685
1689
|
kms_key_arn: ::String
|
|
1686
|
-
}
|
|
1690
|
+
},
|
|
1691
|
+
?session_id: ::String
|
|
1687
1692
|
) ?{ (*untyped) -> void } -> _RetrieveAndGenerateStreamResponseSuccess
|
|
1688
1693
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _RetrieveAndGenerateStreamResponseSuccess
|
|
1689
1694
|
|
|
@@ -1693,18 +1698,18 @@ module Aws
|
|
|
1693
1698
|
end
|
|
1694
1699
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#start_flow_execution-instance_method
|
|
1695
1700
|
def start_flow_execution: (
|
|
1696
|
-
flow_identifier: ::String,
|
|
1697
1701
|
flow_alias_identifier: ::String,
|
|
1698
1702
|
?flow_execution_name: ::String,
|
|
1703
|
+
flow_identifier: ::String,
|
|
1699
1704
|
inputs: Array[
|
|
1700
1705
|
{
|
|
1701
|
-
node_name: ::String,
|
|
1702
|
-
node_output_name: ::String?,
|
|
1703
1706
|
content: {
|
|
1704
1707
|
document: {
|
|
1705
1708
|
}?
|
|
1706
1709
|
},
|
|
1707
|
-
node_input_name: ::String
|
|
1710
|
+
node_input_name: ::String?,
|
|
1711
|
+
node_name: ::String,
|
|
1712
|
+
node_output_name: ::String?
|
|
1708
1713
|
},
|
|
1709
1714
|
],
|
|
1710
1715
|
?model_performance_configuration: {
|
|
@@ -1722,9 +1727,9 @@ module Aws
|
|
|
1722
1727
|
end
|
|
1723
1728
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#stop_flow_execution-instance_method
|
|
1724
1729
|
def stop_flow_execution: (
|
|
1725
|
-
|
|
1730
|
+
execution_identifier: ::String,
|
|
1726
1731
|
flow_alias_identifier: ::String,
|
|
1727
|
-
|
|
1732
|
+
flow_identifier: ::String
|
|
1728
1733
|
) -> _StopFlowExecutionResponseSuccess
|
|
1729
1734
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopFlowExecutionResponseSuccess
|
|
1730
1735
|
|
|
@@ -1750,16 +1755,16 @@ module Aws
|
|
|
1750
1755
|
|
|
1751
1756
|
interface _UpdateSessionResponseSuccess
|
|
1752
1757
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSessionResponse]
|
|
1753
|
-
def session_id: () -> ::String
|
|
1754
|
-
def session_arn: () -> ::String
|
|
1755
|
-
def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
|
|
1756
1758
|
def created_at: () -> ::Time
|
|
1757
1759
|
def last_updated_at: () -> ::Time
|
|
1760
|
+
def session_arn: () -> ::String
|
|
1761
|
+
def session_id: () -> ::String
|
|
1762
|
+
def session_status: () -> ("ACTIVE" | "EXPIRED" | "ENDED")
|
|
1758
1763
|
end
|
|
1759
1764
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#update_session-instance_method
|
|
1760
1765
|
def update_session: (
|
|
1761
|
-
|
|
1762
|
-
|
|
1766
|
+
session_identifier: ::String,
|
|
1767
|
+
?session_metadata: Hash[::String, ::String]
|
|
1763
1768
|
) -> _UpdateSessionResponseSuccess
|
|
1764
1769
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSessionResponseSuccess
|
|
1765
1770
|
end
|