@aws-sdk/client-bedrock-agent-runtime 3.686.0 → 3.688.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.
- package/dist-cjs/index.js +195 -0
- package/dist-es/models/models_0.js +75 -0
- package/dist-es/protocols/Aws_restJson1.js +100 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +6 -6
- package/dist-types/commands/InvokeFlowCommand.d.ts +38 -0
- package/dist-types/models/models_0.d.ts +314 -56
- package/dist-types/ts3.4/models/models_0.d.ts +159 -1
- package/package.json +6 -6
|
@@ -187,14 +187,6 @@ export declare class InternalServerException extends __BaseException {
|
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* <p>Contains information about an input into the flow.</p>
|
|
190
|
-
* <p>This data type is used in the following API operations:</p>
|
|
191
|
-
* <ul>
|
|
192
|
-
* <li>
|
|
193
|
-
* <p>
|
|
194
|
-
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax">InvokeFlow request</a>
|
|
195
|
-
* </p>
|
|
196
|
-
* </li>
|
|
197
|
-
* </ul>
|
|
198
190
|
* @public
|
|
199
191
|
*/
|
|
200
192
|
export type FlowInputContent = FlowInputContent.DocumentMember | FlowInputContent.$UnknownMember;
|
|
@@ -225,14 +217,6 @@ export declare namespace FlowInputContent {
|
|
|
225
217
|
}
|
|
226
218
|
/**
|
|
227
219
|
* <p>Contains information about an input into the prompt flow and where to send it.</p>
|
|
228
|
-
* <p>This data type is used in the following API operations:</p>
|
|
229
|
-
* <ul>
|
|
230
|
-
* <li>
|
|
231
|
-
* <p>
|
|
232
|
-
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax">InvokeFlow request</a>
|
|
233
|
-
* </p>
|
|
234
|
-
* </li>
|
|
235
|
-
* </ul>
|
|
236
220
|
* @public
|
|
237
221
|
*/
|
|
238
222
|
export interface FlowInput {
|
|
@@ -271,6 +255,11 @@ export interface InvokeFlowRequest {
|
|
|
271
255
|
* @public
|
|
272
256
|
*/
|
|
273
257
|
inputs: FlowInput[] | undefined;
|
|
258
|
+
/**
|
|
259
|
+
* <p>Specifies whether to return the trace for the flow or not. Traces track inputs and outputs for nodes in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
enableTrace?: boolean;
|
|
274
263
|
}
|
|
275
264
|
/**
|
|
276
265
|
* @public
|
|
@@ -285,14 +274,6 @@ export declare const FlowCompletionReason: {
|
|
|
285
274
|
export type FlowCompletionReason = (typeof FlowCompletionReason)[keyof typeof FlowCompletionReason];
|
|
286
275
|
/**
|
|
287
276
|
* <p>Contains information about why a flow completed.</p>
|
|
288
|
-
* <p>This data type is used in the following API operations:</p>
|
|
289
|
-
* <ul>
|
|
290
|
-
* <li>
|
|
291
|
-
* <p>
|
|
292
|
-
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax">InvokeFlow response</a>
|
|
293
|
-
* </p>
|
|
294
|
-
* </li>
|
|
295
|
-
* </ul>
|
|
296
277
|
* @public
|
|
297
278
|
*/
|
|
298
279
|
export interface FlowCompletionEvent {
|
|
@@ -304,14 +285,6 @@ export interface FlowCompletionEvent {
|
|
|
304
285
|
}
|
|
305
286
|
/**
|
|
306
287
|
* <p>Contains information about the content in an output from prompt flow invocation.</p>
|
|
307
|
-
* <p>This data type is used in the following API operations:</p>
|
|
308
|
-
* <ul>
|
|
309
|
-
* <li>
|
|
310
|
-
* <p>
|
|
311
|
-
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax">InvokeFlow request</a>
|
|
312
|
-
* </p>
|
|
313
|
-
* </li>
|
|
314
|
-
* </ul>
|
|
315
288
|
* @public
|
|
316
289
|
*/
|
|
317
290
|
export type FlowOutputContent = FlowOutputContent.DocumentMember | FlowOutputContent.$UnknownMember;
|
|
@@ -359,14 +332,6 @@ export declare const NodeType: {
|
|
|
359
332
|
export type NodeType = (typeof NodeType)[keyof typeof NodeType];
|
|
360
333
|
/**
|
|
361
334
|
* <p>Contains information about an output from prompt flow invoction.</p>
|
|
362
|
-
* <p>This data type is used in the following API operations:</p>
|
|
363
|
-
* <ul>
|
|
364
|
-
* <li>
|
|
365
|
-
* <p>
|
|
366
|
-
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax">InvokeFlow response</a>
|
|
367
|
-
* </p>
|
|
368
|
-
* </li>
|
|
369
|
-
* </ul>
|
|
370
335
|
* @public
|
|
371
336
|
*/
|
|
372
337
|
export interface FlowOutputEvent {
|
|
@@ -386,6 +351,239 @@ export interface FlowOutputEvent {
|
|
|
386
351
|
*/
|
|
387
352
|
content: FlowOutputContent | undefined;
|
|
388
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* <p>Contains information about a condition that was satisfied. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
356
|
+
* @public
|
|
357
|
+
*/
|
|
358
|
+
export interface FlowTraceCondition {
|
|
359
|
+
/**
|
|
360
|
+
* <p>The name of the condition.</p>
|
|
361
|
+
* @public
|
|
362
|
+
*/
|
|
363
|
+
conditionName: string | undefined;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* <p>Contains information about an output from a condition node. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
367
|
+
* @public
|
|
368
|
+
*/
|
|
369
|
+
export interface FlowTraceConditionNodeResultEvent {
|
|
370
|
+
/**
|
|
371
|
+
* <p>The name of the condition node.</p>
|
|
372
|
+
* @public
|
|
373
|
+
*/
|
|
374
|
+
nodeName: string | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* <p>The date and time that the trace was returned.</p>
|
|
377
|
+
* @public
|
|
378
|
+
*/
|
|
379
|
+
timestamp: Date | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* <p>An array of objects containing information about the conditions that were satisfied.</p>
|
|
382
|
+
* @public
|
|
383
|
+
*/
|
|
384
|
+
satisfiedConditions: FlowTraceCondition[] | undefined;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* <p>Contains the content of the node input. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
388
|
+
* @public
|
|
389
|
+
*/
|
|
390
|
+
export type FlowTraceNodeInputContent = FlowTraceNodeInputContent.DocumentMember | FlowTraceNodeInputContent.$UnknownMember;
|
|
391
|
+
/**
|
|
392
|
+
* @public
|
|
393
|
+
*/
|
|
394
|
+
export declare namespace FlowTraceNodeInputContent {
|
|
395
|
+
/**
|
|
396
|
+
* <p>The content of the node input.</p>
|
|
397
|
+
* @public
|
|
398
|
+
*/
|
|
399
|
+
interface DocumentMember {
|
|
400
|
+
document: __DocumentType;
|
|
401
|
+
$unknown?: never;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @public
|
|
405
|
+
*/
|
|
406
|
+
interface $UnknownMember {
|
|
407
|
+
document?: never;
|
|
408
|
+
$unknown: [string, any];
|
|
409
|
+
}
|
|
410
|
+
interface Visitor<T> {
|
|
411
|
+
document: (value: __DocumentType) => T;
|
|
412
|
+
_: (name: string, value: any) => T;
|
|
413
|
+
}
|
|
414
|
+
const visit: <T>(value: FlowTraceNodeInputContent, visitor: Visitor<T>) => T;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* <p>Contains information about a field in the input into a node. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
418
|
+
* @public
|
|
419
|
+
*/
|
|
420
|
+
export interface FlowTraceNodeInputField {
|
|
421
|
+
/**
|
|
422
|
+
* <p>The name of the node input.</p>
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
nodeInputName: string | undefined;
|
|
426
|
+
/**
|
|
427
|
+
* <p>The content of the node input.</p>
|
|
428
|
+
* @public
|
|
429
|
+
*/
|
|
430
|
+
content: FlowTraceNodeInputContent | undefined;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* <p>Contains information about the input into a node. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
434
|
+
* @public
|
|
435
|
+
*/
|
|
436
|
+
export interface FlowTraceNodeInputEvent {
|
|
437
|
+
/**
|
|
438
|
+
* <p>The name of the node that received the input.</p>
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
nodeName: string | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* <p>The date and time that the trace was returned.</p>
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
446
|
+
timestamp: Date | undefined;
|
|
447
|
+
/**
|
|
448
|
+
* <p>An array of objects containing information about each field in the input.</p>
|
|
449
|
+
* @public
|
|
450
|
+
*/
|
|
451
|
+
fields: FlowTraceNodeInputField[] | undefined;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* <p>Contains the content of the node output. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
455
|
+
* @public
|
|
456
|
+
*/
|
|
457
|
+
export type FlowTraceNodeOutputContent = FlowTraceNodeOutputContent.DocumentMember | FlowTraceNodeOutputContent.$UnknownMember;
|
|
458
|
+
/**
|
|
459
|
+
* @public
|
|
460
|
+
*/
|
|
461
|
+
export declare namespace FlowTraceNodeOutputContent {
|
|
462
|
+
/**
|
|
463
|
+
* <p>The content of the node output.</p>
|
|
464
|
+
* @public
|
|
465
|
+
*/
|
|
466
|
+
interface DocumentMember {
|
|
467
|
+
document: __DocumentType;
|
|
468
|
+
$unknown?: never;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
interface $UnknownMember {
|
|
474
|
+
document?: never;
|
|
475
|
+
$unknown: [string, any];
|
|
476
|
+
}
|
|
477
|
+
interface Visitor<T> {
|
|
478
|
+
document: (value: __DocumentType) => T;
|
|
479
|
+
_: (name: string, value: any) => T;
|
|
480
|
+
}
|
|
481
|
+
const visit: <T>(value: FlowTraceNodeOutputContent, visitor: Visitor<T>) => T;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* <p>Contains information about a field in the output from a node. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
485
|
+
* @public
|
|
486
|
+
*/
|
|
487
|
+
export interface FlowTraceNodeOutputField {
|
|
488
|
+
/**
|
|
489
|
+
* <p>The name of the node output.</p>
|
|
490
|
+
* @public
|
|
491
|
+
*/
|
|
492
|
+
nodeOutputName: string | undefined;
|
|
493
|
+
/**
|
|
494
|
+
* <p>The content of the node output.</p>
|
|
495
|
+
* @public
|
|
496
|
+
*/
|
|
497
|
+
content: FlowTraceNodeOutputContent | undefined;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* <p>Contains information about the output from a node. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
501
|
+
* @public
|
|
502
|
+
*/
|
|
503
|
+
export interface FlowTraceNodeOutputEvent {
|
|
504
|
+
/**
|
|
505
|
+
* <p>The name of the node that yielded the output.</p>
|
|
506
|
+
* @public
|
|
507
|
+
*/
|
|
508
|
+
nodeName: string | undefined;
|
|
509
|
+
/**
|
|
510
|
+
* <p>The date and time that the trace was returned.</p>
|
|
511
|
+
* @public
|
|
512
|
+
*/
|
|
513
|
+
timestamp: Date | undefined;
|
|
514
|
+
/**
|
|
515
|
+
* <p>An array of objects containing information about each field in the output.</p>
|
|
516
|
+
* @public
|
|
517
|
+
*/
|
|
518
|
+
fields: FlowTraceNodeOutputField[] | undefined;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* <p>Contains information about an input or output for a node in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
522
|
+
* @public
|
|
523
|
+
*/
|
|
524
|
+
export type FlowTrace = FlowTrace.ConditionNodeResultTraceMember | FlowTrace.NodeInputTraceMember | FlowTrace.NodeOutputTraceMember | FlowTrace.$UnknownMember;
|
|
525
|
+
/**
|
|
526
|
+
* @public
|
|
527
|
+
*/
|
|
528
|
+
export declare namespace FlowTrace {
|
|
529
|
+
/**
|
|
530
|
+
* <p>Contains information about the input into a node.</p>
|
|
531
|
+
* @public
|
|
532
|
+
*/
|
|
533
|
+
interface NodeInputTraceMember {
|
|
534
|
+
nodeInputTrace: FlowTraceNodeInputEvent;
|
|
535
|
+
nodeOutputTrace?: never;
|
|
536
|
+
conditionNodeResultTrace?: never;
|
|
537
|
+
$unknown?: never;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* <p>Contains information about the output from a node.</p>
|
|
541
|
+
* @public
|
|
542
|
+
*/
|
|
543
|
+
interface NodeOutputTraceMember {
|
|
544
|
+
nodeInputTrace?: never;
|
|
545
|
+
nodeOutputTrace: FlowTraceNodeOutputEvent;
|
|
546
|
+
conditionNodeResultTrace?: never;
|
|
547
|
+
$unknown?: never;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* <p>Contains information about an output from a condition node.</p>
|
|
551
|
+
* @public
|
|
552
|
+
*/
|
|
553
|
+
interface ConditionNodeResultTraceMember {
|
|
554
|
+
nodeInputTrace?: never;
|
|
555
|
+
nodeOutputTrace?: never;
|
|
556
|
+
conditionNodeResultTrace: FlowTraceConditionNodeResultEvent;
|
|
557
|
+
$unknown?: never;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* @public
|
|
561
|
+
*/
|
|
562
|
+
interface $UnknownMember {
|
|
563
|
+
nodeInputTrace?: never;
|
|
564
|
+
nodeOutputTrace?: never;
|
|
565
|
+
conditionNodeResultTrace?: never;
|
|
566
|
+
$unknown: [string, any];
|
|
567
|
+
}
|
|
568
|
+
interface Visitor<T> {
|
|
569
|
+
nodeInputTrace: (value: FlowTraceNodeInputEvent) => T;
|
|
570
|
+
nodeOutputTrace: (value: FlowTraceNodeOutputEvent) => T;
|
|
571
|
+
conditionNodeResultTrace: (value: FlowTraceConditionNodeResultEvent) => T;
|
|
572
|
+
_: (name: string, value: any) => T;
|
|
573
|
+
}
|
|
574
|
+
const visit: <T>(value: FlowTrace, visitor: Visitor<T>) => T;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* <p>Contains information about a trace, which tracks an input or output for a node in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
|
|
578
|
+
* @public
|
|
579
|
+
*/
|
|
580
|
+
export interface FlowTraceEvent {
|
|
581
|
+
/**
|
|
582
|
+
* <p>The trace object containing information about an input or output for a node in the flow.</p>
|
|
583
|
+
* @public
|
|
584
|
+
*/
|
|
585
|
+
trace: FlowTrace | undefined;
|
|
586
|
+
}
|
|
389
587
|
/**
|
|
390
588
|
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
391
589
|
* @public
|
|
@@ -436,17 +634,9 @@ export declare class ValidationException extends __BaseException {
|
|
|
436
634
|
}
|
|
437
635
|
/**
|
|
438
636
|
* <p>The output of the flow.</p>
|
|
439
|
-
* <p>This data type is used in the following API operations:</p>
|
|
440
|
-
* <ul>
|
|
441
|
-
* <li>
|
|
442
|
-
* <p>
|
|
443
|
-
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax">InvokeFlow response</a>
|
|
444
|
-
* </p>
|
|
445
|
-
* </li>
|
|
446
|
-
* </ul>
|
|
447
637
|
* @public
|
|
448
638
|
*/
|
|
449
|
-
export type FlowResponseStream = FlowResponseStream.AccessDeniedExceptionMember | FlowResponseStream.BadGatewayExceptionMember | FlowResponseStream.ConflictExceptionMember | FlowResponseStream.DependencyFailedExceptionMember | FlowResponseStream.FlowCompletionEventMember | FlowResponseStream.FlowOutputEventMember | FlowResponseStream.InternalServerExceptionMember | FlowResponseStream.ResourceNotFoundExceptionMember | FlowResponseStream.ServiceQuotaExceededExceptionMember | FlowResponseStream.ThrottlingExceptionMember | FlowResponseStream.ValidationExceptionMember | FlowResponseStream.$UnknownMember;
|
|
639
|
+
export type FlowResponseStream = FlowResponseStream.AccessDeniedExceptionMember | FlowResponseStream.BadGatewayExceptionMember | FlowResponseStream.ConflictExceptionMember | FlowResponseStream.DependencyFailedExceptionMember | FlowResponseStream.FlowCompletionEventMember | FlowResponseStream.FlowOutputEventMember | FlowResponseStream.FlowTraceEventMember | FlowResponseStream.InternalServerExceptionMember | FlowResponseStream.ResourceNotFoundExceptionMember | FlowResponseStream.ServiceQuotaExceededExceptionMember | FlowResponseStream.ThrottlingExceptionMember | FlowResponseStream.ValidationExceptionMember | FlowResponseStream.$UnknownMember;
|
|
450
640
|
/**
|
|
451
641
|
* @public
|
|
452
642
|
*/
|
|
@@ -458,6 +648,7 @@ export declare namespace FlowResponseStream {
|
|
|
458
648
|
interface FlowOutputEventMember {
|
|
459
649
|
flowOutputEvent: FlowOutputEvent;
|
|
460
650
|
flowCompletionEvent?: never;
|
|
651
|
+
flowTraceEvent?: never;
|
|
461
652
|
internalServerException?: never;
|
|
462
653
|
validationException?: never;
|
|
463
654
|
resourceNotFoundException?: never;
|
|
@@ -476,6 +667,26 @@ export declare namespace FlowResponseStream {
|
|
|
476
667
|
interface FlowCompletionEventMember {
|
|
477
668
|
flowOutputEvent?: never;
|
|
478
669
|
flowCompletionEvent: FlowCompletionEvent;
|
|
670
|
+
flowTraceEvent?: never;
|
|
671
|
+
internalServerException?: never;
|
|
672
|
+
validationException?: never;
|
|
673
|
+
resourceNotFoundException?: never;
|
|
674
|
+
serviceQuotaExceededException?: never;
|
|
675
|
+
throttlingException?: never;
|
|
676
|
+
accessDeniedException?: never;
|
|
677
|
+
conflictException?: never;
|
|
678
|
+
dependencyFailedException?: never;
|
|
679
|
+
badGatewayException?: never;
|
|
680
|
+
$unknown?: never;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* <p>Contains information about a trace, which tracks an input or output for a node in the flow.</p>
|
|
684
|
+
* @public
|
|
685
|
+
*/
|
|
686
|
+
interface FlowTraceEventMember {
|
|
687
|
+
flowOutputEvent?: never;
|
|
688
|
+
flowCompletionEvent?: never;
|
|
689
|
+
flowTraceEvent: FlowTraceEvent;
|
|
479
690
|
internalServerException?: never;
|
|
480
691
|
validationException?: never;
|
|
481
692
|
resourceNotFoundException?: never;
|
|
@@ -494,6 +705,7 @@ export declare namespace FlowResponseStream {
|
|
|
494
705
|
interface InternalServerExceptionMember {
|
|
495
706
|
flowOutputEvent?: never;
|
|
496
707
|
flowCompletionEvent?: never;
|
|
708
|
+
flowTraceEvent?: never;
|
|
497
709
|
internalServerException: InternalServerException;
|
|
498
710
|
validationException?: never;
|
|
499
711
|
resourceNotFoundException?: never;
|
|
@@ -512,6 +724,7 @@ export declare namespace FlowResponseStream {
|
|
|
512
724
|
interface ValidationExceptionMember {
|
|
513
725
|
flowOutputEvent?: never;
|
|
514
726
|
flowCompletionEvent?: never;
|
|
727
|
+
flowTraceEvent?: never;
|
|
515
728
|
internalServerException?: never;
|
|
516
729
|
validationException: ValidationException;
|
|
517
730
|
resourceNotFoundException?: never;
|
|
@@ -530,6 +743,7 @@ export declare namespace FlowResponseStream {
|
|
|
530
743
|
interface ResourceNotFoundExceptionMember {
|
|
531
744
|
flowOutputEvent?: never;
|
|
532
745
|
flowCompletionEvent?: never;
|
|
746
|
+
flowTraceEvent?: never;
|
|
533
747
|
internalServerException?: never;
|
|
534
748
|
validationException?: never;
|
|
535
749
|
resourceNotFoundException: ResourceNotFoundException;
|
|
@@ -548,6 +762,7 @@ export declare namespace FlowResponseStream {
|
|
|
548
762
|
interface ServiceQuotaExceededExceptionMember {
|
|
549
763
|
flowOutputEvent?: never;
|
|
550
764
|
flowCompletionEvent?: never;
|
|
765
|
+
flowTraceEvent?: never;
|
|
551
766
|
internalServerException?: never;
|
|
552
767
|
validationException?: never;
|
|
553
768
|
resourceNotFoundException?: never;
|
|
@@ -566,6 +781,7 @@ export declare namespace FlowResponseStream {
|
|
|
566
781
|
interface ThrottlingExceptionMember {
|
|
567
782
|
flowOutputEvent?: never;
|
|
568
783
|
flowCompletionEvent?: never;
|
|
784
|
+
flowTraceEvent?: never;
|
|
569
785
|
internalServerException?: never;
|
|
570
786
|
validationException?: never;
|
|
571
787
|
resourceNotFoundException?: never;
|
|
@@ -584,6 +800,7 @@ export declare namespace FlowResponseStream {
|
|
|
584
800
|
interface AccessDeniedExceptionMember {
|
|
585
801
|
flowOutputEvent?: never;
|
|
586
802
|
flowCompletionEvent?: never;
|
|
803
|
+
flowTraceEvent?: never;
|
|
587
804
|
internalServerException?: never;
|
|
588
805
|
validationException?: never;
|
|
589
806
|
resourceNotFoundException?: never;
|
|
@@ -602,6 +819,7 @@ export declare namespace FlowResponseStream {
|
|
|
602
819
|
interface ConflictExceptionMember {
|
|
603
820
|
flowOutputEvent?: never;
|
|
604
821
|
flowCompletionEvent?: never;
|
|
822
|
+
flowTraceEvent?: never;
|
|
605
823
|
internalServerException?: never;
|
|
606
824
|
validationException?: never;
|
|
607
825
|
resourceNotFoundException?: never;
|
|
@@ -620,6 +838,7 @@ export declare namespace FlowResponseStream {
|
|
|
620
838
|
interface DependencyFailedExceptionMember {
|
|
621
839
|
flowOutputEvent?: never;
|
|
622
840
|
flowCompletionEvent?: never;
|
|
841
|
+
flowTraceEvent?: never;
|
|
623
842
|
internalServerException?: never;
|
|
624
843
|
validationException?: never;
|
|
625
844
|
resourceNotFoundException?: never;
|
|
@@ -638,6 +857,7 @@ export declare namespace FlowResponseStream {
|
|
|
638
857
|
interface BadGatewayExceptionMember {
|
|
639
858
|
flowOutputEvent?: never;
|
|
640
859
|
flowCompletionEvent?: never;
|
|
860
|
+
flowTraceEvent?: never;
|
|
641
861
|
internalServerException?: never;
|
|
642
862
|
validationException?: never;
|
|
643
863
|
resourceNotFoundException?: never;
|
|
@@ -655,6 +875,7 @@ export declare namespace FlowResponseStream {
|
|
|
655
875
|
interface $UnknownMember {
|
|
656
876
|
flowOutputEvent?: never;
|
|
657
877
|
flowCompletionEvent?: never;
|
|
878
|
+
flowTraceEvent?: never;
|
|
658
879
|
internalServerException?: never;
|
|
659
880
|
validationException?: never;
|
|
660
881
|
resourceNotFoundException?: never;
|
|
@@ -669,6 +890,7 @@ export declare namespace FlowResponseStream {
|
|
|
669
890
|
interface Visitor<T> {
|
|
670
891
|
flowOutputEvent: (value: FlowOutputEvent) => T;
|
|
671
892
|
flowCompletionEvent: (value: FlowCompletionEvent) => T;
|
|
893
|
+
flowTraceEvent: (value: FlowTraceEvent) => T;
|
|
672
894
|
internalServerException: (value: InternalServerException) => T;
|
|
673
895
|
validationException: (value: ValidationException) => T;
|
|
674
896
|
resourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
@@ -2154,11 +2376,6 @@ export interface ModelInvocationInput {
|
|
|
2154
2376
|
* @public
|
|
2155
2377
|
*/
|
|
2156
2378
|
type?: PromptType;
|
|
2157
|
-
/**
|
|
2158
|
-
* <p>Specifications about the inference parameters that were provided alongside the prompt. These are specified in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html">PromptOverrideConfiguration</a> object that was set when the agent was created or updated. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
2159
|
-
* @public
|
|
2160
|
-
*/
|
|
2161
|
-
inferenceConfiguration?: InferenceConfiguration;
|
|
2162
2379
|
/**
|
|
2163
2380
|
* <p>The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.</p>
|
|
2164
2381
|
* @public
|
|
@@ -2169,6 +2386,11 @@ export interface ModelInvocationInput {
|
|
|
2169
2386
|
* @public
|
|
2170
2387
|
*/
|
|
2171
2388
|
promptCreationMode?: CreationMode;
|
|
2389
|
+
/**
|
|
2390
|
+
* <p>Specifications about the inference parameters that were provided alongside the prompt. These are specified in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html">PromptOverrideConfiguration</a> object that was set when the agent was created or updated. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
2391
|
+
* @public
|
|
2392
|
+
*/
|
|
2393
|
+
inferenceConfiguration?: InferenceConfiguration;
|
|
2172
2394
|
/**
|
|
2173
2395
|
* <p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>.</p>
|
|
2174
2396
|
* @public
|
|
@@ -3543,7 +3765,7 @@ export interface ExternalSourcesRetrieveAndGenerateConfiguration {
|
|
|
3543
3765
|
*/
|
|
3544
3766
|
export interface GenerationConfiguration {
|
|
3545
3767
|
/**
|
|
3546
|
-
* <p>Contains the template for the prompt that's sent to the model for response generation.</p>
|
|
3768
|
+
* <p>Contains the template for the prompt that's sent to the model for response generation. Generation prompts must include the <code>$search_results$</code> variable. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html">Use placeholder variables</a> in the user guide.</p>
|
|
3547
3769
|
* @public
|
|
3548
3770
|
*/
|
|
3549
3771
|
promptTemplate?: PromptTemplate;
|
|
@@ -3592,7 +3814,7 @@ export interface QueryTransformationConfiguration {
|
|
|
3592
3814
|
*/
|
|
3593
3815
|
export interface OrchestrationConfiguration {
|
|
3594
3816
|
/**
|
|
3595
|
-
* <p>Contains the template for the prompt that's sent to the model
|
|
3817
|
+
* <p>Contains the template for the prompt that's sent to the model. Orchestration prompts must include the <code>$conversation_history$</code> and <code>$output_format_instructions$</code> variables. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html">Use placeholder variables</a> in the user guide.</p>
|
|
3596
3818
|
* @public
|
|
3597
3819
|
*/
|
|
3598
3820
|
promptTemplate?: PromptTemplate;
|
|
@@ -4444,6 +4666,42 @@ export declare const FlowCompletionEventFilterSensitiveLog: (obj: FlowCompletion
|
|
|
4444
4666
|
* @internal
|
|
4445
4667
|
*/
|
|
4446
4668
|
export declare const FlowOutputEventFilterSensitiveLog: (obj: FlowOutputEvent) => any;
|
|
4669
|
+
/**
|
|
4670
|
+
* @internal
|
|
4671
|
+
*/
|
|
4672
|
+
export declare const FlowTraceConditionFilterSensitiveLog: (obj: FlowTraceCondition) => any;
|
|
4673
|
+
/**
|
|
4674
|
+
* @internal
|
|
4675
|
+
*/
|
|
4676
|
+
export declare const FlowTraceConditionNodeResultEventFilterSensitiveLog: (obj: FlowTraceConditionNodeResultEvent) => any;
|
|
4677
|
+
/**
|
|
4678
|
+
* @internal
|
|
4679
|
+
*/
|
|
4680
|
+
export declare const FlowTraceNodeInputContentFilterSensitiveLog: (obj: FlowTraceNodeInputContent) => any;
|
|
4681
|
+
/**
|
|
4682
|
+
* @internal
|
|
4683
|
+
*/
|
|
4684
|
+
export declare const FlowTraceNodeInputFieldFilterSensitiveLog: (obj: FlowTraceNodeInputField) => any;
|
|
4685
|
+
/**
|
|
4686
|
+
* @internal
|
|
4687
|
+
*/
|
|
4688
|
+
export declare const FlowTraceNodeInputEventFilterSensitiveLog: (obj: FlowTraceNodeInputEvent) => any;
|
|
4689
|
+
/**
|
|
4690
|
+
* @internal
|
|
4691
|
+
*/
|
|
4692
|
+
export declare const FlowTraceNodeOutputFieldFilterSensitiveLog: (obj: FlowTraceNodeOutputField) => any;
|
|
4693
|
+
/**
|
|
4694
|
+
* @internal
|
|
4695
|
+
*/
|
|
4696
|
+
export declare const FlowTraceNodeOutputEventFilterSensitiveLog: (obj: FlowTraceNodeOutputEvent) => any;
|
|
4697
|
+
/**
|
|
4698
|
+
* @internal
|
|
4699
|
+
*/
|
|
4700
|
+
export declare const FlowTraceFilterSensitiveLog: (obj: FlowTrace) => any;
|
|
4701
|
+
/**
|
|
4702
|
+
* @internal
|
|
4703
|
+
*/
|
|
4704
|
+
export declare const FlowTraceEventFilterSensitiveLog: (obj: FlowTraceEvent) => any;
|
|
4447
4705
|
/**
|
|
4448
4706
|
* @internal
|
|
4449
4707
|
*/
|