@aws-sdk/client-bedrock-agent-runtime 3.895.0 → 3.898.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.
@@ -370,1826 +370,2004 @@ export interface AgentCollaboratorInvocationOutput {
370
370
  output?: AgentCollaboratorOutputPayload | undefined;
371
371
  metadata?: Metadata | undefined;
372
372
  }
373
- export interface GetExecutionFlowSnapshotRequest {
374
- flowIdentifier: string | undefined;
375
- flowAliasIdentifier: string | undefined;
376
- executionIdentifier: string | undefined;
373
+ export type Caller = Caller.AgentAliasArnMember | Caller.$UnknownMember;
374
+ export declare namespace Caller {
375
+ interface AgentAliasArnMember {
376
+ agentAliasArn: string;
377
+ $unknown?: never;
378
+ }
379
+ interface $UnknownMember {
380
+ agentAliasArn?: never;
381
+ $unknown: [string, any];
382
+ }
383
+ interface Visitor<T> {
384
+ agentAliasArn: (value: string) => T;
385
+ _: (name: string, value: any) => T;
386
+ }
387
+ const visit: <T>(value: Caller, visitor: Visitor<T>) => T;
377
388
  }
378
- export interface GetExecutionFlowSnapshotResponse {
379
- flowIdentifier: string | undefined;
380
- flowAliasIdentifier: string | undefined;
381
- flowVersion: string | undefined;
382
- executionRoleArn: string | undefined;
383
- definition: string | undefined;
384
- customerEncryptionKeyArn?: string | undefined;
389
+ export interface CustomOrchestrationTraceEvent {
390
+ text?: string | undefined;
385
391
  }
386
- export declare class InternalServerException extends __BaseException {
387
- readonly name: "InternalServerException";
388
- readonly $fault: "server";
389
- reason?: string | undefined;
390
- constructor(
391
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
392
- );
392
+ export interface CustomOrchestrationTrace {
393
+ traceId?: string | undefined;
394
+ event?: CustomOrchestrationTraceEvent | undefined;
393
395
  }
394
- export declare class ResourceNotFoundException extends __BaseException {
395
- readonly name: "ResourceNotFoundException";
396
- readonly $fault: "client";
397
- constructor(
398
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
399
- );
396
+ export interface FailureTrace {
397
+ traceId?: string | undefined;
398
+ failureReason?: string | undefined;
399
+ failureCode?: number | undefined;
400
+ metadata?: Metadata | undefined;
400
401
  }
401
- export declare class ThrottlingException extends __BaseException {
402
- readonly name: "ThrottlingException";
403
- readonly $fault: "client";
404
- constructor(
405
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
406
- );
402
+ export declare const GuardrailAction: {
403
+ readonly INTERVENED: "INTERVENED";
404
+ readonly NONE: "NONE";
405
+ };
406
+ export type GuardrailAction =
407
+ (typeof GuardrailAction)[keyof typeof GuardrailAction];
408
+ export declare const GuardrailContentPolicyAction: {
409
+ readonly BLOCKED: "BLOCKED";
410
+ };
411
+ export type GuardrailContentPolicyAction =
412
+ (typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
413
+ export declare const GuardrailContentFilterConfidence: {
414
+ readonly HIGH: "HIGH";
415
+ readonly LOW: "LOW";
416
+ readonly MEDIUM: "MEDIUM";
417
+ readonly NONE: "NONE";
418
+ };
419
+ export type GuardrailContentFilterConfidence =
420
+ (typeof GuardrailContentFilterConfidence)[keyof typeof GuardrailContentFilterConfidence];
421
+ export declare const GuardrailContentFilterType: {
422
+ readonly HATE: "HATE";
423
+ readonly INSULTS: "INSULTS";
424
+ readonly MISCONDUCT: "MISCONDUCT";
425
+ readonly PROMPT_ATTACK: "PROMPT_ATTACK";
426
+ readonly SEXUAL: "SEXUAL";
427
+ readonly VIOLENCE: "VIOLENCE";
428
+ };
429
+ export type GuardrailContentFilterType =
430
+ (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
431
+ export interface GuardrailContentFilter {
432
+ type?: GuardrailContentFilterType | undefined;
433
+ confidence?: GuardrailContentFilterConfidence | undefined;
434
+ action?: GuardrailContentPolicyAction | undefined;
407
435
  }
408
- export declare class ValidationException extends __BaseException {
409
- readonly name: "ValidationException";
410
- readonly $fault: "client";
411
- constructor(
412
- opts: __ExceptionOptionType<ValidationException, __BaseException>
413
- );
436
+ export interface GuardrailContentPolicyAssessment {
437
+ filters?: GuardrailContentFilter[] | undefined;
414
438
  }
415
- export interface GetFlowExecutionRequest {
416
- flowIdentifier: string | undefined;
417
- flowAliasIdentifier: string | undefined;
418
- executionIdentifier: string | undefined;
439
+ export declare const GuardrailSensitiveInformationPolicyAction: {
440
+ readonly ANONYMIZED: "ANONYMIZED";
441
+ readonly BLOCKED: "BLOCKED";
442
+ };
443
+ export type GuardrailSensitiveInformationPolicyAction =
444
+ (typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
445
+ export declare const GuardrailPiiEntityType: {
446
+ readonly ADDRESS: "ADDRESS";
447
+ readonly AGE: "AGE";
448
+ readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
449
+ readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
450
+ readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
451
+ readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
452
+ readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
453
+ readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
454
+ readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
455
+ readonly DRIVER_ID: "DRIVER_ID";
456
+ readonly EMAIL: "EMAIL";
457
+ readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
458
+ readonly IP_ADDRESS: "IP_ADDRESS";
459
+ readonly LICENSE_PLATE: "LICENSE_PLATE";
460
+ readonly MAC_ADDRESS: "MAC_ADDRESS";
461
+ readonly NAME: "NAME";
462
+ readonly PASSWORD: "PASSWORD";
463
+ readonly PHONE: "PHONE";
464
+ readonly PIN: "PIN";
465
+ readonly SWIFT_CODE: "SWIFT_CODE";
466
+ readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
467
+ readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
468
+ readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
469
+ readonly URL: "URL";
470
+ readonly USERNAME: "USERNAME";
471
+ readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
472
+ readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
473
+ readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
474
+ readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
475
+ readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
476
+ readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
477
+ };
478
+ export type GuardrailPiiEntityType =
479
+ (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
480
+ export interface GuardrailPiiEntityFilter {
481
+ type?: GuardrailPiiEntityType | undefined;
482
+ match?: string | undefined;
483
+ action?: GuardrailSensitiveInformationPolicyAction | undefined;
419
484
  }
420
- export declare const FlowExecutionErrorType: {
421
- readonly TIMED_OUT: "ExecutionTimedOut";
485
+ export interface GuardrailRegexFilter {
486
+ name?: string | undefined;
487
+ regex?: string | undefined;
488
+ match?: string | undefined;
489
+ action?: GuardrailSensitiveInformationPolicyAction | undefined;
490
+ }
491
+ export interface GuardrailSensitiveInformationPolicyAssessment {
492
+ piiEntities?: GuardrailPiiEntityFilter[] | undefined;
493
+ regexes?: GuardrailRegexFilter[] | undefined;
494
+ }
495
+ export declare const GuardrailTopicPolicyAction: {
496
+ readonly BLOCKED: "BLOCKED";
422
497
  };
423
- export type FlowExecutionErrorType =
424
- (typeof FlowExecutionErrorType)[keyof typeof FlowExecutionErrorType];
425
- export interface FlowExecutionError {
426
- nodeName?: string | undefined;
427
- error?: FlowExecutionErrorType | undefined;
428
- message?: string | undefined;
498
+ export type GuardrailTopicPolicyAction =
499
+ (typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
500
+ export declare const GuardrailTopicType: {
501
+ readonly DENY: "DENY";
502
+ };
503
+ export type GuardrailTopicType =
504
+ (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
505
+ export interface GuardrailTopic {
506
+ name?: string | undefined;
507
+ type?: GuardrailTopicType | undefined;
508
+ action?: GuardrailTopicPolicyAction | undefined;
429
509
  }
430
- export declare const FlowExecutionStatus: {
431
- readonly ABORTED: "Aborted";
432
- readonly FAILED: "Failed";
433
- readonly RUNNING: "Running";
434
- readonly SUCCEEDED: "Succeeded";
435
- readonly TIMED_OUT: "TimedOut";
510
+ export interface GuardrailTopicPolicyAssessment {
511
+ topics?: GuardrailTopic[] | undefined;
512
+ }
513
+ export declare const GuardrailWordPolicyAction: {
514
+ readonly BLOCKED: "BLOCKED";
436
515
  };
437
- export type FlowExecutionStatus =
438
- (typeof FlowExecutionStatus)[keyof typeof FlowExecutionStatus];
439
- export interface GetFlowExecutionResponse {
440
- executionArn: string | undefined;
441
- status: FlowExecutionStatus | undefined;
442
- startedAt: Date | undefined;
443
- endedAt?: Date | undefined;
444
- errors?: FlowExecutionError[] | undefined;
445
- flowAliasIdentifier: string | undefined;
446
- flowIdentifier: string | undefined;
447
- flowVersion: string | undefined;
516
+ export type GuardrailWordPolicyAction =
517
+ (typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
518
+ export interface GuardrailCustomWord {
519
+ match?: string | undefined;
520
+ action?: GuardrailWordPolicyAction | undefined;
448
521
  }
449
- export declare const FlowExecutionEventType: {
450
- readonly FLOW: "Flow";
451
- readonly NODE: "Node";
522
+ export declare const GuardrailManagedWordType: {
523
+ readonly PROFANITY: "PROFANITY";
452
524
  };
453
- export type FlowExecutionEventType =
454
- (typeof FlowExecutionEventType)[keyof typeof FlowExecutionEventType];
455
- export interface ListFlowExecutionEventsRequest {
456
- flowIdentifier: string | undefined;
457
- flowAliasIdentifier: string | undefined;
458
- executionIdentifier: string | undefined;
459
- maxResults?: number | undefined;
460
- nextToken?: string | undefined;
461
- eventType: FlowExecutionEventType | undefined;
525
+ export type GuardrailManagedWordType =
526
+ (typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
527
+ export interface GuardrailManagedWord {
528
+ match?: string | undefined;
529
+ type?: GuardrailManagedWordType | undefined;
530
+ action?: GuardrailWordPolicyAction | undefined;
462
531
  }
463
- export interface SatisfiedCondition {
464
- conditionName: string | undefined;
532
+ export interface GuardrailWordPolicyAssessment {
533
+ customWords?: GuardrailCustomWord[] | undefined;
534
+ managedWordLists?: GuardrailManagedWord[] | undefined;
465
535
  }
466
- export interface ConditionResultEvent {
467
- nodeName: string | undefined;
468
- timestamp: Date | undefined;
469
- satisfiedConditions: SatisfiedCondition[] | undefined;
536
+ export interface GuardrailAssessment {
537
+ topicPolicy?: GuardrailTopicPolicyAssessment | undefined;
538
+ contentPolicy?: GuardrailContentPolicyAssessment | undefined;
539
+ wordPolicy?: GuardrailWordPolicyAssessment | undefined;
540
+ sensitiveInformationPolicy?:
541
+ | GuardrailSensitiveInformationPolicyAssessment
542
+ | undefined;
470
543
  }
471
- export declare const FlowErrorCode: {
472
- readonly INTERNAL_SERVER: "INTERNAL_SERVER";
473
- readonly NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED";
474
- readonly VALIDATION: "VALIDATION";
475
- };
476
- export type FlowErrorCode = (typeof FlowErrorCode)[keyof typeof FlowErrorCode];
477
- export interface FlowFailureEvent {
478
- timestamp: Date | undefined;
479
- errorCode: FlowErrorCode | undefined;
480
- errorMessage: string | undefined;
544
+ export interface GuardrailTrace {
545
+ action?: GuardrailAction | undefined;
546
+ traceId?: string | undefined;
547
+ inputAssessments?: GuardrailAssessment[] | undefined;
548
+ outputAssessments?: GuardrailAssessment[] | undefined;
549
+ metadata?: Metadata | undefined;
481
550
  }
482
- export type FlowExecutionContent =
483
- | FlowExecutionContent.DocumentMember
484
- | FlowExecutionContent.$UnknownMember;
485
- export declare namespace FlowExecutionContent {
486
- interface DocumentMember {
487
- document: __DocumentType;
488
- $unknown?: never;
489
- }
490
- interface $UnknownMember {
491
- document?: never;
492
- $unknown: [string, any];
493
- }
494
- interface Visitor<T> {
495
- document: (value: __DocumentType) => T;
496
- _: (name: string, value: any) => T;
497
- }
498
- const visit: <T>(value: FlowExecutionContent, visitor: Visitor<T>) => T;
499
- }
500
- export interface FlowInputField {
501
- name: string | undefined;
502
- content: FlowExecutionContent | undefined;
503
- }
504
- export interface FlowExecutionInputEvent {
505
- nodeName: string | undefined;
506
- timestamp: Date | undefined;
507
- fields: FlowInputField[] | undefined;
508
- }
509
- export interface FlowOutputField {
510
- name: string | undefined;
511
- content: FlowExecutionContent | undefined;
512
- }
513
- export interface FlowExecutionOutputEvent {
514
- nodeName: string | undefined;
515
- timestamp: Date | undefined;
516
- fields: FlowOutputField[] | undefined;
551
+ export interface CodeInterpreterInvocationInput {
552
+ code?: string | undefined;
553
+ files?: string[] | undefined;
517
554
  }
518
- export declare const NodeErrorCode: {
519
- readonly BAD_GATEWAY: "BAD_GATEWAY";
520
- readonly DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
521
- readonly INTERNAL_SERVER: "INTERNAL_SERVER";
522
- readonly VALIDATION: "VALIDATION";
555
+ export declare const InvocationType: {
556
+ readonly ACTION_GROUP: "ACTION_GROUP";
557
+ readonly ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER";
558
+ readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
559
+ readonly FINISH: "FINISH";
560
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
523
561
  };
524
- export type NodeErrorCode = (typeof NodeErrorCode)[keyof typeof NodeErrorCode];
525
- export interface NodeFailureEvent {
526
- nodeName: string | undefined;
527
- timestamp: Date | undefined;
528
- errorCode: NodeErrorCode | undefined;
529
- errorMessage: string | undefined;
562
+ export type InvocationType =
563
+ (typeof InvocationType)[keyof typeof InvocationType];
564
+ export interface KnowledgeBaseLookupInput {
565
+ text?: string | undefined;
566
+ knowledgeBaseId?: string | undefined;
530
567
  }
531
- export type NodeExecutionContent =
532
- | NodeExecutionContent.DocumentMember
533
- | NodeExecutionContent.$UnknownMember;
534
- export declare namespace NodeExecutionContent {
535
- interface DocumentMember {
536
- document: __DocumentType;
537
- $unknown?: never;
538
- }
539
- interface $UnknownMember {
540
- document?: never;
541
- $unknown: [string, any];
542
- }
543
- interface Visitor<T> {
544
- document: (value: __DocumentType) => T;
545
- _: (name: string, value: any) => T;
546
- }
547
- const visit: <T>(value: NodeExecutionContent, visitor: Visitor<T>) => T;
568
+ export interface InvocationInput {
569
+ traceId?: string | undefined;
570
+ invocationType?: InvocationType | undefined;
571
+ actionGroupInvocationInput?: ActionGroupInvocationInput | undefined;
572
+ knowledgeBaseLookupInput?: KnowledgeBaseLookupInput | undefined;
573
+ codeInterpreterInvocationInput?: CodeInterpreterInvocationInput | undefined;
574
+ agentCollaboratorInvocationInput?:
575
+ | AgentCollaboratorInvocationInput
576
+ | undefined;
548
577
  }
549
- export interface NodeInputField {
550
- name: string | undefined;
551
- content: NodeExecutionContent | undefined;
578
+ export interface InferenceConfiguration {
579
+ temperature?: number | undefined;
580
+ topP?: number | undefined;
581
+ topK?: number | undefined;
582
+ maximumLength?: number | undefined;
583
+ stopSequences?: string[] | undefined;
552
584
  }
553
- export interface NodeInputEvent {
554
- nodeName: string | undefined;
555
- timestamp: Date | undefined;
556
- fields: NodeInputField[] | undefined;
585
+ export declare const CreationMode: {
586
+ readonly DEFAULT: "DEFAULT";
587
+ readonly OVERRIDDEN: "OVERRIDDEN";
588
+ };
589
+ export type CreationMode = (typeof CreationMode)[keyof typeof CreationMode];
590
+ export declare const PromptType: {
591
+ readonly KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION";
592
+ readonly ORCHESTRATION: "ORCHESTRATION";
593
+ readonly POST_PROCESSING: "POST_PROCESSING";
594
+ readonly PRE_PROCESSING: "PRE_PROCESSING";
595
+ readonly ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER";
596
+ };
597
+ export type PromptType = (typeof PromptType)[keyof typeof PromptType];
598
+ export interface ModelInvocationInput {
599
+ traceId?: string | undefined;
600
+ text?: string | undefined;
601
+ type?: PromptType | undefined;
602
+ overrideLambda?: string | undefined;
603
+ promptCreationMode?: CreationMode | undefined;
604
+ inferenceConfiguration?: InferenceConfiguration | undefined;
605
+ parserMode?: CreationMode | undefined;
606
+ foundationModel?: string | undefined;
557
607
  }
558
- export interface NodeOutputField {
559
- name: string | undefined;
560
- content: NodeExecutionContent | undefined;
608
+ export interface RawResponse {
609
+ content?: string | undefined;
561
610
  }
562
- export interface NodeOutputEvent {
563
- nodeName: string | undefined;
564
- timestamp: Date | undefined;
565
- fields: NodeOutputField[] | undefined;
611
+ export interface ReasoningTextBlock {
612
+ text: string | undefined;
613
+ signature?: string | undefined;
566
614
  }
567
- export type FlowExecutionEvent =
568
- | FlowExecutionEvent.ConditionResultEventMember
569
- | FlowExecutionEvent.FlowFailureEventMember
570
- | FlowExecutionEvent.FlowInputEventMember
571
- | FlowExecutionEvent.FlowOutputEventMember
572
- | FlowExecutionEvent.NodeFailureEventMember
573
- | FlowExecutionEvent.NodeInputEventMember
574
- | FlowExecutionEvent.NodeOutputEventMember
575
- | FlowExecutionEvent.$UnknownMember;
576
- export declare namespace FlowExecutionEvent {
577
- interface FlowInputEventMember {
578
- flowInputEvent: FlowExecutionInputEvent;
579
- flowOutputEvent?: never;
580
- nodeInputEvent?: never;
581
- nodeOutputEvent?: never;
582
- conditionResultEvent?: never;
583
- nodeFailureEvent?: never;
584
- flowFailureEvent?: never;
585
- $unknown?: never;
586
- }
587
- interface FlowOutputEventMember {
588
- flowInputEvent?: never;
589
- flowOutputEvent: FlowExecutionOutputEvent;
590
- nodeInputEvent?: never;
591
- nodeOutputEvent?: never;
592
- conditionResultEvent?: never;
593
- nodeFailureEvent?: never;
594
- flowFailureEvent?: never;
595
- $unknown?: never;
596
- }
597
- interface NodeInputEventMember {
598
- flowInputEvent?: never;
599
- flowOutputEvent?: never;
600
- nodeInputEvent: NodeInputEvent;
601
- nodeOutputEvent?: never;
602
- conditionResultEvent?: never;
603
- nodeFailureEvent?: never;
604
- flowFailureEvent?: never;
605
- $unknown?: never;
606
- }
607
- interface NodeOutputEventMember {
608
- flowInputEvent?: never;
609
- flowOutputEvent?: never;
610
- nodeInputEvent?: never;
611
- nodeOutputEvent: NodeOutputEvent;
612
- conditionResultEvent?: never;
613
- nodeFailureEvent?: never;
614
- flowFailureEvent?: never;
615
- $unknown?: never;
616
- }
617
- interface ConditionResultEventMember {
618
- flowInputEvent?: never;
619
- flowOutputEvent?: never;
620
- nodeInputEvent?: never;
621
- nodeOutputEvent?: never;
622
- conditionResultEvent: ConditionResultEvent;
623
- nodeFailureEvent?: never;
624
- flowFailureEvent?: never;
625
- $unknown?: never;
626
- }
627
- interface NodeFailureEventMember {
628
- flowInputEvent?: never;
629
- flowOutputEvent?: never;
630
- nodeInputEvent?: never;
631
- nodeOutputEvent?: never;
632
- conditionResultEvent?: never;
633
- nodeFailureEvent: NodeFailureEvent;
634
- flowFailureEvent?: never;
615
+ export type ReasoningContentBlock =
616
+ | ReasoningContentBlock.ReasoningTextMember
617
+ | ReasoningContentBlock.RedactedContentMember
618
+ | ReasoningContentBlock.$UnknownMember;
619
+ export declare namespace ReasoningContentBlock {
620
+ interface ReasoningTextMember {
621
+ reasoningText: ReasoningTextBlock;
622
+ redactedContent?: never;
635
623
  $unknown?: never;
636
624
  }
637
- interface FlowFailureEventMember {
638
- flowInputEvent?: never;
639
- flowOutputEvent?: never;
640
- nodeInputEvent?: never;
641
- nodeOutputEvent?: never;
642
- conditionResultEvent?: never;
643
- nodeFailureEvent?: never;
644
- flowFailureEvent: FlowFailureEvent;
625
+ interface RedactedContentMember {
626
+ reasoningText?: never;
627
+ redactedContent: Uint8Array;
645
628
  $unknown?: never;
646
629
  }
647
630
  interface $UnknownMember {
648
- flowInputEvent?: never;
649
- flowOutputEvent?: never;
650
- nodeInputEvent?: never;
651
- nodeOutputEvent?: never;
652
- conditionResultEvent?: never;
653
- nodeFailureEvent?: never;
654
- flowFailureEvent?: never;
631
+ reasoningText?: never;
632
+ redactedContent?: never;
655
633
  $unknown: [string, any];
656
634
  }
657
635
  interface Visitor<T> {
658
- flowInputEvent: (value: FlowExecutionInputEvent) => T;
659
- flowOutputEvent: (value: FlowExecutionOutputEvent) => T;
660
- nodeInputEvent: (value: NodeInputEvent) => T;
661
- nodeOutputEvent: (value: NodeOutputEvent) => T;
662
- conditionResultEvent: (value: ConditionResultEvent) => T;
663
- nodeFailureEvent: (value: NodeFailureEvent) => T;
664
- flowFailureEvent: (value: FlowFailureEvent) => T;
636
+ reasoningText: (value: ReasoningTextBlock) => T;
637
+ redactedContent: (value: Uint8Array) => T;
665
638
  _: (name: string, value: any) => T;
666
639
  }
667
- const visit: <T>(value: FlowExecutionEvent, visitor: Visitor<T>) => T;
668
- }
669
- export interface ListFlowExecutionEventsResponse {
670
- flowExecutionEvents: FlowExecutionEvent[] | undefined;
671
- nextToken?: string | undefined;
640
+ const visit: <T>(value: ReasoningContentBlock, visitor: Visitor<T>) => T;
672
641
  }
673
- export interface ListFlowExecutionsRequest {
674
- flowIdentifier: string | undefined;
675
- flowAliasIdentifier?: string | undefined;
676
- maxResults?: number | undefined;
677
- nextToken?: string | undefined;
642
+ export interface OrchestrationModelInvocationOutput {
643
+ traceId?: string | undefined;
644
+ rawResponse?: RawResponse | undefined;
645
+ metadata?: Metadata | undefined;
646
+ reasoningContent?: ReasoningContentBlock | undefined;
678
647
  }
679
- export interface FlowExecutionSummary {
680
- executionArn: string | undefined;
681
- flowAliasIdentifier: string | undefined;
682
- flowIdentifier: string | undefined;
683
- flowVersion: string | undefined;
684
- status: FlowExecutionStatus | undefined;
685
- createdAt: Date | undefined;
686
- endedAt?: Date | undefined;
648
+ export interface CodeInterpreterInvocationOutput {
649
+ executionOutput?: string | undefined;
650
+ executionError?: string | undefined;
651
+ files?: string[] | undefined;
652
+ executionTimeout?: boolean | undefined;
653
+ metadata?: Metadata | undefined;
687
654
  }
688
- export interface ListFlowExecutionsResponse {
689
- flowExecutionSummaries: FlowExecutionSummary[] | undefined;
690
- nextToken?: string | undefined;
655
+ export interface FinalResponse {
656
+ text?: string | undefined;
657
+ metadata?: Metadata | undefined;
691
658
  }
692
- export declare class BadGatewayException extends __BaseException {
693
- readonly name: "BadGatewayException";
694
- readonly $fault: "server";
695
- resourceName?: string | undefined;
696
- constructor(
697
- opts: __ExceptionOptionType<BadGatewayException, __BaseException>
698
- );
659
+ export declare const RetrievalResultContentColumnType: {
660
+ readonly BLOB: "BLOB";
661
+ readonly BOOLEAN: "BOOLEAN";
662
+ readonly DOUBLE: "DOUBLE";
663
+ readonly LONG: "LONG";
664
+ readonly NULL: "NULL";
665
+ readonly STRING: "STRING";
666
+ };
667
+ export type RetrievalResultContentColumnType =
668
+ (typeof RetrievalResultContentColumnType)[keyof typeof RetrievalResultContentColumnType];
669
+ export interface RetrievalResultContentColumn {
670
+ columnName?: string | undefined;
671
+ columnValue?: string | undefined;
672
+ type?: RetrievalResultContentColumnType | undefined;
699
673
  }
700
- export declare class ConflictException extends __BaseException {
701
- readonly name: "ConflictException";
702
- readonly $fault: "client";
703
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
674
+ export declare const RetrievalResultContentType: {
675
+ readonly IMAGE: "IMAGE";
676
+ readonly ROW: "ROW";
677
+ readonly TEXT: "TEXT";
678
+ };
679
+ export type RetrievalResultContentType =
680
+ (typeof RetrievalResultContentType)[keyof typeof RetrievalResultContentType];
681
+ export interface RetrievalResultContent {
682
+ type?: RetrievalResultContentType | undefined;
683
+ text?: string | undefined;
684
+ byteContent?: string | undefined;
685
+ row?: RetrievalResultContentColumn[] | undefined;
704
686
  }
705
- export declare class DependencyFailedException extends __BaseException {
706
- readonly name: "DependencyFailedException";
707
- readonly $fault: "client";
708
- resourceName?: string | undefined;
709
- constructor(
710
- opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
711
- );
687
+ export interface RetrievalResultConfluenceLocation {
688
+ url?: string | undefined;
712
689
  }
713
- export declare class ServiceQuotaExceededException extends __BaseException {
714
- readonly name: "ServiceQuotaExceededException";
715
- readonly $fault: "client";
716
- constructor(
717
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
718
- );
690
+ export interface RetrievalResultCustomDocumentLocation {
691
+ id?: string | undefined;
719
692
  }
720
- export type FlowInputContent =
721
- | FlowInputContent.DocumentMember
722
- | FlowInputContent.$UnknownMember;
723
- export declare namespace FlowInputContent {
724
- interface DocumentMember {
725
- document: __DocumentType;
726
- $unknown?: never;
727
- }
728
- interface $UnknownMember {
729
- document?: never;
730
- $unknown: [string, any];
731
- }
732
- interface Visitor<T> {
733
- document: (value: __DocumentType) => T;
734
- _: (name: string, value: any) => T;
735
- }
736
- const visit: <T>(value: FlowInputContent, visitor: Visitor<T>) => T;
693
+ export interface RetrievalResultKendraDocumentLocation {
694
+ uri?: string | undefined;
737
695
  }
738
- export interface FlowInput {
739
- nodeName: string | undefined;
740
- nodeOutputName?: string | undefined;
741
- content: FlowInputContent | undefined;
742
- nodeInputName?: string | undefined;
696
+ export interface RetrievalResultS3Location {
697
+ uri?: string | undefined;
743
698
  }
744
- export declare const PerformanceConfigLatency: {
745
- readonly OPTIMIZED: "optimized";
746
- readonly STANDARD: "standard";
747
- };
748
- export type PerformanceConfigLatency =
749
- (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
750
- export interface PerformanceConfiguration {
751
- latency?: PerformanceConfigLatency | undefined;
699
+ export interface RetrievalResultSalesforceLocation {
700
+ url?: string | undefined;
752
701
  }
753
- export interface ModelPerformanceConfiguration {
754
- performanceConfig?: PerformanceConfiguration | undefined;
702
+ export interface RetrievalResultSharePointLocation {
703
+ url?: string | undefined;
755
704
  }
756
- export interface StartFlowExecutionRequest {
757
- flowIdentifier: string | undefined;
758
- flowAliasIdentifier: string | undefined;
759
- flowExecutionName?: string | undefined;
760
- inputs: FlowInput[] | undefined;
761
- modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
705
+ export interface RetrievalResultSqlLocation {
706
+ query?: string | undefined;
762
707
  }
763
- export interface StartFlowExecutionResponse {
764
- executionArn?: string | undefined;
708
+ export declare const RetrievalResultLocationType: {
709
+ readonly CONFLUENCE: "CONFLUENCE";
710
+ readonly CUSTOM: "CUSTOM";
711
+ readonly KENDRA: "KENDRA";
712
+ readonly S3: "S3";
713
+ readonly SALESFORCE: "SALESFORCE";
714
+ readonly SHAREPOINT: "SHAREPOINT";
715
+ readonly SQL: "SQL";
716
+ readonly WEB: "WEB";
717
+ };
718
+ export type RetrievalResultLocationType =
719
+ (typeof RetrievalResultLocationType)[keyof typeof RetrievalResultLocationType];
720
+ export interface RetrievalResultWebLocation {
721
+ url?: string | undefined;
765
722
  }
766
- export interface StopFlowExecutionRequest {
767
- flowIdentifier: string | undefined;
768
- flowAliasIdentifier: string | undefined;
769
- executionIdentifier: string | undefined;
723
+ export interface RetrievalResultLocation {
724
+ type: RetrievalResultLocationType | undefined;
725
+ s3Location?: RetrievalResultS3Location | undefined;
726
+ webLocation?: RetrievalResultWebLocation | undefined;
727
+ confluenceLocation?: RetrievalResultConfluenceLocation | undefined;
728
+ salesforceLocation?: RetrievalResultSalesforceLocation | undefined;
729
+ sharePointLocation?: RetrievalResultSharePointLocation | undefined;
730
+ customDocumentLocation?: RetrievalResultCustomDocumentLocation | undefined;
731
+ kendraDocumentLocation?: RetrievalResultKendraDocumentLocation | undefined;
732
+ sqlLocation?: RetrievalResultSqlLocation | undefined;
770
733
  }
771
- export interface StopFlowExecutionResponse {
772
- executionArn?: string | undefined;
773
- status: FlowExecutionStatus | undefined;
734
+ export interface RetrievedReference {
735
+ content?: RetrievalResultContent | undefined;
736
+ location?: RetrievalResultLocation | undefined;
737
+ metadata?: Record<string, __DocumentType> | undefined;
774
738
  }
775
- export interface InvokeFlowRequest {
776
- flowIdentifier: string | undefined;
777
- flowAliasIdentifier: string | undefined;
778
- inputs: FlowInput[] | undefined;
779
- enableTrace?: boolean | undefined;
780
- modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
781
- executionId?: string | undefined;
739
+ export interface KnowledgeBaseLookupOutput {
740
+ retrievedReferences?: RetrievedReference[] | undefined;
741
+ metadata?: Metadata | undefined;
782
742
  }
783
- export declare const FlowCompletionReason: {
784
- readonly INPUT_REQUIRED: "INPUT_REQUIRED";
785
- readonly SUCCESS: "SUCCESS";
743
+ export declare const Source: {
744
+ readonly ACTION_GROUP: "ACTION_GROUP";
745
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
746
+ readonly PARSER: "PARSER";
786
747
  };
787
- export type FlowCompletionReason =
788
- (typeof FlowCompletionReason)[keyof typeof FlowCompletionReason];
789
- export interface FlowCompletionEvent {
790
- completionReason: FlowCompletionReason | undefined;
791
- }
792
- export type FlowMultiTurnInputContent =
793
- | FlowMultiTurnInputContent.DocumentMember
794
- | FlowMultiTurnInputContent.$UnknownMember;
795
- export declare namespace FlowMultiTurnInputContent {
796
- interface DocumentMember {
797
- document: __DocumentType;
798
- $unknown?: never;
799
- }
800
- interface $UnknownMember {
801
- document?: never;
802
- $unknown: [string, any];
803
- }
804
- interface Visitor<T> {
805
- document: (value: __DocumentType) => T;
806
- _: (name: string, value: any) => T;
807
- }
808
- const visit: <T>(value: FlowMultiTurnInputContent, visitor: Visitor<T>) => T;
748
+ export type Source = (typeof Source)[keyof typeof Source];
749
+ export interface RepromptResponse {
750
+ text?: string | undefined;
751
+ source?: Source | undefined;
809
752
  }
810
- export declare const NodeType: {
811
- readonly CONDITION_NODE: "ConditionNode";
812
- readonly FLOW_INPUT_NODE: "FlowInputNode";
813
- readonly FLOW_OUTPUT_NODE: "FlowOutputNode";
814
- readonly KNOWLEDGE_BASE_NODE: "KnowledgeBaseNode";
815
- readonly LAMBDA_FUNCTION_NODE: "LambdaFunctionNode";
816
- readonly LEX_NODE: "LexNode";
817
- readonly PROMPT_NODE: "PromptNode";
753
+ export declare const Type: {
754
+ readonly ACTION_GROUP: "ACTION_GROUP";
755
+ readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
756
+ readonly ASK_USER: "ASK_USER";
757
+ readonly FINISH: "FINISH";
758
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
759
+ readonly REPROMPT: "REPROMPT";
818
760
  };
819
- export type NodeType = (typeof NodeType)[keyof typeof NodeType];
820
- export interface FlowMultiTurnInputRequestEvent {
821
- nodeName: string | undefined;
822
- nodeType: NodeType | undefined;
823
- content: FlowMultiTurnInputContent | undefined;
761
+ export type Type = (typeof Type)[keyof typeof Type];
762
+ export interface Observation {
763
+ traceId?: string | undefined;
764
+ type?: Type | undefined;
765
+ actionGroupInvocationOutput?: ActionGroupInvocationOutput | undefined;
766
+ agentCollaboratorInvocationOutput?:
767
+ | AgentCollaboratorInvocationOutput
768
+ | undefined;
769
+ knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput | undefined;
770
+ finalResponse?: FinalResponse | undefined;
771
+ repromptResponse?: RepromptResponse | undefined;
772
+ codeInterpreterInvocationOutput?: CodeInterpreterInvocationOutput | undefined;
824
773
  }
825
- export type FlowOutputContent =
826
- | FlowOutputContent.DocumentMember
827
- | FlowOutputContent.$UnknownMember;
828
- export declare namespace FlowOutputContent {
829
- interface DocumentMember {
830
- document: __DocumentType;
774
+ export interface Rationale {
775
+ traceId?: string | undefined;
776
+ text?: string | undefined;
777
+ }
778
+ export type OrchestrationTrace =
779
+ | OrchestrationTrace.InvocationInputMember
780
+ | OrchestrationTrace.ModelInvocationInputMember
781
+ | OrchestrationTrace.ModelInvocationOutputMember
782
+ | OrchestrationTrace.ObservationMember
783
+ | OrchestrationTrace.RationaleMember
784
+ | OrchestrationTrace.$UnknownMember;
785
+ export declare namespace OrchestrationTrace {
786
+ interface RationaleMember {
787
+ rationale: Rationale;
788
+ invocationInput?: never;
789
+ observation?: never;
790
+ modelInvocationInput?: never;
791
+ modelInvocationOutput?: never;
831
792
  $unknown?: never;
832
793
  }
833
- interface $UnknownMember {
834
- document?: never;
794
+ interface InvocationInputMember {
795
+ rationale?: never;
796
+ invocationInput: InvocationInput;
797
+ observation?: never;
798
+ modelInvocationInput?: never;
799
+ modelInvocationOutput?: never;
800
+ $unknown?: never;
801
+ }
802
+ interface ObservationMember {
803
+ rationale?: never;
804
+ invocationInput?: never;
805
+ observation: Observation;
806
+ modelInvocationInput?: never;
807
+ modelInvocationOutput?: never;
808
+ $unknown?: never;
809
+ }
810
+ interface ModelInvocationInputMember {
811
+ rationale?: never;
812
+ invocationInput?: never;
813
+ observation?: never;
814
+ modelInvocationInput: ModelInvocationInput;
815
+ modelInvocationOutput?: never;
816
+ $unknown?: never;
817
+ }
818
+ interface ModelInvocationOutputMember {
819
+ rationale?: never;
820
+ invocationInput?: never;
821
+ observation?: never;
822
+ modelInvocationInput?: never;
823
+ modelInvocationOutput: OrchestrationModelInvocationOutput;
824
+ $unknown?: never;
825
+ }
826
+ interface $UnknownMember {
827
+ rationale?: never;
828
+ invocationInput?: never;
829
+ observation?: never;
830
+ modelInvocationInput?: never;
831
+ modelInvocationOutput?: never;
835
832
  $unknown: [string, any];
836
833
  }
837
834
  interface Visitor<T> {
838
- document: (value: __DocumentType) => T;
835
+ rationale: (value: Rationale) => T;
836
+ invocationInput: (value: InvocationInput) => T;
837
+ observation: (value: Observation) => T;
838
+ modelInvocationInput: (value: ModelInvocationInput) => T;
839
+ modelInvocationOutput: (value: OrchestrationModelInvocationOutput) => T;
839
840
  _: (name: string, value: any) => T;
840
841
  }
841
- const visit: <T>(value: FlowOutputContent, visitor: Visitor<T>) => T;
842
- }
843
- export interface FlowOutputEvent {
844
- nodeName: string | undefined;
845
- nodeType: NodeType | undefined;
846
- content: FlowOutputContent | undefined;
847
- }
848
- export interface FlowTraceCondition {
849
- conditionName: string | undefined;
842
+ const visit: <T>(value: OrchestrationTrace, visitor: Visitor<T>) => T;
850
843
  }
851
- export interface FlowTraceConditionNodeResultEvent {
852
- nodeName: string | undefined;
853
- timestamp: Date | undefined;
854
- satisfiedConditions: FlowTraceCondition[] | undefined;
844
+ export interface PostProcessingParsedResponse {
845
+ text?: string | undefined;
855
846
  }
856
- export interface FlowTraceNodeActionEvent {
857
- nodeName: string | undefined;
858
- timestamp: Date | undefined;
859
- requestId: string | undefined;
860
- serviceName: string | undefined;
861
- operationName: string | undefined;
847
+ export interface PostProcessingModelInvocationOutput {
848
+ traceId?: string | undefined;
849
+ parsedResponse?: PostProcessingParsedResponse | undefined;
850
+ rawResponse?: RawResponse | undefined;
851
+ metadata?: Metadata | undefined;
852
+ reasoningContent?: ReasoningContentBlock | undefined;
862
853
  }
863
- export type FlowTraceNodeInputContent =
864
- | FlowTraceNodeInputContent.DocumentMember
865
- | FlowTraceNodeInputContent.$UnknownMember;
866
- export declare namespace FlowTraceNodeInputContent {
867
- interface DocumentMember {
868
- document: __DocumentType;
854
+ export type PostProcessingTrace =
855
+ | PostProcessingTrace.ModelInvocationInputMember
856
+ | PostProcessingTrace.ModelInvocationOutputMember
857
+ | PostProcessingTrace.$UnknownMember;
858
+ export declare namespace PostProcessingTrace {
859
+ interface ModelInvocationInputMember {
860
+ modelInvocationInput: ModelInvocationInput;
861
+ modelInvocationOutput?: never;
862
+ $unknown?: never;
863
+ }
864
+ interface ModelInvocationOutputMember {
865
+ modelInvocationInput?: never;
866
+ modelInvocationOutput: PostProcessingModelInvocationOutput;
869
867
  $unknown?: never;
870
868
  }
871
869
  interface $UnknownMember {
872
- document?: never;
870
+ modelInvocationInput?: never;
871
+ modelInvocationOutput?: never;
873
872
  $unknown: [string, any];
874
873
  }
875
874
  interface Visitor<T> {
876
- document: (value: __DocumentType) => T;
875
+ modelInvocationInput: (value: ModelInvocationInput) => T;
876
+ modelInvocationOutput: (value: PostProcessingModelInvocationOutput) => T;
877
877
  _: (name: string, value: any) => T;
878
878
  }
879
- const visit: <T>(value: FlowTraceNodeInputContent, visitor: Visitor<T>) => T;
879
+ const visit: <T>(value: PostProcessingTrace, visitor: Visitor<T>) => T;
880
880
  }
881
- export interface FlowTraceNodeInputField {
882
- nodeInputName: string | undefined;
883
- content: FlowTraceNodeInputContent | undefined;
881
+ export interface PreProcessingParsedResponse {
882
+ rationale?: string | undefined;
883
+ isValid?: boolean | undefined;
884
884
  }
885
- export interface FlowTraceNodeInputEvent {
886
- nodeName: string | undefined;
887
- timestamp: Date | undefined;
888
- fields: FlowTraceNodeInputField[] | undefined;
885
+ export interface PreProcessingModelInvocationOutput {
886
+ traceId?: string | undefined;
887
+ parsedResponse?: PreProcessingParsedResponse | undefined;
888
+ rawResponse?: RawResponse | undefined;
889
+ metadata?: Metadata | undefined;
890
+ reasoningContent?: ReasoningContentBlock | undefined;
889
891
  }
890
- export type FlowTraceNodeOutputContent =
891
- | FlowTraceNodeOutputContent.DocumentMember
892
- | FlowTraceNodeOutputContent.$UnknownMember;
893
- export declare namespace FlowTraceNodeOutputContent {
894
- interface DocumentMember {
895
- document: __DocumentType;
892
+ export type PreProcessingTrace =
893
+ | PreProcessingTrace.ModelInvocationInputMember
894
+ | PreProcessingTrace.ModelInvocationOutputMember
895
+ | PreProcessingTrace.$UnknownMember;
896
+ export declare namespace PreProcessingTrace {
897
+ interface ModelInvocationInputMember {
898
+ modelInvocationInput: ModelInvocationInput;
899
+ modelInvocationOutput?: never;
900
+ $unknown?: never;
901
+ }
902
+ interface ModelInvocationOutputMember {
903
+ modelInvocationInput?: never;
904
+ modelInvocationOutput: PreProcessingModelInvocationOutput;
896
905
  $unknown?: never;
897
906
  }
898
907
  interface $UnknownMember {
899
- document?: never;
908
+ modelInvocationInput?: never;
909
+ modelInvocationOutput?: never;
900
910
  $unknown: [string, any];
901
911
  }
902
912
  interface Visitor<T> {
903
- document: (value: __DocumentType) => T;
913
+ modelInvocationInput: (value: ModelInvocationInput) => T;
914
+ modelInvocationOutput: (value: PreProcessingModelInvocationOutput) => T;
904
915
  _: (name: string, value: any) => T;
905
916
  }
906
- const visit: <T>(value: FlowTraceNodeOutputContent, visitor: Visitor<T>) => T;
907
- }
908
- export interface FlowTraceNodeOutputField {
909
- nodeOutputName: string | undefined;
910
- content: FlowTraceNodeOutputContent | undefined;
917
+ const visit: <T>(value: PreProcessingTrace, visitor: Visitor<T>) => T;
911
918
  }
912
- export interface FlowTraceNodeOutputEvent {
913
- nodeName: string | undefined;
914
- timestamp: Date | undefined;
915
- fields: FlowTraceNodeOutputField[] | undefined;
919
+ export interface RoutingClassifierModelInvocationOutput {
920
+ traceId?: string | undefined;
921
+ rawResponse?: RawResponse | undefined;
922
+ metadata?: Metadata | undefined;
916
923
  }
917
- export type FlowTrace =
918
- | FlowTrace.ConditionNodeResultTraceMember
919
- | FlowTrace.NodeActionTraceMember
920
- | FlowTrace.NodeInputTraceMember
921
- | FlowTrace.NodeOutputTraceMember
922
- | FlowTrace.$UnknownMember;
923
- export declare namespace FlowTrace {
924
- interface NodeInputTraceMember {
925
- nodeInputTrace: FlowTraceNodeInputEvent;
926
- nodeOutputTrace?: never;
927
- conditionNodeResultTrace?: never;
928
- nodeActionTrace?: never;
924
+ export type RoutingClassifierTrace =
925
+ | RoutingClassifierTrace.InvocationInputMember
926
+ | RoutingClassifierTrace.ModelInvocationInputMember
927
+ | RoutingClassifierTrace.ModelInvocationOutputMember
928
+ | RoutingClassifierTrace.ObservationMember
929
+ | RoutingClassifierTrace.$UnknownMember;
930
+ export declare namespace RoutingClassifierTrace {
931
+ interface InvocationInputMember {
932
+ invocationInput: InvocationInput;
933
+ observation?: never;
934
+ modelInvocationInput?: never;
935
+ modelInvocationOutput?: never;
929
936
  $unknown?: never;
930
937
  }
931
- interface NodeOutputTraceMember {
932
- nodeInputTrace?: never;
933
- nodeOutputTrace: FlowTraceNodeOutputEvent;
934
- conditionNodeResultTrace?: never;
935
- nodeActionTrace?: never;
938
+ interface ObservationMember {
939
+ invocationInput?: never;
940
+ observation: Observation;
941
+ modelInvocationInput?: never;
942
+ modelInvocationOutput?: never;
936
943
  $unknown?: never;
937
944
  }
938
- interface ConditionNodeResultTraceMember {
939
- nodeInputTrace?: never;
940
- nodeOutputTrace?: never;
941
- conditionNodeResultTrace: FlowTraceConditionNodeResultEvent;
942
- nodeActionTrace?: never;
945
+ interface ModelInvocationInputMember {
946
+ invocationInput?: never;
947
+ observation?: never;
948
+ modelInvocationInput: ModelInvocationInput;
949
+ modelInvocationOutput?: never;
943
950
  $unknown?: never;
944
951
  }
945
- interface NodeActionTraceMember {
946
- nodeInputTrace?: never;
947
- nodeOutputTrace?: never;
948
- conditionNodeResultTrace?: never;
949
- nodeActionTrace: FlowTraceNodeActionEvent;
952
+ interface ModelInvocationOutputMember {
953
+ invocationInput?: never;
954
+ observation?: never;
955
+ modelInvocationInput?: never;
956
+ modelInvocationOutput: RoutingClassifierModelInvocationOutput;
950
957
  $unknown?: never;
951
958
  }
952
959
  interface $UnknownMember {
953
- nodeInputTrace?: never;
954
- nodeOutputTrace?: never;
955
- conditionNodeResultTrace?: never;
956
- nodeActionTrace?: never;
960
+ invocationInput?: never;
961
+ observation?: never;
962
+ modelInvocationInput?: never;
963
+ modelInvocationOutput?: never;
957
964
  $unknown: [string, any];
958
965
  }
959
966
  interface Visitor<T> {
960
- nodeInputTrace: (value: FlowTraceNodeInputEvent) => T;
961
- nodeOutputTrace: (value: FlowTraceNodeOutputEvent) => T;
962
- conditionNodeResultTrace: (value: FlowTraceConditionNodeResultEvent) => T;
963
- nodeActionTrace: (value: FlowTraceNodeActionEvent) => T;
967
+ invocationInput: (value: InvocationInput) => T;
968
+ observation: (value: Observation) => T;
969
+ modelInvocationInput: (value: ModelInvocationInput) => T;
970
+ modelInvocationOutput: (value: RoutingClassifierModelInvocationOutput) => T;
964
971
  _: (name: string, value: any) => T;
965
972
  }
966
- const visit: <T>(value: FlowTrace, visitor: Visitor<T>) => T;
967
- }
968
- export interface FlowTraceEvent {
969
- trace: FlowTrace | undefined;
973
+ const visit: <T>(value: RoutingClassifierTrace, visitor: Visitor<T>) => T;
970
974
  }
971
- export type FlowResponseStream =
972
- | FlowResponseStream.AccessDeniedExceptionMember
973
- | FlowResponseStream.BadGatewayExceptionMember
974
- | FlowResponseStream.ConflictExceptionMember
975
- | FlowResponseStream.DependencyFailedExceptionMember
976
- | FlowResponseStream.FlowCompletionEventMember
977
- | FlowResponseStream.FlowMultiTurnInputRequestEventMember
978
- | FlowResponseStream.FlowOutputEventMember
979
- | FlowResponseStream.FlowTraceEventMember
980
- | FlowResponseStream.InternalServerExceptionMember
981
- | FlowResponseStream.ResourceNotFoundExceptionMember
982
- | FlowResponseStream.ServiceQuotaExceededExceptionMember
983
- | FlowResponseStream.ThrottlingExceptionMember
984
- | FlowResponseStream.ValidationExceptionMember
985
- | FlowResponseStream.$UnknownMember;
986
- export declare namespace FlowResponseStream {
987
- interface FlowOutputEventMember {
988
- flowOutputEvent: FlowOutputEvent;
989
- flowCompletionEvent?: never;
990
- flowTraceEvent?: never;
991
- internalServerException?: never;
992
- validationException?: never;
993
- resourceNotFoundException?: never;
994
- serviceQuotaExceededException?: never;
995
- throttlingException?: never;
996
- accessDeniedException?: never;
997
- conflictException?: never;
998
- dependencyFailedException?: never;
999
- badGatewayException?: never;
1000
- flowMultiTurnInputRequestEvent?: never;
1001
- $unknown?: never;
1002
- }
1003
- interface FlowCompletionEventMember {
1004
- flowOutputEvent?: never;
1005
- flowCompletionEvent: FlowCompletionEvent;
1006
- flowTraceEvent?: never;
1007
- internalServerException?: never;
1008
- validationException?: never;
1009
- resourceNotFoundException?: never;
1010
- serviceQuotaExceededException?: never;
1011
- throttlingException?: never;
1012
- accessDeniedException?: never;
1013
- conflictException?: never;
1014
- dependencyFailedException?: never;
1015
- badGatewayException?: never;
1016
- flowMultiTurnInputRequestEvent?: never;
1017
- $unknown?: never;
1018
- }
1019
- interface FlowTraceEventMember {
1020
- flowOutputEvent?: never;
1021
- flowCompletionEvent?: never;
1022
- flowTraceEvent: FlowTraceEvent;
1023
- internalServerException?: never;
1024
- validationException?: never;
1025
- resourceNotFoundException?: never;
1026
- serviceQuotaExceededException?: never;
1027
- throttlingException?: never;
1028
- accessDeniedException?: never;
1029
- conflictException?: never;
1030
- dependencyFailedException?: never;
1031
- badGatewayException?: never;
1032
- flowMultiTurnInputRequestEvent?: never;
1033
- $unknown?: never;
1034
- }
1035
- interface InternalServerExceptionMember {
1036
- flowOutputEvent?: never;
1037
- flowCompletionEvent?: never;
1038
- flowTraceEvent?: never;
1039
- internalServerException: InternalServerException;
1040
- validationException?: never;
1041
- resourceNotFoundException?: never;
1042
- serviceQuotaExceededException?: never;
1043
- throttlingException?: never;
1044
- accessDeniedException?: never;
1045
- conflictException?: never;
1046
- dependencyFailedException?: never;
1047
- badGatewayException?: never;
1048
- flowMultiTurnInputRequestEvent?: never;
975
+ export type Trace =
976
+ | Trace.CustomOrchestrationTraceMember
977
+ | Trace.FailureTraceMember
978
+ | Trace.GuardrailTraceMember
979
+ | Trace.OrchestrationTraceMember
980
+ | Trace.PostProcessingTraceMember
981
+ | Trace.PreProcessingTraceMember
982
+ | Trace.RoutingClassifierTraceMember
983
+ | Trace.$UnknownMember;
984
+ export declare namespace Trace {
985
+ interface GuardrailTraceMember {
986
+ guardrailTrace: GuardrailTrace;
987
+ preProcessingTrace?: never;
988
+ orchestrationTrace?: never;
989
+ postProcessingTrace?: never;
990
+ routingClassifierTrace?: never;
991
+ failureTrace?: never;
992
+ customOrchestrationTrace?: never;
1049
993
  $unknown?: never;
1050
994
  }
1051
- interface ValidationExceptionMember {
1052
- flowOutputEvent?: never;
1053
- flowCompletionEvent?: never;
1054
- flowTraceEvent?: never;
1055
- internalServerException?: never;
1056
- validationException: ValidationException;
1057
- resourceNotFoundException?: never;
1058
- serviceQuotaExceededException?: never;
1059
- throttlingException?: never;
1060
- accessDeniedException?: never;
1061
- conflictException?: never;
1062
- dependencyFailedException?: never;
1063
- badGatewayException?: never;
1064
- flowMultiTurnInputRequestEvent?: never;
995
+ interface PreProcessingTraceMember {
996
+ guardrailTrace?: never;
997
+ preProcessingTrace: PreProcessingTrace;
998
+ orchestrationTrace?: never;
999
+ postProcessingTrace?: never;
1000
+ routingClassifierTrace?: never;
1001
+ failureTrace?: never;
1002
+ customOrchestrationTrace?: never;
1065
1003
  $unknown?: never;
1066
1004
  }
1067
- interface ResourceNotFoundExceptionMember {
1068
- flowOutputEvent?: never;
1069
- flowCompletionEvent?: never;
1070
- flowTraceEvent?: never;
1071
- internalServerException?: never;
1072
- validationException?: never;
1073
- resourceNotFoundException: ResourceNotFoundException;
1074
- serviceQuotaExceededException?: never;
1075
- throttlingException?: never;
1076
- accessDeniedException?: never;
1077
- conflictException?: never;
1078
- dependencyFailedException?: never;
1079
- badGatewayException?: never;
1080
- flowMultiTurnInputRequestEvent?: never;
1005
+ interface OrchestrationTraceMember {
1006
+ guardrailTrace?: never;
1007
+ preProcessingTrace?: never;
1008
+ orchestrationTrace: OrchestrationTrace;
1009
+ postProcessingTrace?: never;
1010
+ routingClassifierTrace?: never;
1011
+ failureTrace?: never;
1012
+ customOrchestrationTrace?: never;
1081
1013
  $unknown?: never;
1082
1014
  }
1083
- interface ServiceQuotaExceededExceptionMember {
1084
- flowOutputEvent?: never;
1085
- flowCompletionEvent?: never;
1086
- flowTraceEvent?: never;
1087
- internalServerException?: never;
1088
- validationException?: never;
1089
- resourceNotFoundException?: never;
1090
- serviceQuotaExceededException: ServiceQuotaExceededException;
1091
- throttlingException?: never;
1092
- accessDeniedException?: never;
1093
- conflictException?: never;
1094
- dependencyFailedException?: never;
1095
- badGatewayException?: never;
1096
- flowMultiTurnInputRequestEvent?: never;
1015
+ interface PostProcessingTraceMember {
1016
+ guardrailTrace?: never;
1017
+ preProcessingTrace?: never;
1018
+ orchestrationTrace?: never;
1019
+ postProcessingTrace: PostProcessingTrace;
1020
+ routingClassifierTrace?: never;
1021
+ failureTrace?: never;
1022
+ customOrchestrationTrace?: never;
1097
1023
  $unknown?: never;
1098
1024
  }
1099
- interface ThrottlingExceptionMember {
1100
- flowOutputEvent?: never;
1101
- flowCompletionEvent?: never;
1102
- flowTraceEvent?: never;
1103
- internalServerException?: never;
1104
- validationException?: never;
1105
- resourceNotFoundException?: never;
1106
- serviceQuotaExceededException?: never;
1107
- throttlingException: ThrottlingException;
1108
- accessDeniedException?: never;
1109
- conflictException?: never;
1110
- dependencyFailedException?: never;
1111
- badGatewayException?: never;
1112
- flowMultiTurnInputRequestEvent?: never;
1025
+ interface RoutingClassifierTraceMember {
1026
+ guardrailTrace?: never;
1027
+ preProcessingTrace?: never;
1028
+ orchestrationTrace?: never;
1029
+ postProcessingTrace?: never;
1030
+ routingClassifierTrace: RoutingClassifierTrace;
1031
+ failureTrace?: never;
1032
+ customOrchestrationTrace?: never;
1113
1033
  $unknown?: never;
1114
1034
  }
1115
- interface AccessDeniedExceptionMember {
1116
- flowOutputEvent?: never;
1117
- flowCompletionEvent?: never;
1118
- flowTraceEvent?: never;
1119
- internalServerException?: never;
1120
- validationException?: never;
1121
- resourceNotFoundException?: never;
1122
- serviceQuotaExceededException?: never;
1123
- throttlingException?: never;
1124
- accessDeniedException: AccessDeniedException;
1125
- conflictException?: never;
1126
- dependencyFailedException?: never;
1127
- badGatewayException?: never;
1128
- flowMultiTurnInputRequestEvent?: never;
1035
+ interface FailureTraceMember {
1036
+ guardrailTrace?: never;
1037
+ preProcessingTrace?: never;
1038
+ orchestrationTrace?: never;
1039
+ postProcessingTrace?: never;
1040
+ routingClassifierTrace?: never;
1041
+ failureTrace: FailureTrace;
1042
+ customOrchestrationTrace?: never;
1129
1043
  $unknown?: never;
1130
1044
  }
1131
- interface ConflictExceptionMember {
1132
- flowOutputEvent?: never;
1133
- flowCompletionEvent?: never;
1134
- flowTraceEvent?: never;
1135
- internalServerException?: never;
1136
- validationException?: never;
1137
- resourceNotFoundException?: never;
1138
- serviceQuotaExceededException?: never;
1139
- throttlingException?: never;
1140
- accessDeniedException?: never;
1141
- conflictException: ConflictException;
1142
- dependencyFailedException?: never;
1143
- badGatewayException?: never;
1144
- flowMultiTurnInputRequestEvent?: never;
1045
+ interface CustomOrchestrationTraceMember {
1046
+ guardrailTrace?: never;
1047
+ preProcessingTrace?: never;
1048
+ orchestrationTrace?: never;
1049
+ postProcessingTrace?: never;
1050
+ routingClassifierTrace?: never;
1051
+ failureTrace?: never;
1052
+ customOrchestrationTrace: CustomOrchestrationTrace;
1145
1053
  $unknown?: never;
1146
1054
  }
1147
- interface DependencyFailedExceptionMember {
1148
- flowOutputEvent?: never;
1149
- flowCompletionEvent?: never;
1150
- flowTraceEvent?: never;
1151
- internalServerException?: never;
1152
- validationException?: never;
1153
- resourceNotFoundException?: never;
1154
- serviceQuotaExceededException?: never;
1155
- throttlingException?: never;
1156
- accessDeniedException?: never;
1157
- conflictException?: never;
1158
- dependencyFailedException: DependencyFailedException;
1159
- badGatewayException?: never;
1160
- flowMultiTurnInputRequestEvent?: never;
1161
- $unknown?: never;
1055
+ interface $UnknownMember {
1056
+ guardrailTrace?: never;
1057
+ preProcessingTrace?: never;
1058
+ orchestrationTrace?: never;
1059
+ postProcessingTrace?: never;
1060
+ routingClassifierTrace?: never;
1061
+ failureTrace?: never;
1062
+ customOrchestrationTrace?: never;
1063
+ $unknown: [string, any];
1162
1064
  }
1163
- interface BadGatewayExceptionMember {
1164
- flowOutputEvent?: never;
1165
- flowCompletionEvent?: never;
1166
- flowTraceEvent?: never;
1167
- internalServerException?: never;
1168
- validationException?: never;
1169
- resourceNotFoundException?: never;
1170
- serviceQuotaExceededException?: never;
1171
- throttlingException?: never;
1172
- accessDeniedException?: never;
1173
- conflictException?: never;
1174
- dependencyFailedException?: never;
1175
- badGatewayException: BadGatewayException;
1176
- flowMultiTurnInputRequestEvent?: never;
1177
- $unknown?: never;
1065
+ interface Visitor<T> {
1066
+ guardrailTrace: (value: GuardrailTrace) => T;
1067
+ preProcessingTrace: (value: PreProcessingTrace) => T;
1068
+ orchestrationTrace: (value: OrchestrationTrace) => T;
1069
+ postProcessingTrace: (value: PostProcessingTrace) => T;
1070
+ routingClassifierTrace: (value: RoutingClassifierTrace) => T;
1071
+ failureTrace: (value: FailureTrace) => T;
1072
+ customOrchestrationTrace: (value: CustomOrchestrationTrace) => T;
1073
+ _: (name: string, value: any) => T;
1178
1074
  }
1179
- interface FlowMultiTurnInputRequestEventMember {
1180
- flowOutputEvent?: never;
1181
- flowCompletionEvent?: never;
1182
- flowTraceEvent?: never;
1183
- internalServerException?: never;
1184
- validationException?: never;
1185
- resourceNotFoundException?: never;
1186
- serviceQuotaExceededException?: never;
1187
- throttlingException?: never;
1188
- accessDeniedException?: never;
1189
- conflictException?: never;
1190
- dependencyFailedException?: never;
1191
- badGatewayException?: never;
1192
- flowMultiTurnInputRequestEvent: FlowMultiTurnInputRequestEvent;
1193
- $unknown?: never;
1194
- }
1195
- interface $UnknownMember {
1196
- flowOutputEvent?: never;
1197
- flowCompletionEvent?: never;
1198
- flowTraceEvent?: never;
1199
- internalServerException?: never;
1200
- validationException?: never;
1201
- resourceNotFoundException?: never;
1202
- serviceQuotaExceededException?: never;
1203
- throttlingException?: never;
1204
- accessDeniedException?: never;
1205
- conflictException?: never;
1206
- dependencyFailedException?: never;
1207
- badGatewayException?: never;
1208
- flowMultiTurnInputRequestEvent?: never;
1209
- $unknown: [string, any];
1210
- }
1211
- interface Visitor<T> {
1212
- flowOutputEvent: (value: FlowOutputEvent) => T;
1213
- flowCompletionEvent: (value: FlowCompletionEvent) => T;
1214
- flowTraceEvent: (value: FlowTraceEvent) => T;
1215
- internalServerException: (value: InternalServerException) => T;
1216
- validationException: (value: ValidationException) => T;
1217
- resourceNotFoundException: (value: ResourceNotFoundException) => T;
1218
- serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
1219
- throttlingException: (value: ThrottlingException) => T;
1220
- accessDeniedException: (value: AccessDeniedException) => T;
1221
- conflictException: (value: ConflictException) => T;
1222
- dependencyFailedException: (value: DependencyFailedException) => T;
1223
- badGatewayException: (value: BadGatewayException) => T;
1224
- flowMultiTurnInputRequestEvent: (
1225
- value: FlowMultiTurnInputRequestEvent
1226
- ) => T;
1227
- _: (name: string, value: any) => T;
1228
- }
1229
- const visit: <T>(value: FlowResponseStream, visitor: Visitor<T>) => T;
1075
+ const visit: <T>(value: Trace, visitor: Visitor<T>) => T;
1230
1076
  }
1231
- export interface InvokeFlowResponse {
1232
- responseStream: AsyncIterable<FlowResponseStream> | undefined;
1233
- executionId?: string | undefined;
1077
+ export interface TracePart {
1078
+ sessionId?: string | undefined;
1079
+ trace?: Trace | undefined;
1080
+ callerChain?: Caller[] | undefined;
1081
+ eventTime?: Date | undefined;
1082
+ collaboratorName?: string | undefined;
1083
+ agentId?: string | undefined;
1084
+ agentAliasId?: string | undefined;
1085
+ agentVersion?: string | undefined;
1234
1086
  }
1235
- export declare const InputQueryType: {
1236
- readonly TEXT: "TEXT";
1237
- };
1238
- export type InputQueryType =
1239
- (typeof InputQueryType)[keyof typeof InputQueryType];
1240
- export interface QueryGenerationInput {
1241
- type: InputQueryType | undefined;
1242
- text: string | undefined;
1087
+ export interface GetExecutionFlowSnapshotRequest {
1088
+ flowIdentifier: string | undefined;
1089
+ flowAliasIdentifier: string | undefined;
1090
+ executionIdentifier: string | undefined;
1243
1091
  }
1244
- export declare const QueryTransformationMode: {
1245
- readonly TEXT_TO_SQL: "TEXT_TO_SQL";
1246
- };
1247
- export type QueryTransformationMode =
1248
- (typeof QueryTransformationMode)[keyof typeof QueryTransformationMode];
1249
- export interface TextToSqlKnowledgeBaseConfiguration {
1250
- knowledgeBaseArn: string | undefined;
1092
+ export interface GetExecutionFlowSnapshotResponse {
1093
+ flowIdentifier: string | undefined;
1094
+ flowAliasIdentifier: string | undefined;
1095
+ flowVersion: string | undefined;
1096
+ executionRoleArn: string | undefined;
1097
+ definition: string | undefined;
1098
+ customerEncryptionKeyArn?: string | undefined;
1251
1099
  }
1252
- export declare const TextToSqlConfigurationType: {
1253
- readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
1254
- };
1255
- export type TextToSqlConfigurationType =
1256
- (typeof TextToSqlConfigurationType)[keyof typeof TextToSqlConfigurationType];
1257
- export interface TextToSqlConfiguration {
1258
- type: TextToSqlConfigurationType | undefined;
1259
- knowledgeBaseConfiguration?: TextToSqlKnowledgeBaseConfiguration | undefined;
1100
+ export declare class InternalServerException extends __BaseException {
1101
+ readonly name: "InternalServerException";
1102
+ readonly $fault: "server";
1103
+ reason?: string | undefined;
1104
+ constructor(
1105
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
1106
+ );
1260
1107
  }
1261
- export interface TransformationConfiguration {
1262
- mode: QueryTransformationMode | undefined;
1263
- textToSqlConfiguration?: TextToSqlConfiguration | undefined;
1108
+ export declare class ResourceNotFoundException extends __BaseException {
1109
+ readonly name: "ResourceNotFoundException";
1110
+ readonly $fault: "client";
1111
+ constructor(
1112
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
1113
+ );
1264
1114
  }
1265
- export interface GenerateQueryRequest {
1266
- queryGenerationInput: QueryGenerationInput | undefined;
1267
- transformationConfiguration: TransformationConfiguration | undefined;
1115
+ export declare class ThrottlingException extends __BaseException {
1116
+ readonly name: "ThrottlingException";
1117
+ readonly $fault: "client";
1118
+ constructor(
1119
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
1120
+ );
1268
1121
  }
1269
- export declare const GeneratedQueryType: {
1270
- readonly REDSHIFT_SQL: "REDSHIFT_SQL";
1122
+ export declare class ValidationException extends __BaseException {
1123
+ readonly name: "ValidationException";
1124
+ readonly $fault: "client";
1125
+ constructor(
1126
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
1127
+ );
1128
+ }
1129
+ export interface GetFlowExecutionRequest {
1130
+ flowIdentifier: string | undefined;
1131
+ flowAliasIdentifier: string | undefined;
1132
+ executionIdentifier: string | undefined;
1133
+ }
1134
+ export declare const FlowExecutionErrorType: {
1135
+ readonly TIMED_OUT: "ExecutionTimedOut";
1271
1136
  };
1272
- export type GeneratedQueryType =
1273
- (typeof GeneratedQueryType)[keyof typeof GeneratedQueryType];
1274
- export interface GeneratedQuery {
1275
- type?: GeneratedQueryType | undefined;
1276
- sql?: string | undefined;
1137
+ export type FlowExecutionErrorType =
1138
+ (typeof FlowExecutionErrorType)[keyof typeof FlowExecutionErrorType];
1139
+ export interface FlowExecutionError {
1140
+ nodeName?: string | undefined;
1141
+ error?: FlowExecutionErrorType | undefined;
1142
+ message?: string | undefined;
1277
1143
  }
1278
- export interface GenerateQueryResponse {
1279
- queries?: GeneratedQuery[] | undefined;
1144
+ export declare const FlowExecutionStatus: {
1145
+ readonly ABORTED: "Aborted";
1146
+ readonly FAILED: "Failed";
1147
+ readonly RUNNING: "Running";
1148
+ readonly SUCCEEDED: "Succeeded";
1149
+ readonly TIMED_OUT: "TimedOut";
1150
+ };
1151
+ export type FlowExecutionStatus =
1152
+ (typeof FlowExecutionStatus)[keyof typeof FlowExecutionStatus];
1153
+ export interface GetFlowExecutionResponse {
1154
+ executionArn: string | undefined;
1155
+ status: FlowExecutionStatus | undefined;
1156
+ startedAt: Date | undefined;
1157
+ endedAt?: Date | undefined;
1158
+ errors?: FlowExecutionError[] | undefined;
1159
+ flowAliasIdentifier: string | undefined;
1160
+ flowIdentifier: string | undefined;
1161
+ flowVersion: string | undefined;
1280
1162
  }
1281
- export interface BedrockModelConfigurations {
1282
- performanceConfig?: PerformanceConfiguration | undefined;
1163
+ export declare const FlowExecutionEventType: {
1164
+ readonly FLOW: "Flow";
1165
+ readonly NODE: "Node";
1166
+ };
1167
+ export type FlowExecutionEventType =
1168
+ (typeof FlowExecutionEventType)[keyof typeof FlowExecutionEventType];
1169
+ export interface ListFlowExecutionEventsRequest {
1170
+ flowIdentifier: string | undefined;
1171
+ flowAliasIdentifier: string | undefined;
1172
+ executionIdentifier: string | undefined;
1173
+ maxResults?: number | undefined;
1174
+ nextToken?: string | undefined;
1175
+ eventType: FlowExecutionEventType | undefined;
1283
1176
  }
1284
- export interface PromptCreationConfigurations {
1285
- previousConversationTurnsToInclude?: number | undefined;
1286
- excludePreviousThinkingSteps?: boolean | undefined;
1177
+ export interface SatisfiedCondition {
1178
+ conditionName: string | undefined;
1287
1179
  }
1288
- export type ContentBlock =
1289
- | ContentBlock.TextMember
1290
- | ContentBlock.$UnknownMember;
1291
- export declare namespace ContentBlock {
1292
- interface TextMember {
1293
- text: string;
1180
+ export interface ConditionResultEvent {
1181
+ nodeName: string | undefined;
1182
+ timestamp: Date | undefined;
1183
+ satisfiedConditions: SatisfiedCondition[] | undefined;
1184
+ }
1185
+ export declare const FlowErrorCode: {
1186
+ readonly INTERNAL_SERVER: "INTERNAL_SERVER";
1187
+ readonly NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED";
1188
+ readonly VALIDATION: "VALIDATION";
1189
+ };
1190
+ export type FlowErrorCode = (typeof FlowErrorCode)[keyof typeof FlowErrorCode];
1191
+ export interface FlowFailureEvent {
1192
+ timestamp: Date | undefined;
1193
+ errorCode: FlowErrorCode | undefined;
1194
+ errorMessage: string | undefined;
1195
+ }
1196
+ export type FlowExecutionContent =
1197
+ | FlowExecutionContent.DocumentMember
1198
+ | FlowExecutionContent.$UnknownMember;
1199
+ export declare namespace FlowExecutionContent {
1200
+ interface DocumentMember {
1201
+ document: __DocumentType;
1294
1202
  $unknown?: never;
1295
1203
  }
1296
1204
  interface $UnknownMember {
1297
- text?: never;
1205
+ document?: never;
1298
1206
  $unknown: [string, any];
1299
1207
  }
1300
1208
  interface Visitor<T> {
1301
- text: (value: string) => T;
1209
+ document: (value: __DocumentType) => T;
1302
1210
  _: (name: string, value: any) => T;
1303
1211
  }
1304
- const visit: <T>(value: ContentBlock, visitor: Visitor<T>) => T;
1212
+ const visit: <T>(value: FlowExecutionContent, visitor: Visitor<T>) => T;
1305
1213
  }
1306
- export declare const ConversationRole: {
1307
- readonly ASSISTANT: "assistant";
1308
- readonly USER: "user";
1309
- };
1310
- export type ConversationRole =
1311
- (typeof ConversationRole)[keyof typeof ConversationRole];
1312
- export interface Message {
1313
- role: ConversationRole | undefined;
1314
- content: ContentBlock[] | undefined;
1214
+ export interface FlowInputField {
1215
+ name: string | undefined;
1216
+ content: FlowExecutionContent | undefined;
1315
1217
  }
1316
- export interface ConversationHistory {
1317
- messages?: Message[] | undefined;
1218
+ export interface FlowExecutionInputEvent {
1219
+ nodeName: string | undefined;
1220
+ timestamp: Date | undefined;
1221
+ fields: FlowInputField[] | undefined;
1318
1222
  }
1319
- export interface ByteContentFile {
1320
- mediaType: string | undefined;
1321
- data: Uint8Array | undefined;
1223
+ export interface FlowOutputField {
1224
+ name: string | undefined;
1225
+ content: FlowExecutionContent | undefined;
1322
1226
  }
1323
- export interface S3ObjectFile {
1324
- uri: string | undefined;
1227
+ export interface FlowExecutionOutputEvent {
1228
+ nodeName: string | undefined;
1229
+ timestamp: Date | undefined;
1230
+ fields: FlowOutputField[] | undefined;
1325
1231
  }
1326
- export declare const FileSourceType: {
1327
- readonly BYTE_CONTENT: "BYTE_CONTENT";
1328
- readonly S3: "S3";
1329
- };
1330
- export type FileSourceType =
1331
- (typeof FileSourceType)[keyof typeof FileSourceType];
1332
- export interface FileSource {
1333
- sourceType: FileSourceType | undefined;
1334
- s3Location?: S3ObjectFile | undefined;
1335
- byteContent?: ByteContentFile | undefined;
1232
+ export interface NodeActionEvent {
1233
+ nodeName: string | undefined;
1234
+ timestamp: Date | undefined;
1235
+ requestId: string | undefined;
1236
+ serviceName: string | undefined;
1237
+ operationName: string | undefined;
1238
+ operationRequest?: __DocumentType | undefined;
1239
+ operationResponse?: __DocumentType | undefined;
1336
1240
  }
1337
- export declare const FileUseCase: {
1338
- readonly CHAT: "CHAT";
1339
- readonly CODE_INTERPRETER: "CODE_INTERPRETER";
1340
- };
1341
- export type FileUseCase = (typeof FileUseCase)[keyof typeof FileUseCase];
1342
- export interface InputFile {
1343
- name: string | undefined;
1344
- source: FileSource | undefined;
1345
- useCase: FileUseCase | undefined;
1241
+ export type NodeTraceElements =
1242
+ | NodeTraceElements.AgentTracesMember
1243
+ | NodeTraceElements.$UnknownMember;
1244
+ export declare namespace NodeTraceElements {
1245
+ interface AgentTracesMember {
1246
+ agentTraces: TracePart[];
1247
+ $unknown?: never;
1248
+ }
1249
+ interface $UnknownMember {
1250
+ agentTraces?: never;
1251
+ $unknown: [string, any];
1252
+ }
1253
+ interface Visitor<T> {
1254
+ agentTraces: (value: TracePart[]) => T;
1255
+ _: (name: string, value: any) => T;
1256
+ }
1257
+ const visit: <T>(value: NodeTraceElements, visitor: Visitor<T>) => T;
1346
1258
  }
1347
- export interface FilterAttribute {
1348
- key: string | undefined;
1349
- value: __DocumentType | undefined;
1259
+ export interface NodeDependencyEvent {
1260
+ nodeName: string | undefined;
1261
+ timestamp: Date | undefined;
1262
+ traceElements: NodeTraceElements | undefined;
1350
1263
  }
1351
- export declare const AttributeType: {
1352
- readonly BOOLEAN: "BOOLEAN";
1353
- readonly NUMBER: "NUMBER";
1354
- readonly STRING: "STRING";
1355
- readonly STRING_LIST: "STRING_LIST";
1264
+ export declare const NodeErrorCode: {
1265
+ readonly BAD_GATEWAY: "BAD_GATEWAY";
1266
+ readonly DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
1267
+ readonly INTERNAL_SERVER: "INTERNAL_SERVER";
1268
+ readonly VALIDATION: "VALIDATION";
1356
1269
  };
1357
- export type AttributeType = (typeof AttributeType)[keyof typeof AttributeType];
1358
- export interface MetadataAttributeSchema {
1359
- key: string | undefined;
1360
- type: AttributeType | undefined;
1361
- description: string | undefined;
1362
- }
1363
- export interface ImplicitFilterConfiguration {
1364
- metadataAttributes: MetadataAttributeSchema[] | undefined;
1365
- modelArn: string | undefined;
1270
+ export type NodeErrorCode = (typeof NodeErrorCode)[keyof typeof NodeErrorCode];
1271
+ export interface NodeFailureEvent {
1272
+ nodeName: string | undefined;
1273
+ timestamp: Date | undefined;
1274
+ errorCode: NodeErrorCode | undefined;
1275
+ errorMessage: string | undefined;
1366
1276
  }
1367
- export declare const SearchType: {
1368
- readonly HYBRID: "HYBRID";
1369
- readonly SEMANTIC: "SEMANTIC";
1370
- };
1371
- export type SearchType = (typeof SearchType)[keyof typeof SearchType];
1372
- export declare const RerankingMetadataSelectionMode: {
1373
- readonly ALL: "ALL";
1374
- readonly SELECTIVE: "SELECTIVE";
1277
+ export declare const FlowNodeInputCategory: {
1278
+ readonly EXIT_LOOP: "ExitLoop";
1279
+ readonly LOOP_CONDITION: "LoopCondition";
1280
+ readonly RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart";
1375
1281
  };
1376
- export type RerankingMetadataSelectionMode =
1377
- (typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
1378
- export interface FieldForReranking {
1379
- fieldName: string | undefined;
1380
- }
1381
- export type RerankingMetadataSelectiveModeConfiguration =
1382
- | RerankingMetadataSelectiveModeConfiguration.FieldsToExcludeMember
1383
- | RerankingMetadataSelectiveModeConfiguration.FieldsToIncludeMember
1384
- | RerankingMetadataSelectiveModeConfiguration.$UnknownMember;
1385
- export declare namespace RerankingMetadataSelectiveModeConfiguration {
1386
- interface FieldsToIncludeMember {
1387
- fieldsToInclude: FieldForReranking[];
1388
- fieldsToExclude?: never;
1389
- $unknown?: never;
1390
- }
1391
- interface FieldsToExcludeMember {
1392
- fieldsToInclude?: never;
1393
- fieldsToExclude: FieldForReranking[];
1282
+ export type FlowNodeInputCategory =
1283
+ (typeof FlowNodeInputCategory)[keyof typeof FlowNodeInputCategory];
1284
+ export type NodeExecutionContent =
1285
+ | NodeExecutionContent.DocumentMember
1286
+ | NodeExecutionContent.$UnknownMember;
1287
+ export declare namespace NodeExecutionContent {
1288
+ interface DocumentMember {
1289
+ document: __DocumentType;
1394
1290
  $unknown?: never;
1395
1291
  }
1396
1292
  interface $UnknownMember {
1397
- fieldsToInclude?: never;
1398
- fieldsToExclude?: never;
1293
+ document?: never;
1399
1294
  $unknown: [string, any];
1400
1295
  }
1401
1296
  interface Visitor<T> {
1402
- fieldsToInclude: (value: FieldForReranking[]) => T;
1403
- fieldsToExclude: (value: FieldForReranking[]) => T;
1297
+ document: (value: __DocumentType) => T;
1404
1298
  _: (name: string, value: any) => T;
1405
1299
  }
1406
- const visit: <T>(
1407
- value: RerankingMetadataSelectiveModeConfiguration,
1408
- visitor: Visitor<T>
1409
- ) => T;
1410
- }
1411
- export interface MetadataConfigurationForReranking {
1412
- selectionMode: RerankingMetadataSelectionMode | undefined;
1413
- selectiveModeConfiguration?:
1414
- | RerankingMetadataSelectiveModeConfiguration
1415
- | undefined;
1416
- }
1417
- export interface VectorSearchBedrockRerankingModelConfiguration {
1418
- modelArn: string | undefined;
1419
- additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
1420
- }
1421
- export interface VectorSearchBedrockRerankingConfiguration {
1422
- modelConfiguration:
1423
- | VectorSearchBedrockRerankingModelConfiguration
1424
- | undefined;
1425
- numberOfRerankedResults?: number | undefined;
1426
- metadataConfiguration?: MetadataConfigurationForReranking | undefined;
1300
+ const visit: <T>(value: NodeExecutionContent, visitor: Visitor<T>) => T;
1427
1301
  }
1428
- export declare const VectorSearchRerankingConfigurationType: {
1429
- readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
1302
+ export declare const FlowControlNodeType: {
1303
+ readonly ITERATOR: "Iterator";
1304
+ readonly LOOP: "Loop";
1430
1305
  };
1431
- export type VectorSearchRerankingConfigurationType =
1432
- (typeof VectorSearchRerankingConfigurationType)[keyof typeof VectorSearchRerankingConfigurationType];
1433
- export interface VectorSearchRerankingConfiguration {
1434
- type: VectorSearchRerankingConfigurationType | undefined;
1435
- bedrockRerankingConfiguration?:
1436
- | VectorSearchBedrockRerankingConfiguration
1437
- | undefined;
1438
- }
1439
- export interface StreamingConfigurations {
1440
- streamFinalResponse?: boolean | undefined;
1441
- applyGuardrailInterval?: number | undefined;
1442
- }
1443
- export interface Span {
1444
- start?: number | undefined;
1445
- end?: number | undefined;
1446
- }
1447
- export interface TextResponsePart {
1448
- text?: string | undefined;
1449
- span?: Span | undefined;
1450
- }
1451
- export interface GeneratedResponsePart {
1452
- textResponsePart?: TextResponsePart | undefined;
1453
- }
1454
- export declare const RetrievalResultContentColumnType: {
1455
- readonly BLOB: "BLOB";
1456
- readonly BOOLEAN: "BOOLEAN";
1457
- readonly DOUBLE: "DOUBLE";
1458
- readonly LONG: "LONG";
1459
- readonly NULL: "NULL";
1460
- readonly STRING: "STRING";
1461
- };
1462
- export type RetrievalResultContentColumnType =
1463
- (typeof RetrievalResultContentColumnType)[keyof typeof RetrievalResultContentColumnType];
1464
- export interface RetrievalResultContentColumn {
1465
- columnName?: string | undefined;
1466
- columnValue?: string | undefined;
1467
- type?: RetrievalResultContentColumnType | undefined;
1306
+ export type FlowControlNodeType =
1307
+ (typeof FlowControlNodeType)[keyof typeof FlowControlNodeType];
1308
+ export interface NodeInputExecutionChainItem {
1309
+ nodeName: string | undefined;
1310
+ index?: number | undefined;
1311
+ type: FlowControlNodeType | undefined;
1468
1312
  }
1469
- export declare const RetrievalResultContentType: {
1470
- readonly IMAGE: "IMAGE";
1471
- readonly ROW: "ROW";
1472
- readonly TEXT: "TEXT";
1313
+ export interface NodeInputSource {
1314
+ nodeName: string | undefined;
1315
+ outputFieldName: string | undefined;
1316
+ expression: string | undefined;
1317
+ }
1318
+ export declare const FlowNodeIODataType: {
1319
+ readonly ARRAY: "Array";
1320
+ readonly BOOLEAN: "Boolean";
1321
+ readonly NUMBER: "Number";
1322
+ readonly OBJECT: "Object";
1323
+ readonly STRING: "String";
1473
1324
  };
1474
- export type RetrievalResultContentType =
1475
- (typeof RetrievalResultContentType)[keyof typeof RetrievalResultContentType];
1476
- export interface RetrievalResultContent {
1477
- type?: RetrievalResultContentType | undefined;
1478
- text?: string | undefined;
1479
- byteContent?: string | undefined;
1480
- row?: RetrievalResultContentColumn[] | undefined;
1481
- }
1482
- export interface RetrievalResultConfluenceLocation {
1483
- url?: string | undefined;
1484
- }
1485
- export interface RetrievalResultCustomDocumentLocation {
1486
- id?: string | undefined;
1487
- }
1488
- export interface RetrievalResultKendraDocumentLocation {
1489
- uri?: string | undefined;
1325
+ export type FlowNodeIODataType =
1326
+ (typeof FlowNodeIODataType)[keyof typeof FlowNodeIODataType];
1327
+ export interface NodeInputField {
1328
+ name: string | undefined;
1329
+ content: NodeExecutionContent | undefined;
1330
+ source?: NodeInputSource | undefined;
1331
+ type?: FlowNodeIODataType | undefined;
1332
+ category?: FlowNodeInputCategory | undefined;
1333
+ executionChain?: NodeInputExecutionChainItem[] | undefined;
1490
1334
  }
1491
- export interface RetrievalResultS3Location {
1492
- uri?: string | undefined;
1335
+ export interface NodeInputEvent {
1336
+ nodeName: string | undefined;
1337
+ timestamp: Date | undefined;
1338
+ fields: NodeInputField[] | undefined;
1493
1339
  }
1494
- export interface RetrievalResultSalesforceLocation {
1495
- url?: string | undefined;
1340
+ export interface NodeOutputNext {
1341
+ nodeName: string | undefined;
1342
+ inputFieldName: string | undefined;
1496
1343
  }
1497
- export interface RetrievalResultSharePointLocation {
1498
- url?: string | undefined;
1344
+ export interface NodeOutputField {
1345
+ name: string | undefined;
1346
+ content: NodeExecutionContent | undefined;
1347
+ next?: NodeOutputNext[] | undefined;
1348
+ type?: FlowNodeIODataType | undefined;
1499
1349
  }
1500
- export interface RetrievalResultSqlLocation {
1501
- query?: string | undefined;
1350
+ export interface NodeOutputEvent {
1351
+ nodeName: string | undefined;
1352
+ timestamp: Date | undefined;
1353
+ fields: NodeOutputField[] | undefined;
1502
1354
  }
1503
- export declare const RetrievalResultLocationType: {
1504
- readonly CONFLUENCE: "CONFLUENCE";
1505
- readonly CUSTOM: "CUSTOM";
1506
- readonly KENDRA: "KENDRA";
1507
- readonly S3: "S3";
1508
- readonly SALESFORCE: "SALESFORCE";
1509
- readonly SHAREPOINT: "SHAREPOINT";
1510
- readonly SQL: "SQL";
1511
- readonly WEB: "WEB";
1512
- };
1513
- export type RetrievalResultLocationType =
1514
- (typeof RetrievalResultLocationType)[keyof typeof RetrievalResultLocationType];
1515
- export interface RetrievalResultWebLocation {
1516
- url?: string | undefined;
1355
+ export type FlowExecutionEvent =
1356
+ | FlowExecutionEvent.ConditionResultEventMember
1357
+ | FlowExecutionEvent.FlowFailureEventMember
1358
+ | FlowExecutionEvent.FlowInputEventMember
1359
+ | FlowExecutionEvent.FlowOutputEventMember
1360
+ | FlowExecutionEvent.NodeActionEventMember
1361
+ | FlowExecutionEvent.NodeDependencyEventMember
1362
+ | FlowExecutionEvent.NodeFailureEventMember
1363
+ | FlowExecutionEvent.NodeInputEventMember
1364
+ | FlowExecutionEvent.NodeOutputEventMember
1365
+ | FlowExecutionEvent.$UnknownMember;
1366
+ export declare namespace FlowExecutionEvent {
1367
+ interface FlowInputEventMember {
1368
+ flowInputEvent: FlowExecutionInputEvent;
1369
+ flowOutputEvent?: never;
1370
+ nodeInputEvent?: never;
1371
+ nodeOutputEvent?: never;
1372
+ conditionResultEvent?: never;
1373
+ nodeFailureEvent?: never;
1374
+ flowFailureEvent?: never;
1375
+ nodeActionEvent?: never;
1376
+ nodeDependencyEvent?: never;
1377
+ $unknown?: never;
1378
+ }
1379
+ interface FlowOutputEventMember {
1380
+ flowInputEvent?: never;
1381
+ flowOutputEvent: FlowExecutionOutputEvent;
1382
+ nodeInputEvent?: never;
1383
+ nodeOutputEvent?: never;
1384
+ conditionResultEvent?: never;
1385
+ nodeFailureEvent?: never;
1386
+ flowFailureEvent?: never;
1387
+ nodeActionEvent?: never;
1388
+ nodeDependencyEvent?: never;
1389
+ $unknown?: never;
1390
+ }
1391
+ interface NodeInputEventMember {
1392
+ flowInputEvent?: never;
1393
+ flowOutputEvent?: never;
1394
+ nodeInputEvent: NodeInputEvent;
1395
+ nodeOutputEvent?: never;
1396
+ conditionResultEvent?: never;
1397
+ nodeFailureEvent?: never;
1398
+ flowFailureEvent?: never;
1399
+ nodeActionEvent?: never;
1400
+ nodeDependencyEvent?: never;
1401
+ $unknown?: never;
1402
+ }
1403
+ interface NodeOutputEventMember {
1404
+ flowInputEvent?: never;
1405
+ flowOutputEvent?: never;
1406
+ nodeInputEvent?: never;
1407
+ nodeOutputEvent: NodeOutputEvent;
1408
+ conditionResultEvent?: never;
1409
+ nodeFailureEvent?: never;
1410
+ flowFailureEvent?: never;
1411
+ nodeActionEvent?: never;
1412
+ nodeDependencyEvent?: never;
1413
+ $unknown?: never;
1414
+ }
1415
+ interface ConditionResultEventMember {
1416
+ flowInputEvent?: never;
1417
+ flowOutputEvent?: never;
1418
+ nodeInputEvent?: never;
1419
+ nodeOutputEvent?: never;
1420
+ conditionResultEvent: ConditionResultEvent;
1421
+ nodeFailureEvent?: never;
1422
+ flowFailureEvent?: never;
1423
+ nodeActionEvent?: never;
1424
+ nodeDependencyEvent?: never;
1425
+ $unknown?: never;
1426
+ }
1427
+ interface NodeFailureEventMember {
1428
+ flowInputEvent?: never;
1429
+ flowOutputEvent?: never;
1430
+ nodeInputEvent?: never;
1431
+ nodeOutputEvent?: never;
1432
+ conditionResultEvent?: never;
1433
+ nodeFailureEvent: NodeFailureEvent;
1434
+ flowFailureEvent?: never;
1435
+ nodeActionEvent?: never;
1436
+ nodeDependencyEvent?: never;
1437
+ $unknown?: never;
1438
+ }
1439
+ interface FlowFailureEventMember {
1440
+ flowInputEvent?: never;
1441
+ flowOutputEvent?: never;
1442
+ nodeInputEvent?: never;
1443
+ nodeOutputEvent?: never;
1444
+ conditionResultEvent?: never;
1445
+ nodeFailureEvent?: never;
1446
+ flowFailureEvent: FlowFailureEvent;
1447
+ nodeActionEvent?: never;
1448
+ nodeDependencyEvent?: never;
1449
+ $unknown?: never;
1450
+ }
1451
+ interface NodeActionEventMember {
1452
+ flowInputEvent?: never;
1453
+ flowOutputEvent?: never;
1454
+ nodeInputEvent?: never;
1455
+ nodeOutputEvent?: never;
1456
+ conditionResultEvent?: never;
1457
+ nodeFailureEvent?: never;
1458
+ flowFailureEvent?: never;
1459
+ nodeActionEvent: NodeActionEvent;
1460
+ nodeDependencyEvent?: never;
1461
+ $unknown?: never;
1462
+ }
1463
+ interface NodeDependencyEventMember {
1464
+ flowInputEvent?: never;
1465
+ flowOutputEvent?: never;
1466
+ nodeInputEvent?: never;
1467
+ nodeOutputEvent?: never;
1468
+ conditionResultEvent?: never;
1469
+ nodeFailureEvent?: never;
1470
+ flowFailureEvent?: never;
1471
+ nodeActionEvent?: never;
1472
+ nodeDependencyEvent: NodeDependencyEvent;
1473
+ $unknown?: never;
1474
+ }
1475
+ interface $UnknownMember {
1476
+ flowInputEvent?: never;
1477
+ flowOutputEvent?: never;
1478
+ nodeInputEvent?: never;
1479
+ nodeOutputEvent?: never;
1480
+ conditionResultEvent?: never;
1481
+ nodeFailureEvent?: never;
1482
+ flowFailureEvent?: never;
1483
+ nodeActionEvent?: never;
1484
+ nodeDependencyEvent?: never;
1485
+ $unknown: [string, any];
1486
+ }
1487
+ interface Visitor<T> {
1488
+ flowInputEvent: (value: FlowExecutionInputEvent) => T;
1489
+ flowOutputEvent: (value: FlowExecutionOutputEvent) => T;
1490
+ nodeInputEvent: (value: NodeInputEvent) => T;
1491
+ nodeOutputEvent: (value: NodeOutputEvent) => T;
1492
+ conditionResultEvent: (value: ConditionResultEvent) => T;
1493
+ nodeFailureEvent: (value: NodeFailureEvent) => T;
1494
+ flowFailureEvent: (value: FlowFailureEvent) => T;
1495
+ nodeActionEvent: (value: NodeActionEvent) => T;
1496
+ nodeDependencyEvent: (value: NodeDependencyEvent) => T;
1497
+ _: (name: string, value: any) => T;
1498
+ }
1499
+ const visit: <T>(value: FlowExecutionEvent, visitor: Visitor<T>) => T;
1517
1500
  }
1518
- export interface RetrievalResultLocation {
1519
- type: RetrievalResultLocationType | undefined;
1520
- s3Location?: RetrievalResultS3Location | undefined;
1521
- webLocation?: RetrievalResultWebLocation | undefined;
1522
- confluenceLocation?: RetrievalResultConfluenceLocation | undefined;
1523
- salesforceLocation?: RetrievalResultSalesforceLocation | undefined;
1524
- sharePointLocation?: RetrievalResultSharePointLocation | undefined;
1525
- customDocumentLocation?: RetrievalResultCustomDocumentLocation | undefined;
1526
- kendraDocumentLocation?: RetrievalResultKendraDocumentLocation | undefined;
1527
- sqlLocation?: RetrievalResultSqlLocation | undefined;
1501
+ export interface ListFlowExecutionEventsResponse {
1502
+ flowExecutionEvents: FlowExecutionEvent[] | undefined;
1503
+ nextToken?: string | undefined;
1528
1504
  }
1529
- export interface RetrievedReference {
1530
- content?: RetrievalResultContent | undefined;
1531
- location?: RetrievalResultLocation | undefined;
1532
- metadata?: Record<string, __DocumentType> | undefined;
1505
+ export interface ListFlowExecutionsRequest {
1506
+ flowIdentifier: string | undefined;
1507
+ flowAliasIdentifier?: string | undefined;
1508
+ maxResults?: number | undefined;
1509
+ nextToken?: string | undefined;
1533
1510
  }
1534
- export interface Citation {
1535
- generatedResponsePart?: GeneratedResponsePart | undefined;
1536
- retrievedReferences?: RetrievedReference[] | undefined;
1511
+ export interface FlowExecutionSummary {
1512
+ executionArn: string | undefined;
1513
+ flowAliasIdentifier: string | undefined;
1514
+ flowIdentifier: string | undefined;
1515
+ flowVersion: string | undefined;
1516
+ status: FlowExecutionStatus | undefined;
1517
+ createdAt: Date | undefined;
1518
+ endedAt?: Date | undefined;
1537
1519
  }
1538
- export interface Attribution {
1539
- citations?: Citation[] | undefined;
1520
+ export interface ListFlowExecutionsResponse {
1521
+ flowExecutionSummaries: FlowExecutionSummary[] | undefined;
1522
+ nextToken?: string | undefined;
1540
1523
  }
1541
- export interface PayloadPart {
1542
- bytes?: Uint8Array | undefined;
1543
- attribution?: Attribution | undefined;
1524
+ export declare class BadGatewayException extends __BaseException {
1525
+ readonly name: "BadGatewayException";
1526
+ readonly $fault: "server";
1527
+ resourceName?: string | undefined;
1528
+ constructor(
1529
+ opts: __ExceptionOptionType<BadGatewayException, __BaseException>
1530
+ );
1544
1531
  }
1545
- export interface OutputFile {
1546
- name?: string | undefined;
1547
- type?: string | undefined;
1548
- bytes?: Uint8Array | undefined;
1532
+ export declare class ConflictException extends __BaseException {
1533
+ readonly name: "ConflictException";
1534
+ readonly $fault: "client";
1535
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1549
1536
  }
1550
- export interface FilePart {
1551
- files?: OutputFile[] | undefined;
1537
+ export declare class DependencyFailedException extends __BaseException {
1538
+ readonly name: "DependencyFailedException";
1539
+ readonly $fault: "client";
1540
+ resourceName?: string | undefined;
1541
+ constructor(
1542
+ opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
1543
+ );
1552
1544
  }
1553
- export declare class ModelNotReadyException extends __BaseException {
1554
- readonly name: "ModelNotReadyException";
1545
+ export declare class ServiceQuotaExceededException extends __BaseException {
1546
+ readonly name: "ServiceQuotaExceededException";
1555
1547
  readonly $fault: "client";
1556
1548
  constructor(
1557
- opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
1549
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
1558
1550
  );
1559
1551
  }
1560
- export type Caller = Caller.AgentAliasArnMember | Caller.$UnknownMember;
1561
- export declare namespace Caller {
1562
- interface AgentAliasArnMember {
1563
- agentAliasArn: string;
1552
+ export type FlowInputContent =
1553
+ | FlowInputContent.DocumentMember
1554
+ | FlowInputContent.$UnknownMember;
1555
+ export declare namespace FlowInputContent {
1556
+ interface DocumentMember {
1557
+ document: __DocumentType;
1564
1558
  $unknown?: never;
1565
1559
  }
1566
1560
  interface $UnknownMember {
1567
- agentAliasArn?: never;
1561
+ document?: never;
1568
1562
  $unknown: [string, any];
1569
1563
  }
1570
1564
  interface Visitor<T> {
1571
- agentAliasArn: (value: string) => T;
1565
+ document: (value: __DocumentType) => T;
1572
1566
  _: (name: string, value: any) => T;
1573
1567
  }
1574
- const visit: <T>(value: Caller, visitor: Visitor<T>) => T;
1575
- }
1576
- export interface CustomOrchestrationTraceEvent {
1577
- text?: string | undefined;
1578
- }
1579
- export interface CustomOrchestrationTrace {
1580
- traceId?: string | undefined;
1581
- event?: CustomOrchestrationTraceEvent | undefined;
1568
+ const visit: <T>(value: FlowInputContent, visitor: Visitor<T>) => T;
1582
1569
  }
1583
- export interface FailureTrace {
1584
- traceId?: string | undefined;
1585
- failureReason?: string | undefined;
1586
- failureCode?: number | undefined;
1587
- metadata?: Metadata | undefined;
1570
+ export interface FlowInput {
1571
+ nodeName: string | undefined;
1572
+ nodeOutputName?: string | undefined;
1573
+ content: FlowInputContent | undefined;
1574
+ nodeInputName?: string | undefined;
1588
1575
  }
1589
- export declare const GuardrailAction: {
1590
- readonly INTERVENED: "INTERVENED";
1591
- readonly NONE: "NONE";
1592
- };
1593
- export type GuardrailAction =
1594
- (typeof GuardrailAction)[keyof typeof GuardrailAction];
1595
- export declare const GuardrailContentPolicyAction: {
1596
- readonly BLOCKED: "BLOCKED";
1597
- };
1598
- export type GuardrailContentPolicyAction =
1599
- (typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
1600
- export declare const GuardrailContentFilterConfidence: {
1601
- readonly HIGH: "HIGH";
1602
- readonly LOW: "LOW";
1603
- readonly MEDIUM: "MEDIUM";
1604
- readonly NONE: "NONE";
1605
- };
1606
- export type GuardrailContentFilterConfidence =
1607
- (typeof GuardrailContentFilterConfidence)[keyof typeof GuardrailContentFilterConfidence];
1608
- export declare const GuardrailContentFilterType: {
1609
- readonly HATE: "HATE";
1610
- readonly INSULTS: "INSULTS";
1611
- readonly MISCONDUCT: "MISCONDUCT";
1612
- readonly PROMPT_ATTACK: "PROMPT_ATTACK";
1613
- readonly SEXUAL: "SEXUAL";
1614
- readonly VIOLENCE: "VIOLENCE";
1576
+ export declare const PerformanceConfigLatency: {
1577
+ readonly OPTIMIZED: "optimized";
1578
+ readonly STANDARD: "standard";
1615
1579
  };
1616
- export type GuardrailContentFilterType =
1617
- (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
1618
- export interface GuardrailContentFilter {
1619
- type?: GuardrailContentFilterType | undefined;
1620
- confidence?: GuardrailContentFilterConfidence | undefined;
1621
- action?: GuardrailContentPolicyAction | undefined;
1622
- }
1623
- export interface GuardrailContentPolicyAssessment {
1624
- filters?: GuardrailContentFilter[] | undefined;
1580
+ export type PerformanceConfigLatency =
1581
+ (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
1582
+ export interface PerformanceConfiguration {
1583
+ latency?: PerformanceConfigLatency | undefined;
1625
1584
  }
1626
- export declare const GuardrailSensitiveInformationPolicyAction: {
1627
- readonly ANONYMIZED: "ANONYMIZED";
1628
- readonly BLOCKED: "BLOCKED";
1629
- };
1630
- export type GuardrailSensitiveInformationPolicyAction =
1631
- (typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
1632
- export declare const GuardrailPiiEntityType: {
1633
- readonly ADDRESS: "ADDRESS";
1634
- readonly AGE: "AGE";
1635
- readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
1636
- readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
1637
- readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
1638
- readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
1639
- readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
1640
- readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
1641
- readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
1642
- readonly DRIVER_ID: "DRIVER_ID";
1643
- readonly EMAIL: "EMAIL";
1644
- readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
1645
- readonly IP_ADDRESS: "IP_ADDRESS";
1646
- readonly LICENSE_PLATE: "LICENSE_PLATE";
1647
- readonly MAC_ADDRESS: "MAC_ADDRESS";
1648
- readonly NAME: "NAME";
1649
- readonly PASSWORD: "PASSWORD";
1650
- readonly PHONE: "PHONE";
1651
- readonly PIN: "PIN";
1652
- readonly SWIFT_CODE: "SWIFT_CODE";
1653
- readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
1654
- readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
1655
- readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
1656
- readonly URL: "URL";
1657
- readonly USERNAME: "USERNAME";
1658
- readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
1659
- readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
1660
- readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
1661
- readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
1662
- readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
1663
- readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
1664
- };
1665
- export type GuardrailPiiEntityType =
1666
- (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
1667
- export interface GuardrailPiiEntityFilter {
1668
- type?: GuardrailPiiEntityType | undefined;
1669
- match?: string | undefined;
1670
- action?: GuardrailSensitiveInformationPolicyAction | undefined;
1585
+ export interface ModelPerformanceConfiguration {
1586
+ performanceConfig?: PerformanceConfiguration | undefined;
1671
1587
  }
1672
- export interface GuardrailRegexFilter {
1673
- name?: string | undefined;
1674
- regex?: string | undefined;
1675
- match?: string | undefined;
1676
- action?: GuardrailSensitiveInformationPolicyAction | undefined;
1588
+ export interface StartFlowExecutionRequest {
1589
+ flowIdentifier: string | undefined;
1590
+ flowAliasIdentifier: string | undefined;
1591
+ flowExecutionName?: string | undefined;
1592
+ inputs: FlowInput[] | undefined;
1593
+ modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
1677
1594
  }
1678
- export interface GuardrailSensitiveInformationPolicyAssessment {
1679
- piiEntities?: GuardrailPiiEntityFilter[] | undefined;
1680
- regexes?: GuardrailRegexFilter[] | undefined;
1595
+ export interface StartFlowExecutionResponse {
1596
+ executionArn?: string | undefined;
1681
1597
  }
1682
- export declare const GuardrailTopicPolicyAction: {
1683
- readonly BLOCKED: "BLOCKED";
1684
- };
1685
- export type GuardrailTopicPolicyAction =
1686
- (typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
1687
- export declare const GuardrailTopicType: {
1688
- readonly DENY: "DENY";
1689
- };
1690
- export type GuardrailTopicType =
1691
- (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
1692
- export interface GuardrailTopic {
1693
- name?: string | undefined;
1694
- type?: GuardrailTopicType | undefined;
1695
- action?: GuardrailTopicPolicyAction | undefined;
1598
+ export interface StopFlowExecutionRequest {
1599
+ flowIdentifier: string | undefined;
1600
+ flowAliasIdentifier: string | undefined;
1601
+ executionIdentifier: string | undefined;
1696
1602
  }
1697
- export interface GuardrailTopicPolicyAssessment {
1698
- topics?: GuardrailTopic[] | undefined;
1603
+ export interface StopFlowExecutionResponse {
1604
+ executionArn?: string | undefined;
1605
+ status: FlowExecutionStatus | undefined;
1699
1606
  }
1700
- export declare const GuardrailWordPolicyAction: {
1701
- readonly BLOCKED: "BLOCKED";
1702
- };
1703
- export type GuardrailWordPolicyAction =
1704
- (typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
1705
- export interface GuardrailCustomWord {
1706
- match?: string | undefined;
1707
- action?: GuardrailWordPolicyAction | undefined;
1607
+ export interface InvokeFlowRequest {
1608
+ flowIdentifier: string | undefined;
1609
+ flowAliasIdentifier: string | undefined;
1610
+ inputs: FlowInput[] | undefined;
1611
+ enableTrace?: boolean | undefined;
1612
+ modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
1613
+ executionId?: string | undefined;
1708
1614
  }
1709
- export declare const GuardrailManagedWordType: {
1710
- readonly PROFANITY: "PROFANITY";
1615
+ export declare const FlowCompletionReason: {
1616
+ readonly INPUT_REQUIRED: "INPUT_REQUIRED";
1617
+ readonly SUCCESS: "SUCCESS";
1711
1618
  };
1712
- export type GuardrailManagedWordType =
1713
- (typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
1714
- export interface GuardrailManagedWord {
1715
- match?: string | undefined;
1716
- type?: GuardrailManagedWordType | undefined;
1717
- action?: GuardrailWordPolicyAction | undefined;
1718
- }
1719
- export interface GuardrailWordPolicyAssessment {
1720
- customWords?: GuardrailCustomWord[] | undefined;
1721
- managedWordLists?: GuardrailManagedWord[] | undefined;
1722
- }
1723
- export interface GuardrailAssessment {
1724
- topicPolicy?: GuardrailTopicPolicyAssessment | undefined;
1725
- contentPolicy?: GuardrailContentPolicyAssessment | undefined;
1726
- wordPolicy?: GuardrailWordPolicyAssessment | undefined;
1727
- sensitiveInformationPolicy?:
1728
- | GuardrailSensitiveInformationPolicyAssessment
1729
- | undefined;
1730
- }
1731
- export interface GuardrailTrace {
1732
- action?: GuardrailAction | undefined;
1733
- traceId?: string | undefined;
1734
- inputAssessments?: GuardrailAssessment[] | undefined;
1735
- outputAssessments?: GuardrailAssessment[] | undefined;
1736
- metadata?: Metadata | undefined;
1619
+ export type FlowCompletionReason =
1620
+ (typeof FlowCompletionReason)[keyof typeof FlowCompletionReason];
1621
+ export interface FlowCompletionEvent {
1622
+ completionReason: FlowCompletionReason | undefined;
1737
1623
  }
1738
- export interface CodeInterpreterInvocationInput {
1739
- code?: string | undefined;
1740
- files?: string[] | undefined;
1624
+ export type FlowMultiTurnInputContent =
1625
+ | FlowMultiTurnInputContent.DocumentMember
1626
+ | FlowMultiTurnInputContent.$UnknownMember;
1627
+ export declare namespace FlowMultiTurnInputContent {
1628
+ interface DocumentMember {
1629
+ document: __DocumentType;
1630
+ $unknown?: never;
1631
+ }
1632
+ interface $UnknownMember {
1633
+ document?: never;
1634
+ $unknown: [string, any];
1635
+ }
1636
+ interface Visitor<T> {
1637
+ document: (value: __DocumentType) => T;
1638
+ _: (name: string, value: any) => T;
1639
+ }
1640
+ const visit: <T>(value: FlowMultiTurnInputContent, visitor: Visitor<T>) => T;
1741
1641
  }
1742
- export declare const InvocationType: {
1743
- readonly ACTION_GROUP: "ACTION_GROUP";
1744
- readonly ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER";
1745
- readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
1746
- readonly FINISH: "FINISH";
1747
- readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
1642
+ export declare const NodeType: {
1643
+ readonly CONDITION_NODE: "ConditionNode";
1644
+ readonly FLOW_INPUT_NODE: "FlowInputNode";
1645
+ readonly FLOW_OUTPUT_NODE: "FlowOutputNode";
1646
+ readonly KNOWLEDGE_BASE_NODE: "KnowledgeBaseNode";
1647
+ readonly LAMBDA_FUNCTION_NODE: "LambdaFunctionNode";
1648
+ readonly LEX_NODE: "LexNode";
1649
+ readonly PROMPT_NODE: "PromptNode";
1748
1650
  };
1749
- export type InvocationType =
1750
- (typeof InvocationType)[keyof typeof InvocationType];
1751
- export interface KnowledgeBaseLookupInput {
1752
- text?: string | undefined;
1753
- knowledgeBaseId?: string | undefined;
1651
+ export type NodeType = (typeof NodeType)[keyof typeof NodeType];
1652
+ export interface FlowMultiTurnInputRequestEvent {
1653
+ nodeName: string | undefined;
1654
+ nodeType: NodeType | undefined;
1655
+ content: FlowMultiTurnInputContent | undefined;
1754
1656
  }
1755
- export interface InvocationInput {
1756
- traceId?: string | undefined;
1757
- invocationType?: InvocationType | undefined;
1758
- actionGroupInvocationInput?: ActionGroupInvocationInput | undefined;
1759
- knowledgeBaseLookupInput?: KnowledgeBaseLookupInput | undefined;
1760
- codeInterpreterInvocationInput?: CodeInterpreterInvocationInput | undefined;
1761
- agentCollaboratorInvocationInput?:
1762
- | AgentCollaboratorInvocationInput
1763
- | undefined;
1657
+ export type FlowOutputContent =
1658
+ | FlowOutputContent.DocumentMember
1659
+ | FlowOutputContent.$UnknownMember;
1660
+ export declare namespace FlowOutputContent {
1661
+ interface DocumentMember {
1662
+ document: __DocumentType;
1663
+ $unknown?: never;
1664
+ }
1665
+ interface $UnknownMember {
1666
+ document?: never;
1667
+ $unknown: [string, any];
1668
+ }
1669
+ interface Visitor<T> {
1670
+ document: (value: __DocumentType) => T;
1671
+ _: (name: string, value: any) => T;
1672
+ }
1673
+ const visit: <T>(value: FlowOutputContent, visitor: Visitor<T>) => T;
1764
1674
  }
1765
- export interface InferenceConfiguration {
1766
- temperature?: number | undefined;
1767
- topP?: number | undefined;
1768
- topK?: number | undefined;
1769
- maximumLength?: number | undefined;
1770
- stopSequences?: string[] | undefined;
1675
+ export interface FlowOutputEvent {
1676
+ nodeName: string | undefined;
1677
+ nodeType: NodeType | undefined;
1678
+ content: FlowOutputContent | undefined;
1771
1679
  }
1772
- export declare const CreationMode: {
1773
- readonly DEFAULT: "DEFAULT";
1774
- readonly OVERRIDDEN: "OVERRIDDEN";
1775
- };
1776
- export type CreationMode = (typeof CreationMode)[keyof typeof CreationMode];
1777
- export declare const PromptType: {
1778
- readonly KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION";
1779
- readonly ORCHESTRATION: "ORCHESTRATION";
1780
- readonly POST_PROCESSING: "POST_PROCESSING";
1781
- readonly PRE_PROCESSING: "PRE_PROCESSING";
1782
- readonly ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER";
1783
- };
1784
- export type PromptType = (typeof PromptType)[keyof typeof PromptType];
1785
- export interface ModelInvocationInput {
1786
- traceId?: string | undefined;
1787
- text?: string | undefined;
1788
- type?: PromptType | undefined;
1789
- overrideLambda?: string | undefined;
1790
- promptCreationMode?: CreationMode | undefined;
1791
- inferenceConfiguration?: InferenceConfiguration | undefined;
1792
- parserMode?: CreationMode | undefined;
1793
- foundationModel?: string | undefined;
1680
+ export interface FlowTraceCondition {
1681
+ conditionName: string | undefined;
1794
1682
  }
1795
- export interface RawResponse {
1796
- content?: string | undefined;
1683
+ export interface FlowTraceConditionNodeResultEvent {
1684
+ nodeName: string | undefined;
1685
+ timestamp: Date | undefined;
1686
+ satisfiedConditions: FlowTraceCondition[] | undefined;
1797
1687
  }
1798
- export interface ReasoningTextBlock {
1799
- text: string | undefined;
1800
- signature?: string | undefined;
1688
+ export interface FlowTraceNodeActionEvent {
1689
+ nodeName: string | undefined;
1690
+ timestamp: Date | undefined;
1691
+ requestId: string | undefined;
1692
+ serviceName: string | undefined;
1693
+ operationName: string | undefined;
1694
+ operationRequest?: __DocumentType | undefined;
1695
+ operationResponse?: __DocumentType | undefined;
1801
1696
  }
1802
- export type ReasoningContentBlock =
1803
- | ReasoningContentBlock.ReasoningTextMember
1804
- | ReasoningContentBlock.RedactedContentMember
1805
- | ReasoningContentBlock.$UnknownMember;
1806
- export declare namespace ReasoningContentBlock {
1807
- interface ReasoningTextMember {
1808
- reasoningText: ReasoningTextBlock;
1809
- redactedContent?: never;
1697
+ export type TraceElements =
1698
+ | TraceElements.AgentTracesMember
1699
+ | TraceElements.$UnknownMember;
1700
+ export declare namespace TraceElements {
1701
+ interface AgentTracesMember {
1702
+ agentTraces: TracePart[];
1810
1703
  $unknown?: never;
1811
1704
  }
1812
- interface RedactedContentMember {
1813
- reasoningText?: never;
1814
- redactedContent: Uint8Array;
1705
+ interface $UnknownMember {
1706
+ agentTraces?: never;
1707
+ $unknown: [string, any];
1708
+ }
1709
+ interface Visitor<T> {
1710
+ agentTraces: (value: TracePart[]) => T;
1711
+ _: (name: string, value: any) => T;
1712
+ }
1713
+ const visit: <T>(value: TraceElements, visitor: Visitor<T>) => T;
1714
+ }
1715
+ export interface FlowTraceDependencyEvent {
1716
+ nodeName: string | undefined;
1717
+ timestamp: Date | undefined;
1718
+ traceElements: TraceElements | undefined;
1719
+ }
1720
+ export type FlowTraceNodeInputContent =
1721
+ | FlowTraceNodeInputContent.DocumentMember
1722
+ | FlowTraceNodeInputContent.$UnknownMember;
1723
+ export declare namespace FlowTraceNodeInputContent {
1724
+ interface DocumentMember {
1725
+ document: __DocumentType;
1815
1726
  $unknown?: never;
1816
1727
  }
1817
1728
  interface $UnknownMember {
1818
- reasoningText?: never;
1819
- redactedContent?: never;
1729
+ document?: never;
1820
1730
  $unknown: [string, any];
1821
1731
  }
1822
1732
  interface Visitor<T> {
1823
- reasoningText: (value: ReasoningTextBlock) => T;
1824
- redactedContent: (value: Uint8Array) => T;
1733
+ document: (value: __DocumentType) => T;
1825
1734
  _: (name: string, value: any) => T;
1826
1735
  }
1827
- const visit: <T>(value: ReasoningContentBlock, visitor: Visitor<T>) => T;
1736
+ const visit: <T>(value: FlowTraceNodeInputContent, visitor: Visitor<T>) => T;
1828
1737
  }
1829
- export interface OrchestrationModelInvocationOutput {
1830
- traceId?: string | undefined;
1831
- rawResponse?: RawResponse | undefined;
1832
- metadata?: Metadata | undefined;
1833
- reasoningContent?: ReasoningContentBlock | undefined;
1738
+ export interface FlowTraceNodeInputExecutionChainItem {
1739
+ nodeName: string | undefined;
1740
+ index?: number | undefined;
1741
+ type: FlowControlNodeType | undefined;
1834
1742
  }
1835
- export interface CodeInterpreterInvocationOutput {
1836
- executionOutput?: string | undefined;
1837
- executionError?: string | undefined;
1838
- files?: string[] | undefined;
1839
- executionTimeout?: boolean | undefined;
1840
- metadata?: Metadata | undefined;
1743
+ export interface FlowTraceNodeInputSource {
1744
+ nodeName: string | undefined;
1745
+ outputFieldName: string | undefined;
1746
+ expression: string | undefined;
1841
1747
  }
1842
- export interface FinalResponse {
1843
- text?: string | undefined;
1844
- metadata?: Metadata | undefined;
1748
+ export interface FlowTraceNodeInputField {
1749
+ nodeInputName: string | undefined;
1750
+ content: FlowTraceNodeInputContent | undefined;
1751
+ source?: FlowTraceNodeInputSource | undefined;
1752
+ type?: FlowNodeIODataType | undefined;
1753
+ category?: FlowNodeInputCategory | undefined;
1754
+ executionChain?: FlowTraceNodeInputExecutionChainItem[] | undefined;
1845
1755
  }
1846
- export interface KnowledgeBaseLookupOutput {
1847
- retrievedReferences?: RetrievedReference[] | undefined;
1848
- metadata?: Metadata | undefined;
1756
+ export interface FlowTraceNodeInputEvent {
1757
+ nodeName: string | undefined;
1758
+ timestamp: Date | undefined;
1759
+ fields: FlowTraceNodeInputField[] | undefined;
1849
1760
  }
1850
- export declare const Source: {
1851
- readonly ACTION_GROUP: "ACTION_GROUP";
1852
- readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
1853
- readonly PARSER: "PARSER";
1854
- };
1855
- export type Source = (typeof Source)[keyof typeof Source];
1856
- export interface RepromptResponse {
1857
- text?: string | undefined;
1858
- source?: Source | undefined;
1761
+ export type FlowTraceNodeOutputContent =
1762
+ | FlowTraceNodeOutputContent.DocumentMember
1763
+ | FlowTraceNodeOutputContent.$UnknownMember;
1764
+ export declare namespace FlowTraceNodeOutputContent {
1765
+ interface DocumentMember {
1766
+ document: __DocumentType;
1767
+ $unknown?: never;
1768
+ }
1769
+ interface $UnknownMember {
1770
+ document?: never;
1771
+ $unknown: [string, any];
1772
+ }
1773
+ interface Visitor<T> {
1774
+ document: (value: __DocumentType) => T;
1775
+ _: (name: string, value: any) => T;
1776
+ }
1777
+ const visit: <T>(value: FlowTraceNodeOutputContent, visitor: Visitor<T>) => T;
1859
1778
  }
1860
- export declare const Type: {
1861
- readonly ACTION_GROUP: "ACTION_GROUP";
1862
- readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
1863
- readonly ASK_USER: "ASK_USER";
1864
- readonly FINISH: "FINISH";
1865
- readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
1866
- readonly REPROMPT: "REPROMPT";
1867
- };
1868
- export type Type = (typeof Type)[keyof typeof Type];
1869
- export interface Observation {
1870
- traceId?: string | undefined;
1871
- type?: Type | undefined;
1872
- actionGroupInvocationOutput?: ActionGroupInvocationOutput | undefined;
1873
- agentCollaboratorInvocationOutput?:
1874
- | AgentCollaboratorInvocationOutput
1875
- | undefined;
1876
- knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput | undefined;
1877
- finalResponse?: FinalResponse | undefined;
1878
- repromptResponse?: RepromptResponse | undefined;
1879
- codeInterpreterInvocationOutput?: CodeInterpreterInvocationOutput | undefined;
1779
+ export interface FlowTraceNodeOutputNext {
1780
+ nodeName: string | undefined;
1781
+ inputFieldName: string | undefined;
1880
1782
  }
1881
- export interface Rationale {
1882
- traceId?: string | undefined;
1883
- text?: string | undefined;
1783
+ export interface FlowTraceNodeOutputField {
1784
+ nodeOutputName: string | undefined;
1785
+ content: FlowTraceNodeOutputContent | undefined;
1786
+ next?: FlowTraceNodeOutputNext[] | undefined;
1787
+ type?: FlowNodeIODataType | undefined;
1884
1788
  }
1885
- export type OrchestrationTrace =
1886
- | OrchestrationTrace.InvocationInputMember
1887
- | OrchestrationTrace.ModelInvocationInputMember
1888
- | OrchestrationTrace.ModelInvocationOutputMember
1889
- | OrchestrationTrace.ObservationMember
1890
- | OrchestrationTrace.RationaleMember
1891
- | OrchestrationTrace.$UnknownMember;
1892
- export declare namespace OrchestrationTrace {
1893
- interface RationaleMember {
1894
- rationale: Rationale;
1895
- invocationInput?: never;
1896
- observation?: never;
1897
- modelInvocationInput?: never;
1898
- modelInvocationOutput?: never;
1789
+ export interface FlowTraceNodeOutputEvent {
1790
+ nodeName: string | undefined;
1791
+ timestamp: Date | undefined;
1792
+ fields: FlowTraceNodeOutputField[] | undefined;
1793
+ }
1794
+ export type FlowTrace =
1795
+ | FlowTrace.ConditionNodeResultTraceMember
1796
+ | FlowTrace.NodeActionTraceMember
1797
+ | FlowTrace.NodeDependencyTraceMember
1798
+ | FlowTrace.NodeInputTraceMember
1799
+ | FlowTrace.NodeOutputTraceMember
1800
+ | FlowTrace.$UnknownMember;
1801
+ export declare namespace FlowTrace {
1802
+ interface NodeInputTraceMember {
1803
+ nodeInputTrace: FlowTraceNodeInputEvent;
1804
+ nodeOutputTrace?: never;
1805
+ conditionNodeResultTrace?: never;
1806
+ nodeActionTrace?: never;
1807
+ nodeDependencyTrace?: never;
1899
1808
  $unknown?: never;
1900
1809
  }
1901
- interface InvocationInputMember {
1902
- rationale?: never;
1903
- invocationInput: InvocationInput;
1904
- observation?: never;
1905
- modelInvocationInput?: never;
1906
- modelInvocationOutput?: never;
1810
+ interface NodeOutputTraceMember {
1811
+ nodeInputTrace?: never;
1812
+ nodeOutputTrace: FlowTraceNodeOutputEvent;
1813
+ conditionNodeResultTrace?: never;
1814
+ nodeActionTrace?: never;
1815
+ nodeDependencyTrace?: never;
1907
1816
  $unknown?: never;
1908
1817
  }
1909
- interface ObservationMember {
1910
- rationale?: never;
1911
- invocationInput?: never;
1912
- observation: Observation;
1913
- modelInvocationInput?: never;
1914
- modelInvocationOutput?: never;
1818
+ interface ConditionNodeResultTraceMember {
1819
+ nodeInputTrace?: never;
1820
+ nodeOutputTrace?: never;
1821
+ conditionNodeResultTrace: FlowTraceConditionNodeResultEvent;
1822
+ nodeActionTrace?: never;
1823
+ nodeDependencyTrace?: never;
1915
1824
  $unknown?: never;
1916
1825
  }
1917
- interface ModelInvocationInputMember {
1918
- rationale?: never;
1919
- invocationInput?: never;
1920
- observation?: never;
1921
- modelInvocationInput: ModelInvocationInput;
1922
- modelInvocationOutput?: never;
1826
+ interface NodeActionTraceMember {
1827
+ nodeInputTrace?: never;
1828
+ nodeOutputTrace?: never;
1829
+ conditionNodeResultTrace?: never;
1830
+ nodeActionTrace: FlowTraceNodeActionEvent;
1831
+ nodeDependencyTrace?: never;
1923
1832
  $unknown?: never;
1924
1833
  }
1925
- interface ModelInvocationOutputMember {
1926
- rationale?: never;
1927
- invocationInput?: never;
1928
- observation?: never;
1929
- modelInvocationInput?: never;
1930
- modelInvocationOutput: OrchestrationModelInvocationOutput;
1834
+ interface NodeDependencyTraceMember {
1835
+ nodeInputTrace?: never;
1836
+ nodeOutputTrace?: never;
1837
+ conditionNodeResultTrace?: never;
1838
+ nodeActionTrace?: never;
1839
+ nodeDependencyTrace: FlowTraceDependencyEvent;
1931
1840
  $unknown?: never;
1932
1841
  }
1933
1842
  interface $UnknownMember {
1934
- rationale?: never;
1935
- invocationInput?: never;
1936
- observation?: never;
1937
- modelInvocationInput?: never;
1938
- modelInvocationOutput?: never;
1843
+ nodeInputTrace?: never;
1844
+ nodeOutputTrace?: never;
1845
+ conditionNodeResultTrace?: never;
1846
+ nodeActionTrace?: never;
1847
+ nodeDependencyTrace?: never;
1939
1848
  $unknown: [string, any];
1940
1849
  }
1941
1850
  interface Visitor<T> {
1942
- rationale: (value: Rationale) => T;
1943
- invocationInput: (value: InvocationInput) => T;
1944
- observation: (value: Observation) => T;
1945
- modelInvocationInput: (value: ModelInvocationInput) => T;
1946
- modelInvocationOutput: (value: OrchestrationModelInvocationOutput) => T;
1851
+ nodeInputTrace: (value: FlowTraceNodeInputEvent) => T;
1852
+ nodeOutputTrace: (value: FlowTraceNodeOutputEvent) => T;
1853
+ conditionNodeResultTrace: (value: FlowTraceConditionNodeResultEvent) => T;
1854
+ nodeActionTrace: (value: FlowTraceNodeActionEvent) => T;
1855
+ nodeDependencyTrace: (value: FlowTraceDependencyEvent) => T;
1947
1856
  _: (name: string, value: any) => T;
1948
1857
  }
1949
- const visit: <T>(value: OrchestrationTrace, visitor: Visitor<T>) => T;
1950
- }
1951
- export interface PostProcessingParsedResponse {
1952
- text?: string | undefined;
1858
+ const visit: <T>(value: FlowTrace, visitor: Visitor<T>) => T;
1953
1859
  }
1954
- export interface PostProcessingModelInvocationOutput {
1955
- traceId?: string | undefined;
1956
- parsedResponse?: PostProcessingParsedResponse | undefined;
1957
- rawResponse?: RawResponse | undefined;
1958
- metadata?: Metadata | undefined;
1959
- reasoningContent?: ReasoningContentBlock | undefined;
1860
+ export interface FlowTraceEvent {
1861
+ trace: FlowTrace | undefined;
1960
1862
  }
1961
- export type PostProcessingTrace =
1962
- | PostProcessingTrace.ModelInvocationInputMember
1963
- | PostProcessingTrace.ModelInvocationOutputMember
1964
- | PostProcessingTrace.$UnknownMember;
1965
- export declare namespace PostProcessingTrace {
1966
- interface ModelInvocationInputMember {
1967
- modelInvocationInput: ModelInvocationInput;
1968
- modelInvocationOutput?: never;
1863
+ export type FlowResponseStream =
1864
+ | FlowResponseStream.AccessDeniedExceptionMember
1865
+ | FlowResponseStream.BadGatewayExceptionMember
1866
+ | FlowResponseStream.ConflictExceptionMember
1867
+ | FlowResponseStream.DependencyFailedExceptionMember
1868
+ | FlowResponseStream.FlowCompletionEventMember
1869
+ | FlowResponseStream.FlowMultiTurnInputRequestEventMember
1870
+ | FlowResponseStream.FlowOutputEventMember
1871
+ | FlowResponseStream.FlowTraceEventMember
1872
+ | FlowResponseStream.InternalServerExceptionMember
1873
+ | FlowResponseStream.ResourceNotFoundExceptionMember
1874
+ | FlowResponseStream.ServiceQuotaExceededExceptionMember
1875
+ | FlowResponseStream.ThrottlingExceptionMember
1876
+ | FlowResponseStream.ValidationExceptionMember
1877
+ | FlowResponseStream.$UnknownMember;
1878
+ export declare namespace FlowResponseStream {
1879
+ interface FlowOutputEventMember {
1880
+ flowOutputEvent: FlowOutputEvent;
1881
+ flowCompletionEvent?: never;
1882
+ flowTraceEvent?: never;
1883
+ internalServerException?: never;
1884
+ validationException?: never;
1885
+ resourceNotFoundException?: never;
1886
+ serviceQuotaExceededException?: never;
1887
+ throttlingException?: never;
1888
+ accessDeniedException?: never;
1889
+ conflictException?: never;
1890
+ dependencyFailedException?: never;
1891
+ badGatewayException?: never;
1892
+ flowMultiTurnInputRequestEvent?: never;
1969
1893
  $unknown?: never;
1970
1894
  }
1971
- interface ModelInvocationOutputMember {
1972
- modelInvocationInput?: never;
1973
- modelInvocationOutput: PostProcessingModelInvocationOutput;
1895
+ interface FlowCompletionEventMember {
1896
+ flowOutputEvent?: never;
1897
+ flowCompletionEvent: FlowCompletionEvent;
1898
+ flowTraceEvent?: never;
1899
+ internalServerException?: never;
1900
+ validationException?: never;
1901
+ resourceNotFoundException?: never;
1902
+ serviceQuotaExceededException?: never;
1903
+ throttlingException?: never;
1904
+ accessDeniedException?: never;
1905
+ conflictException?: never;
1906
+ dependencyFailedException?: never;
1907
+ badGatewayException?: never;
1908
+ flowMultiTurnInputRequestEvent?: never;
1974
1909
  $unknown?: never;
1975
1910
  }
1976
- interface $UnknownMember {
1977
- modelInvocationInput?: never;
1978
- modelInvocationOutput?: never;
1979
- $unknown: [string, any];
1911
+ interface FlowTraceEventMember {
1912
+ flowOutputEvent?: never;
1913
+ flowCompletionEvent?: never;
1914
+ flowTraceEvent: FlowTraceEvent;
1915
+ internalServerException?: never;
1916
+ validationException?: never;
1917
+ resourceNotFoundException?: never;
1918
+ serviceQuotaExceededException?: never;
1919
+ throttlingException?: never;
1920
+ accessDeniedException?: never;
1921
+ conflictException?: never;
1922
+ dependencyFailedException?: never;
1923
+ badGatewayException?: never;
1924
+ flowMultiTurnInputRequestEvent?: never;
1925
+ $unknown?: never;
1980
1926
  }
1981
- interface Visitor<T> {
1982
- modelInvocationInput: (value: ModelInvocationInput) => T;
1983
- modelInvocationOutput: (value: PostProcessingModelInvocationOutput) => T;
1984
- _: (name: string, value: any) => T;
1927
+ interface InternalServerExceptionMember {
1928
+ flowOutputEvent?: never;
1929
+ flowCompletionEvent?: never;
1930
+ flowTraceEvent?: never;
1931
+ internalServerException: InternalServerException;
1932
+ validationException?: never;
1933
+ resourceNotFoundException?: never;
1934
+ serviceQuotaExceededException?: never;
1935
+ throttlingException?: never;
1936
+ accessDeniedException?: never;
1937
+ conflictException?: never;
1938
+ dependencyFailedException?: never;
1939
+ badGatewayException?: never;
1940
+ flowMultiTurnInputRequestEvent?: never;
1941
+ $unknown?: never;
1985
1942
  }
1986
- const visit: <T>(value: PostProcessingTrace, visitor: Visitor<T>) => T;
1987
- }
1988
- export interface PreProcessingParsedResponse {
1989
- rationale?: string | undefined;
1990
- isValid?: boolean | undefined;
1991
- }
1992
- export interface PreProcessingModelInvocationOutput {
1993
- traceId?: string | undefined;
1994
- parsedResponse?: PreProcessingParsedResponse | undefined;
1995
- rawResponse?: RawResponse | undefined;
1996
- metadata?: Metadata | undefined;
1997
- reasoningContent?: ReasoningContentBlock | undefined;
1998
- }
1999
- export type PreProcessingTrace =
2000
- | PreProcessingTrace.ModelInvocationInputMember
2001
- | PreProcessingTrace.ModelInvocationOutputMember
2002
- | PreProcessingTrace.$UnknownMember;
2003
- export declare namespace PreProcessingTrace {
2004
- interface ModelInvocationInputMember {
2005
- modelInvocationInput: ModelInvocationInput;
2006
- modelInvocationOutput?: never;
1943
+ interface ValidationExceptionMember {
1944
+ flowOutputEvent?: never;
1945
+ flowCompletionEvent?: never;
1946
+ flowTraceEvent?: never;
1947
+ internalServerException?: never;
1948
+ validationException: ValidationException;
1949
+ resourceNotFoundException?: never;
1950
+ serviceQuotaExceededException?: never;
1951
+ throttlingException?: never;
1952
+ accessDeniedException?: never;
1953
+ conflictException?: never;
1954
+ dependencyFailedException?: never;
1955
+ badGatewayException?: never;
1956
+ flowMultiTurnInputRequestEvent?: never;
2007
1957
  $unknown?: never;
2008
1958
  }
2009
- interface ModelInvocationOutputMember {
2010
- modelInvocationInput?: never;
2011
- modelInvocationOutput: PreProcessingModelInvocationOutput;
1959
+ interface ResourceNotFoundExceptionMember {
1960
+ flowOutputEvent?: never;
1961
+ flowCompletionEvent?: never;
1962
+ flowTraceEvent?: never;
1963
+ internalServerException?: never;
1964
+ validationException?: never;
1965
+ resourceNotFoundException: ResourceNotFoundException;
1966
+ serviceQuotaExceededException?: never;
1967
+ throttlingException?: never;
1968
+ accessDeniedException?: never;
1969
+ conflictException?: never;
1970
+ dependencyFailedException?: never;
1971
+ badGatewayException?: never;
1972
+ flowMultiTurnInputRequestEvent?: never;
1973
+ $unknown?: never;
1974
+ }
1975
+ interface ServiceQuotaExceededExceptionMember {
1976
+ flowOutputEvent?: never;
1977
+ flowCompletionEvent?: never;
1978
+ flowTraceEvent?: never;
1979
+ internalServerException?: never;
1980
+ validationException?: never;
1981
+ resourceNotFoundException?: never;
1982
+ serviceQuotaExceededException: ServiceQuotaExceededException;
1983
+ throttlingException?: never;
1984
+ accessDeniedException?: never;
1985
+ conflictException?: never;
1986
+ dependencyFailedException?: never;
1987
+ badGatewayException?: never;
1988
+ flowMultiTurnInputRequestEvent?: never;
1989
+ $unknown?: never;
1990
+ }
1991
+ interface ThrottlingExceptionMember {
1992
+ flowOutputEvent?: never;
1993
+ flowCompletionEvent?: never;
1994
+ flowTraceEvent?: never;
1995
+ internalServerException?: never;
1996
+ validationException?: never;
1997
+ resourceNotFoundException?: never;
1998
+ serviceQuotaExceededException?: never;
1999
+ throttlingException: ThrottlingException;
2000
+ accessDeniedException?: never;
2001
+ conflictException?: never;
2002
+ dependencyFailedException?: never;
2003
+ badGatewayException?: never;
2004
+ flowMultiTurnInputRequestEvent?: never;
2005
+ $unknown?: never;
2006
+ }
2007
+ interface AccessDeniedExceptionMember {
2008
+ flowOutputEvent?: never;
2009
+ flowCompletionEvent?: never;
2010
+ flowTraceEvent?: never;
2011
+ internalServerException?: never;
2012
+ validationException?: never;
2013
+ resourceNotFoundException?: never;
2014
+ serviceQuotaExceededException?: never;
2015
+ throttlingException?: never;
2016
+ accessDeniedException: AccessDeniedException;
2017
+ conflictException?: never;
2018
+ dependencyFailedException?: never;
2019
+ badGatewayException?: never;
2020
+ flowMultiTurnInputRequestEvent?: never;
2012
2021
  $unknown?: never;
2013
2022
  }
2014
- interface $UnknownMember {
2015
- modelInvocationInput?: never;
2016
- modelInvocationOutput?: never;
2017
- $unknown: [string, any];
2018
- }
2019
- interface Visitor<T> {
2020
- modelInvocationInput: (value: ModelInvocationInput) => T;
2021
- modelInvocationOutput: (value: PreProcessingModelInvocationOutput) => T;
2022
- _: (name: string, value: any) => T;
2023
- }
2024
- const visit: <T>(value: PreProcessingTrace, visitor: Visitor<T>) => T;
2025
- }
2026
- export interface RoutingClassifierModelInvocationOutput {
2027
- traceId?: string | undefined;
2028
- rawResponse?: RawResponse | undefined;
2029
- metadata?: Metadata | undefined;
2030
- }
2031
- export type RoutingClassifierTrace =
2032
- | RoutingClassifierTrace.InvocationInputMember
2033
- | RoutingClassifierTrace.ModelInvocationInputMember
2034
- | RoutingClassifierTrace.ModelInvocationOutputMember
2035
- | RoutingClassifierTrace.ObservationMember
2036
- | RoutingClassifierTrace.$UnknownMember;
2037
- export declare namespace RoutingClassifierTrace {
2038
- interface InvocationInputMember {
2039
- invocationInput: InvocationInput;
2040
- observation?: never;
2041
- modelInvocationInput?: never;
2042
- modelInvocationOutput?: never;
2023
+ interface ConflictExceptionMember {
2024
+ flowOutputEvent?: never;
2025
+ flowCompletionEvent?: never;
2026
+ flowTraceEvent?: never;
2027
+ internalServerException?: never;
2028
+ validationException?: never;
2029
+ resourceNotFoundException?: never;
2030
+ serviceQuotaExceededException?: never;
2031
+ throttlingException?: never;
2032
+ accessDeniedException?: never;
2033
+ conflictException: ConflictException;
2034
+ dependencyFailedException?: never;
2035
+ badGatewayException?: never;
2036
+ flowMultiTurnInputRequestEvent?: never;
2043
2037
  $unknown?: never;
2044
2038
  }
2045
- interface ObservationMember {
2046
- invocationInput?: never;
2047
- observation: Observation;
2048
- modelInvocationInput?: never;
2049
- modelInvocationOutput?: never;
2039
+ interface DependencyFailedExceptionMember {
2040
+ flowOutputEvent?: never;
2041
+ flowCompletionEvent?: never;
2042
+ flowTraceEvent?: never;
2043
+ internalServerException?: never;
2044
+ validationException?: never;
2045
+ resourceNotFoundException?: never;
2046
+ serviceQuotaExceededException?: never;
2047
+ throttlingException?: never;
2048
+ accessDeniedException?: never;
2049
+ conflictException?: never;
2050
+ dependencyFailedException: DependencyFailedException;
2051
+ badGatewayException?: never;
2052
+ flowMultiTurnInputRequestEvent?: never;
2050
2053
  $unknown?: never;
2051
2054
  }
2052
- interface ModelInvocationInputMember {
2053
- invocationInput?: never;
2054
- observation?: never;
2055
- modelInvocationInput: ModelInvocationInput;
2056
- modelInvocationOutput?: never;
2055
+ interface BadGatewayExceptionMember {
2056
+ flowOutputEvent?: never;
2057
+ flowCompletionEvent?: never;
2058
+ flowTraceEvent?: never;
2059
+ internalServerException?: never;
2060
+ validationException?: never;
2061
+ resourceNotFoundException?: never;
2062
+ serviceQuotaExceededException?: never;
2063
+ throttlingException?: never;
2064
+ accessDeniedException?: never;
2065
+ conflictException?: never;
2066
+ dependencyFailedException?: never;
2067
+ badGatewayException: BadGatewayException;
2068
+ flowMultiTurnInputRequestEvent?: never;
2057
2069
  $unknown?: never;
2058
2070
  }
2059
- interface ModelInvocationOutputMember {
2060
- invocationInput?: never;
2061
- observation?: never;
2062
- modelInvocationInput?: never;
2063
- modelInvocationOutput: RoutingClassifierModelInvocationOutput;
2071
+ interface FlowMultiTurnInputRequestEventMember {
2072
+ flowOutputEvent?: never;
2073
+ flowCompletionEvent?: never;
2074
+ flowTraceEvent?: never;
2075
+ internalServerException?: never;
2076
+ validationException?: never;
2077
+ resourceNotFoundException?: never;
2078
+ serviceQuotaExceededException?: never;
2079
+ throttlingException?: never;
2080
+ accessDeniedException?: never;
2081
+ conflictException?: never;
2082
+ dependencyFailedException?: never;
2083
+ badGatewayException?: never;
2084
+ flowMultiTurnInputRequestEvent: FlowMultiTurnInputRequestEvent;
2064
2085
  $unknown?: never;
2065
2086
  }
2066
2087
  interface $UnknownMember {
2067
- invocationInput?: never;
2068
- observation?: never;
2069
- modelInvocationInput?: never;
2070
- modelInvocationOutput?: never;
2088
+ flowOutputEvent?: never;
2089
+ flowCompletionEvent?: never;
2090
+ flowTraceEvent?: never;
2091
+ internalServerException?: never;
2092
+ validationException?: never;
2093
+ resourceNotFoundException?: never;
2094
+ serviceQuotaExceededException?: never;
2095
+ throttlingException?: never;
2096
+ accessDeniedException?: never;
2097
+ conflictException?: never;
2098
+ dependencyFailedException?: never;
2099
+ badGatewayException?: never;
2100
+ flowMultiTurnInputRequestEvent?: never;
2071
2101
  $unknown: [string, any];
2072
2102
  }
2073
2103
  interface Visitor<T> {
2074
- invocationInput: (value: InvocationInput) => T;
2075
- observation: (value: Observation) => T;
2076
- modelInvocationInput: (value: ModelInvocationInput) => T;
2077
- modelInvocationOutput: (value: RoutingClassifierModelInvocationOutput) => T;
2104
+ flowOutputEvent: (value: FlowOutputEvent) => T;
2105
+ flowCompletionEvent: (value: FlowCompletionEvent) => T;
2106
+ flowTraceEvent: (value: FlowTraceEvent) => T;
2107
+ internalServerException: (value: InternalServerException) => T;
2108
+ validationException: (value: ValidationException) => T;
2109
+ resourceNotFoundException: (value: ResourceNotFoundException) => T;
2110
+ serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
2111
+ throttlingException: (value: ThrottlingException) => T;
2112
+ accessDeniedException: (value: AccessDeniedException) => T;
2113
+ conflictException: (value: ConflictException) => T;
2114
+ dependencyFailedException: (value: DependencyFailedException) => T;
2115
+ badGatewayException: (value: BadGatewayException) => T;
2116
+ flowMultiTurnInputRequestEvent: (
2117
+ value: FlowMultiTurnInputRequestEvent
2118
+ ) => T;
2078
2119
  _: (name: string, value: any) => T;
2079
2120
  }
2080
- const visit: <T>(value: RoutingClassifierTrace, visitor: Visitor<T>) => T;
2121
+ const visit: <T>(value: FlowResponseStream, visitor: Visitor<T>) => T;
2081
2122
  }
2082
- export type Trace =
2083
- | Trace.CustomOrchestrationTraceMember
2084
- | Trace.FailureTraceMember
2085
- | Trace.GuardrailTraceMember
2086
- | Trace.OrchestrationTraceMember
2087
- | Trace.PostProcessingTraceMember
2088
- | Trace.PreProcessingTraceMember
2089
- | Trace.RoutingClassifierTraceMember
2090
- | Trace.$UnknownMember;
2091
- export declare namespace Trace {
2092
- interface GuardrailTraceMember {
2093
- guardrailTrace: GuardrailTrace;
2094
- preProcessingTrace?: never;
2095
- orchestrationTrace?: never;
2096
- postProcessingTrace?: never;
2097
- routingClassifierTrace?: never;
2098
- failureTrace?: never;
2099
- customOrchestrationTrace?: never;
2100
- $unknown?: never;
2101
- }
2102
- interface PreProcessingTraceMember {
2103
- guardrailTrace?: never;
2104
- preProcessingTrace: PreProcessingTrace;
2105
- orchestrationTrace?: never;
2106
- postProcessingTrace?: never;
2107
- routingClassifierTrace?: never;
2108
- failureTrace?: never;
2109
- customOrchestrationTrace?: never;
2110
- $unknown?: never;
2111
- }
2112
- interface OrchestrationTraceMember {
2113
- guardrailTrace?: never;
2114
- preProcessingTrace?: never;
2115
- orchestrationTrace: OrchestrationTrace;
2116
- postProcessingTrace?: never;
2117
- routingClassifierTrace?: never;
2118
- failureTrace?: never;
2119
- customOrchestrationTrace?: never;
2120
- $unknown?: never;
2121
- }
2122
- interface PostProcessingTraceMember {
2123
- guardrailTrace?: never;
2124
- preProcessingTrace?: never;
2125
- orchestrationTrace?: never;
2126
- postProcessingTrace: PostProcessingTrace;
2127
- routingClassifierTrace?: never;
2128
- failureTrace?: never;
2129
- customOrchestrationTrace?: never;
2130
- $unknown?: never;
2131
- }
2132
- interface RoutingClassifierTraceMember {
2133
- guardrailTrace?: never;
2134
- preProcessingTrace?: never;
2135
- orchestrationTrace?: never;
2136
- postProcessingTrace?: never;
2137
- routingClassifierTrace: RoutingClassifierTrace;
2138
- failureTrace?: never;
2139
- customOrchestrationTrace?: never;
2123
+ export interface InvokeFlowResponse {
2124
+ responseStream: AsyncIterable<FlowResponseStream> | undefined;
2125
+ executionId?: string | undefined;
2126
+ }
2127
+ export declare const InputQueryType: {
2128
+ readonly TEXT: "TEXT";
2129
+ };
2130
+ export type InputQueryType =
2131
+ (typeof InputQueryType)[keyof typeof InputQueryType];
2132
+ export interface QueryGenerationInput {
2133
+ type: InputQueryType | undefined;
2134
+ text: string | undefined;
2135
+ }
2136
+ export declare const QueryTransformationMode: {
2137
+ readonly TEXT_TO_SQL: "TEXT_TO_SQL";
2138
+ };
2139
+ export type QueryTransformationMode =
2140
+ (typeof QueryTransformationMode)[keyof typeof QueryTransformationMode];
2141
+ export interface TextToSqlKnowledgeBaseConfiguration {
2142
+ knowledgeBaseArn: string | undefined;
2143
+ }
2144
+ export declare const TextToSqlConfigurationType: {
2145
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
2146
+ };
2147
+ export type TextToSqlConfigurationType =
2148
+ (typeof TextToSqlConfigurationType)[keyof typeof TextToSqlConfigurationType];
2149
+ export interface TextToSqlConfiguration {
2150
+ type: TextToSqlConfigurationType | undefined;
2151
+ knowledgeBaseConfiguration?: TextToSqlKnowledgeBaseConfiguration | undefined;
2152
+ }
2153
+ export interface TransformationConfiguration {
2154
+ mode: QueryTransformationMode | undefined;
2155
+ textToSqlConfiguration?: TextToSqlConfiguration | undefined;
2156
+ }
2157
+ export interface GenerateQueryRequest {
2158
+ queryGenerationInput: QueryGenerationInput | undefined;
2159
+ transformationConfiguration: TransformationConfiguration | undefined;
2160
+ }
2161
+ export declare const GeneratedQueryType: {
2162
+ readonly REDSHIFT_SQL: "REDSHIFT_SQL";
2163
+ };
2164
+ export type GeneratedQueryType =
2165
+ (typeof GeneratedQueryType)[keyof typeof GeneratedQueryType];
2166
+ export interface GeneratedQuery {
2167
+ type?: GeneratedQueryType | undefined;
2168
+ sql?: string | undefined;
2169
+ }
2170
+ export interface GenerateQueryResponse {
2171
+ queries?: GeneratedQuery[] | undefined;
2172
+ }
2173
+ export interface BedrockModelConfigurations {
2174
+ performanceConfig?: PerformanceConfiguration | undefined;
2175
+ }
2176
+ export interface PromptCreationConfigurations {
2177
+ previousConversationTurnsToInclude?: number | undefined;
2178
+ excludePreviousThinkingSteps?: boolean | undefined;
2179
+ }
2180
+ export type ContentBlock =
2181
+ | ContentBlock.TextMember
2182
+ | ContentBlock.$UnknownMember;
2183
+ export declare namespace ContentBlock {
2184
+ interface TextMember {
2185
+ text: string;
2140
2186
  $unknown?: never;
2141
2187
  }
2142
- interface FailureTraceMember {
2143
- guardrailTrace?: never;
2144
- preProcessingTrace?: never;
2145
- orchestrationTrace?: never;
2146
- postProcessingTrace?: never;
2147
- routingClassifierTrace?: never;
2148
- failureTrace: FailureTrace;
2149
- customOrchestrationTrace?: never;
2188
+ interface $UnknownMember {
2189
+ text?: never;
2190
+ $unknown: [string, any];
2191
+ }
2192
+ interface Visitor<T> {
2193
+ text: (value: string) => T;
2194
+ _: (name: string, value: any) => T;
2195
+ }
2196
+ const visit: <T>(value: ContentBlock, visitor: Visitor<T>) => T;
2197
+ }
2198
+ export declare const ConversationRole: {
2199
+ readonly ASSISTANT: "assistant";
2200
+ readonly USER: "user";
2201
+ };
2202
+ export type ConversationRole =
2203
+ (typeof ConversationRole)[keyof typeof ConversationRole];
2204
+ export interface Message {
2205
+ role: ConversationRole | undefined;
2206
+ content: ContentBlock[] | undefined;
2207
+ }
2208
+ export interface ConversationHistory {
2209
+ messages?: Message[] | undefined;
2210
+ }
2211
+ export interface ByteContentFile {
2212
+ mediaType: string | undefined;
2213
+ data: Uint8Array | undefined;
2214
+ }
2215
+ export interface S3ObjectFile {
2216
+ uri: string | undefined;
2217
+ }
2218
+ export declare const FileSourceType: {
2219
+ readonly BYTE_CONTENT: "BYTE_CONTENT";
2220
+ readonly S3: "S3";
2221
+ };
2222
+ export type FileSourceType =
2223
+ (typeof FileSourceType)[keyof typeof FileSourceType];
2224
+ export interface FileSource {
2225
+ sourceType: FileSourceType | undefined;
2226
+ s3Location?: S3ObjectFile | undefined;
2227
+ byteContent?: ByteContentFile | undefined;
2228
+ }
2229
+ export declare const FileUseCase: {
2230
+ readonly CHAT: "CHAT";
2231
+ readonly CODE_INTERPRETER: "CODE_INTERPRETER";
2232
+ };
2233
+ export type FileUseCase = (typeof FileUseCase)[keyof typeof FileUseCase];
2234
+ export interface InputFile {
2235
+ name: string | undefined;
2236
+ source: FileSource | undefined;
2237
+ useCase: FileUseCase | undefined;
2238
+ }
2239
+ export interface FilterAttribute {
2240
+ key: string | undefined;
2241
+ value: __DocumentType | undefined;
2242
+ }
2243
+ export declare const AttributeType: {
2244
+ readonly BOOLEAN: "BOOLEAN";
2245
+ readonly NUMBER: "NUMBER";
2246
+ readonly STRING: "STRING";
2247
+ readonly STRING_LIST: "STRING_LIST";
2248
+ };
2249
+ export type AttributeType = (typeof AttributeType)[keyof typeof AttributeType];
2250
+ export interface MetadataAttributeSchema {
2251
+ key: string | undefined;
2252
+ type: AttributeType | undefined;
2253
+ description: string | undefined;
2254
+ }
2255
+ export interface ImplicitFilterConfiguration {
2256
+ metadataAttributes: MetadataAttributeSchema[] | undefined;
2257
+ modelArn: string | undefined;
2258
+ }
2259
+ export declare const SearchType: {
2260
+ readonly HYBRID: "HYBRID";
2261
+ readonly SEMANTIC: "SEMANTIC";
2262
+ };
2263
+ export type SearchType = (typeof SearchType)[keyof typeof SearchType];
2264
+ export declare const RerankingMetadataSelectionMode: {
2265
+ readonly ALL: "ALL";
2266
+ readonly SELECTIVE: "SELECTIVE";
2267
+ };
2268
+ export type RerankingMetadataSelectionMode =
2269
+ (typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
2270
+ export interface FieldForReranking {
2271
+ fieldName: string | undefined;
2272
+ }
2273
+ export type RerankingMetadataSelectiveModeConfiguration =
2274
+ | RerankingMetadataSelectiveModeConfiguration.FieldsToExcludeMember
2275
+ | RerankingMetadataSelectiveModeConfiguration.FieldsToIncludeMember
2276
+ | RerankingMetadataSelectiveModeConfiguration.$UnknownMember;
2277
+ export declare namespace RerankingMetadataSelectiveModeConfiguration {
2278
+ interface FieldsToIncludeMember {
2279
+ fieldsToInclude: FieldForReranking[];
2280
+ fieldsToExclude?: never;
2150
2281
  $unknown?: never;
2151
2282
  }
2152
- interface CustomOrchestrationTraceMember {
2153
- guardrailTrace?: never;
2154
- preProcessingTrace?: never;
2155
- orchestrationTrace?: never;
2156
- postProcessingTrace?: never;
2157
- routingClassifierTrace?: never;
2158
- failureTrace?: never;
2159
- customOrchestrationTrace: CustomOrchestrationTrace;
2283
+ interface FieldsToExcludeMember {
2284
+ fieldsToInclude?: never;
2285
+ fieldsToExclude: FieldForReranking[];
2160
2286
  $unknown?: never;
2161
2287
  }
2162
2288
  interface $UnknownMember {
2163
- guardrailTrace?: never;
2164
- preProcessingTrace?: never;
2165
- orchestrationTrace?: never;
2166
- postProcessingTrace?: never;
2167
- routingClassifierTrace?: never;
2168
- failureTrace?: never;
2169
- customOrchestrationTrace?: never;
2289
+ fieldsToInclude?: never;
2290
+ fieldsToExclude?: never;
2170
2291
  $unknown: [string, any];
2171
2292
  }
2172
2293
  interface Visitor<T> {
2173
- guardrailTrace: (value: GuardrailTrace) => T;
2174
- preProcessingTrace: (value: PreProcessingTrace) => T;
2175
- orchestrationTrace: (value: OrchestrationTrace) => T;
2176
- postProcessingTrace: (value: PostProcessingTrace) => T;
2177
- routingClassifierTrace: (value: RoutingClassifierTrace) => T;
2178
- failureTrace: (value: FailureTrace) => T;
2179
- customOrchestrationTrace: (value: CustomOrchestrationTrace) => T;
2294
+ fieldsToInclude: (value: FieldForReranking[]) => T;
2295
+ fieldsToExclude: (value: FieldForReranking[]) => T;
2180
2296
  _: (name: string, value: any) => T;
2181
2297
  }
2182
- const visit: <T>(value: Trace, visitor: Visitor<T>) => T;
2298
+ const visit: <T>(
2299
+ value: RerankingMetadataSelectiveModeConfiguration,
2300
+ visitor: Visitor<T>
2301
+ ) => T;
2183
2302
  }
2184
- export interface TracePart {
2185
- sessionId?: string | undefined;
2186
- trace?: Trace | undefined;
2187
- callerChain?: Caller[] | undefined;
2188
- eventTime?: Date | undefined;
2189
- collaboratorName?: string | undefined;
2190
- agentId?: string | undefined;
2191
- agentAliasId?: string | undefined;
2192
- agentVersion?: string | undefined;
2303
+ export interface MetadataConfigurationForReranking {
2304
+ selectionMode: RerankingMetadataSelectionMode | undefined;
2305
+ selectiveModeConfiguration?:
2306
+ | RerankingMetadataSelectiveModeConfiguration
2307
+ | undefined;
2308
+ }
2309
+ export interface VectorSearchBedrockRerankingModelConfiguration {
2310
+ modelArn: string | undefined;
2311
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
2312
+ }
2313
+ export interface VectorSearchBedrockRerankingConfiguration {
2314
+ modelConfiguration:
2315
+ | VectorSearchBedrockRerankingModelConfiguration
2316
+ | undefined;
2317
+ numberOfRerankedResults?: number | undefined;
2318
+ metadataConfiguration?: MetadataConfigurationForReranking | undefined;
2319
+ }
2320
+ export declare const VectorSearchRerankingConfigurationType: {
2321
+ readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
2322
+ };
2323
+ export type VectorSearchRerankingConfigurationType =
2324
+ (typeof VectorSearchRerankingConfigurationType)[keyof typeof VectorSearchRerankingConfigurationType];
2325
+ export interface VectorSearchRerankingConfiguration {
2326
+ type: VectorSearchRerankingConfigurationType | undefined;
2327
+ bedrockRerankingConfiguration?:
2328
+ | VectorSearchBedrockRerankingConfiguration
2329
+ | undefined;
2330
+ }
2331
+ export interface StreamingConfigurations {
2332
+ streamFinalResponse?: boolean | undefined;
2333
+ applyGuardrailInterval?: number | undefined;
2334
+ }
2335
+ export interface Span {
2336
+ start?: number | undefined;
2337
+ end?: number | undefined;
2338
+ }
2339
+ export interface TextResponsePart {
2340
+ text?: string | undefined;
2341
+ span?: Span | undefined;
2342
+ }
2343
+ export interface GeneratedResponsePart {
2344
+ textResponsePart?: TextResponsePart | undefined;
2345
+ }
2346
+ export interface Citation {
2347
+ generatedResponsePart?: GeneratedResponsePart | undefined;
2348
+ retrievedReferences?: RetrievedReference[] | undefined;
2349
+ }
2350
+ export interface Attribution {
2351
+ citations?: Citation[] | undefined;
2352
+ }
2353
+ export interface PayloadPart {
2354
+ bytes?: Uint8Array | undefined;
2355
+ attribution?: Attribution | undefined;
2356
+ }
2357
+ export interface OutputFile {
2358
+ name?: string | undefined;
2359
+ type?: string | undefined;
2360
+ bytes?: Uint8Array | undefined;
2361
+ }
2362
+ export interface FilePart {
2363
+ files?: OutputFile[] | undefined;
2364
+ }
2365
+ export declare class ModelNotReadyException extends __BaseException {
2366
+ readonly name: "ModelNotReadyException";
2367
+ readonly $fault: "client";
2368
+ constructor(
2369
+ opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
2370
+ );
2193
2371
  }
2194
2372
  export type ResponseStream =
2195
2373
  | ResponseStream.AccessDeniedExceptionMember
@@ -3154,84 +3332,12 @@ export interface ExternalSourcesGenerationConfiguration {
3154
3332
  performanceConfig?: PerformanceConfiguration | undefined;
3155
3333
  }
3156
3334
  export interface ByteContentDoc {
3157
- identifier: string | undefined;
3158
- contentType: string | undefined;
3159
- data: Uint8Array | undefined;
3160
- }
3161
- export interface S3ObjectDoc {
3162
- uri: string | undefined;
3163
- }
3164
- export declare const ExternalSourceType: {
3165
- readonly BYTE_CONTENT: "BYTE_CONTENT";
3166
- readonly S3: "S3";
3167
- };
3168
- export type ExternalSourceType =
3169
- (typeof ExternalSourceType)[keyof typeof ExternalSourceType];
3170
- export interface ExternalSource {
3171
- sourceType: ExternalSourceType | undefined;
3172
- s3Location?: S3ObjectDoc | undefined;
3173
- byteContent?: ByteContentDoc | undefined;
3174
- }
3175
- export interface ExternalSourcesRetrieveAndGenerateConfiguration {
3176
- modelArn: string | undefined;
3177
- sources: ExternalSource[] | undefined;
3178
- generationConfiguration?: ExternalSourcesGenerationConfiguration | undefined;
3179
- }
3180
- export interface GenerationConfiguration {
3181
- promptTemplate?: PromptTemplate | undefined;
3182
- guardrailConfiguration?: GuardrailConfiguration | undefined;
3183
- inferenceConfig?: InferenceConfig | undefined;
3184
- additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
3185
- performanceConfig?: PerformanceConfiguration | undefined;
3186
- }
3187
- export declare const QueryTransformationType: {
3188
- readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
3189
- };
3190
- export type QueryTransformationType =
3191
- (typeof QueryTransformationType)[keyof typeof QueryTransformationType];
3192
- export interface QueryTransformationConfiguration {
3193
- type: QueryTransformationType | undefined;
3194
- }
3195
- export interface OrchestrationConfiguration {
3196
- promptTemplate?: PromptTemplate | undefined;
3197
- inferenceConfig?: InferenceConfig | undefined;
3198
- additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
3199
- queryTransformationConfiguration?:
3200
- | QueryTransformationConfiguration
3201
- | undefined;
3202
- performanceConfig?: PerformanceConfiguration | undefined;
3203
- }
3204
- export declare const RetrieveAndGenerateType: {
3205
- readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
3206
- readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
3207
- };
3208
- export type RetrieveAndGenerateType =
3209
- (typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
3210
- export interface RetrieveAndGenerateSessionConfiguration {
3211
- kmsKeyArn: string | undefined;
3212
- }
3213
- export declare const GuadrailAction: {
3214
- readonly INTERVENED: "INTERVENED";
3215
- readonly NONE: "NONE";
3216
- };
3217
- export type GuadrailAction =
3218
- (typeof GuadrailAction)[keyof typeof GuadrailAction];
3219
- export interface RetrieveAndGenerateOutput {
3220
- text: string | undefined;
3221
- }
3222
- export interface RetrieveAndGenerateResponse {
3223
- sessionId: string | undefined;
3224
- output: RetrieveAndGenerateOutput | undefined;
3225
- citations?: Citation[] | undefined;
3226
- guardrailAction?: GuadrailAction | undefined;
3227
- }
3228
- export interface CitationEvent {
3229
- citation?: Citation | undefined;
3230
- generatedResponsePart?: GeneratedResponsePart | undefined;
3231
- retrievedReferences?: RetrievedReference[] | undefined;
3335
+ identifier: string | undefined;
3336
+ contentType: string | undefined;
3337
+ data: Uint8Array | undefined;
3232
3338
  }
3233
- export interface GuardrailEvent {
3234
- action?: GuadrailAction | undefined;
3339
+ export interface S3ObjectDoc {
3340
+ uri: string | undefined;
3235
3341
  }
3236
3342
  export declare const ActionGroupInvocationInputFilterSensitiveLog: (
3237
3343
  obj: ActionGroupInvocationInput
@@ -3282,6 +3388,123 @@ export declare const AgentCollaboratorOutputPayloadFilterSensitiveLog: (
3282
3388
  export declare const AgentCollaboratorInvocationOutputFilterSensitiveLog: (
3283
3389
  obj: AgentCollaboratorInvocationOutput
3284
3390
  ) => any;
3391
+ export declare const CustomOrchestrationTraceEventFilterSensitiveLog: (
3392
+ obj: CustomOrchestrationTraceEvent
3393
+ ) => any;
3394
+ export declare const CustomOrchestrationTraceFilterSensitiveLog: (
3395
+ obj: CustomOrchestrationTrace
3396
+ ) => any;
3397
+ export declare const FailureTraceFilterSensitiveLog: (obj: FailureTrace) => any;
3398
+ export declare const GuardrailContentFilterFilterSensitiveLog: (
3399
+ obj: GuardrailContentFilter
3400
+ ) => any;
3401
+ export declare const GuardrailContentPolicyAssessmentFilterSensitiveLog: (
3402
+ obj: GuardrailContentPolicyAssessment
3403
+ ) => any;
3404
+ export declare const GuardrailPiiEntityFilterFilterSensitiveLog: (
3405
+ obj: GuardrailPiiEntityFilter
3406
+ ) => any;
3407
+ export declare const GuardrailRegexFilterFilterSensitiveLog: (
3408
+ obj: GuardrailRegexFilter
3409
+ ) => any;
3410
+ export declare const GuardrailSensitiveInformationPolicyAssessmentFilterSensitiveLog: (
3411
+ obj: GuardrailSensitiveInformationPolicyAssessment
3412
+ ) => any;
3413
+ export declare const GuardrailTopicFilterSensitiveLog: (
3414
+ obj: GuardrailTopic
3415
+ ) => any;
3416
+ export declare const GuardrailTopicPolicyAssessmentFilterSensitiveLog: (
3417
+ obj: GuardrailTopicPolicyAssessment
3418
+ ) => any;
3419
+ export declare const GuardrailCustomWordFilterSensitiveLog: (
3420
+ obj: GuardrailCustomWord
3421
+ ) => any;
3422
+ export declare const GuardrailManagedWordFilterSensitiveLog: (
3423
+ obj: GuardrailManagedWord
3424
+ ) => any;
3425
+ export declare const GuardrailWordPolicyAssessmentFilterSensitiveLog: (
3426
+ obj: GuardrailWordPolicyAssessment
3427
+ ) => any;
3428
+ export declare const GuardrailAssessmentFilterSensitiveLog: (
3429
+ obj: GuardrailAssessment
3430
+ ) => any;
3431
+ export declare const GuardrailTraceFilterSensitiveLog: (
3432
+ obj: GuardrailTrace
3433
+ ) => any;
3434
+ export declare const KnowledgeBaseLookupInputFilterSensitiveLog: (
3435
+ obj: KnowledgeBaseLookupInput
3436
+ ) => any;
3437
+ export declare const InvocationInputFilterSensitiveLog: (
3438
+ obj: InvocationInput
3439
+ ) => any;
3440
+ export declare const ModelInvocationInputFilterSensitiveLog: (
3441
+ obj: ModelInvocationInput
3442
+ ) => any;
3443
+ export declare const RawResponseFilterSensitiveLog: (obj: RawResponse) => any;
3444
+ export declare const ReasoningTextBlockFilterSensitiveLog: (
3445
+ obj: ReasoningTextBlock
3446
+ ) => any;
3447
+ export declare const ReasoningContentBlockFilterSensitiveLog: (
3448
+ obj: ReasoningContentBlock
3449
+ ) => any;
3450
+ export declare const OrchestrationModelInvocationOutputFilterSensitiveLog: (
3451
+ obj: OrchestrationModelInvocationOutput
3452
+ ) => any;
3453
+ export declare const CodeInterpreterInvocationOutputFilterSensitiveLog: (
3454
+ obj: CodeInterpreterInvocationOutput
3455
+ ) => any;
3456
+ export declare const FinalResponseFilterSensitiveLog: (
3457
+ obj: FinalResponse
3458
+ ) => any;
3459
+ export declare const RetrievalResultContentColumnFilterSensitiveLog: (
3460
+ obj: RetrievalResultContentColumn
3461
+ ) => any;
3462
+ export declare const RetrievalResultContentFilterSensitiveLog: (
3463
+ obj: RetrievalResultContent
3464
+ ) => any;
3465
+ export declare const RetrievalResultLocationFilterSensitiveLog: (
3466
+ obj: RetrievalResultLocation
3467
+ ) => any;
3468
+ export declare const RetrievedReferenceFilterSensitiveLog: (
3469
+ obj: RetrievedReference
3470
+ ) => any;
3471
+ export declare const KnowledgeBaseLookupOutputFilterSensitiveLog: (
3472
+ obj: KnowledgeBaseLookupOutput
3473
+ ) => any;
3474
+ export declare const RepromptResponseFilterSensitiveLog: (
3475
+ obj: RepromptResponse
3476
+ ) => any;
3477
+ export declare const ObservationFilterSensitiveLog: (obj: Observation) => any;
3478
+ export declare const RationaleFilterSensitiveLog: (obj: Rationale) => any;
3479
+ export declare const OrchestrationTraceFilterSensitiveLog: (
3480
+ obj: OrchestrationTrace
3481
+ ) => any;
3482
+ export declare const PostProcessingParsedResponseFilterSensitiveLog: (
3483
+ obj: PostProcessingParsedResponse
3484
+ ) => any;
3485
+ export declare const PostProcessingModelInvocationOutputFilterSensitiveLog: (
3486
+ obj: PostProcessingModelInvocationOutput
3487
+ ) => any;
3488
+ export declare const PostProcessingTraceFilterSensitiveLog: (
3489
+ obj: PostProcessingTrace
3490
+ ) => any;
3491
+ export declare const PreProcessingParsedResponseFilterSensitiveLog: (
3492
+ obj: PreProcessingParsedResponse
3493
+ ) => any;
3494
+ export declare const PreProcessingModelInvocationOutputFilterSensitiveLog: (
3495
+ obj: PreProcessingModelInvocationOutput
3496
+ ) => any;
3497
+ export declare const PreProcessingTraceFilterSensitiveLog: (
3498
+ obj: PreProcessingTrace
3499
+ ) => any;
3500
+ export declare const RoutingClassifierModelInvocationOutputFilterSensitiveLog: (
3501
+ obj: RoutingClassifierModelInvocationOutput
3502
+ ) => any;
3503
+ export declare const RoutingClassifierTraceFilterSensitiveLog: (
3504
+ obj: RoutingClassifierTrace
3505
+ ) => any;
3506
+ export declare const TraceFilterSensitiveLog: (obj: Trace) => any;
3507
+ export declare const TracePartFilterSensitiveLog: (obj: TracePart) => any;
3285
3508
  export declare const SatisfiedConditionFilterSensitiveLog: (
3286
3509
  obj: SatisfiedCondition
3287
3510
  ) => any;
@@ -3306,18 +3529,33 @@ export declare const FlowOutputFieldFilterSensitiveLog: (
3306
3529
  export declare const FlowExecutionOutputEventFilterSensitiveLog: (
3307
3530
  obj: FlowExecutionOutputEvent
3308
3531
  ) => any;
3532
+ export declare const NodeActionEventFilterSensitiveLog: (
3533
+ obj: NodeActionEvent
3534
+ ) => any;
3535
+ export declare const NodeTraceElementsFilterSensitiveLog: (
3536
+ obj: NodeTraceElements
3537
+ ) => any;
3538
+ export declare const NodeDependencyEventFilterSensitiveLog: (
3539
+ obj: NodeDependencyEvent
3540
+ ) => any;
3309
3541
  export declare const NodeFailureEventFilterSensitiveLog: (
3310
3542
  obj: NodeFailureEvent
3311
3543
  ) => any;
3312
3544
  export declare const NodeExecutionContentFilterSensitiveLog: (
3313
3545
  obj: NodeExecutionContent
3314
3546
  ) => any;
3547
+ export declare const NodeInputSourceFilterSensitiveLog: (
3548
+ obj: NodeInputSource
3549
+ ) => any;
3315
3550
  export declare const NodeInputFieldFilterSensitiveLog: (
3316
3551
  obj: NodeInputField
3317
3552
  ) => any;
3318
3553
  export declare const NodeInputEventFilterSensitiveLog: (
3319
3554
  obj: NodeInputEvent
3320
3555
  ) => any;
3556
+ export declare const NodeOutputNextFilterSensitiveLog: (
3557
+ obj: NodeOutputNext
3558
+ ) => any;
3321
3559
  export declare const NodeOutputFieldFilterSensitiveLog: (
3322
3560
  obj: NodeOutputField
3323
3561
  ) => any;
@@ -3358,15 +3596,30 @@ export declare const FlowTraceConditionNodeResultEventFilterSensitiveLog: (
3358
3596
  export declare const FlowTraceNodeActionEventFilterSensitiveLog: (
3359
3597
  obj: FlowTraceNodeActionEvent
3360
3598
  ) => any;
3599
+ export declare const TraceElementsFilterSensitiveLog: (
3600
+ obj: TraceElements
3601
+ ) => any;
3602
+ export declare const FlowTraceDependencyEventFilterSensitiveLog: (
3603
+ obj: FlowTraceDependencyEvent
3604
+ ) => any;
3361
3605
  export declare const FlowTraceNodeInputContentFilterSensitiveLog: (
3362
3606
  obj: FlowTraceNodeInputContent
3363
3607
  ) => any;
3608
+ export declare const FlowTraceNodeInputExecutionChainItemFilterSensitiveLog: (
3609
+ obj: FlowTraceNodeInputExecutionChainItem
3610
+ ) => any;
3611
+ export declare const FlowTraceNodeInputSourceFilterSensitiveLog: (
3612
+ obj: FlowTraceNodeInputSource
3613
+ ) => any;
3364
3614
  export declare const FlowTraceNodeInputFieldFilterSensitiveLog: (
3365
3615
  obj: FlowTraceNodeInputField
3366
3616
  ) => any;
3367
3617
  export declare const FlowTraceNodeInputEventFilterSensitiveLog: (
3368
3618
  obj: FlowTraceNodeInputEvent
3369
3619
  ) => any;
3620
+ export declare const FlowTraceNodeOutputNextFilterSensitiveLog: (
3621
+ obj: FlowTraceNodeOutputNext
3622
+ ) => any;
3370
3623
  export declare const FlowTraceNodeOutputFieldFilterSensitiveLog: (
3371
3624
  obj: FlowTraceNodeOutputField
3372
3625
  ) => any;
@@ -3429,128 +3682,11 @@ export declare const TextResponsePartFilterSensitiveLog: (
3429
3682
  export declare const GeneratedResponsePartFilterSensitiveLog: (
3430
3683
  obj: GeneratedResponsePart
3431
3684
  ) => any;
3432
- export declare const RetrievalResultContentColumnFilterSensitiveLog: (
3433
- obj: RetrievalResultContentColumn
3434
- ) => any;
3435
- export declare const RetrievalResultContentFilterSensitiveLog: (
3436
- obj: RetrievalResultContent
3437
- ) => any;
3438
- export declare const RetrievalResultLocationFilterSensitiveLog: (
3439
- obj: RetrievalResultLocation
3440
- ) => any;
3441
- export declare const RetrievedReferenceFilterSensitiveLog: (
3442
- obj: RetrievedReference
3443
- ) => any;
3444
3685
  export declare const CitationFilterSensitiveLog: (obj: Citation) => any;
3445
3686
  export declare const AttributionFilterSensitiveLog: (obj: Attribution) => any;
3446
3687
  export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
3447
3688
  export declare const OutputFileFilterSensitiveLog: (obj: OutputFile) => any;
3448
3689
  export declare const FilePartFilterSensitiveLog: (obj: FilePart) => any;
3449
- export declare const CustomOrchestrationTraceEventFilterSensitiveLog: (
3450
- obj: CustomOrchestrationTraceEvent
3451
- ) => any;
3452
- export declare const CustomOrchestrationTraceFilterSensitiveLog: (
3453
- obj: CustomOrchestrationTrace
3454
- ) => any;
3455
- export declare const FailureTraceFilterSensitiveLog: (obj: FailureTrace) => any;
3456
- export declare const GuardrailContentFilterFilterSensitiveLog: (
3457
- obj: GuardrailContentFilter
3458
- ) => any;
3459
- export declare const GuardrailContentPolicyAssessmentFilterSensitiveLog: (
3460
- obj: GuardrailContentPolicyAssessment
3461
- ) => any;
3462
- export declare const GuardrailPiiEntityFilterFilterSensitiveLog: (
3463
- obj: GuardrailPiiEntityFilter
3464
- ) => any;
3465
- export declare const GuardrailRegexFilterFilterSensitiveLog: (
3466
- obj: GuardrailRegexFilter
3467
- ) => any;
3468
- export declare const GuardrailSensitiveInformationPolicyAssessmentFilterSensitiveLog: (
3469
- obj: GuardrailSensitiveInformationPolicyAssessment
3470
- ) => any;
3471
- export declare const GuardrailTopicFilterSensitiveLog: (
3472
- obj: GuardrailTopic
3473
- ) => any;
3474
- export declare const GuardrailTopicPolicyAssessmentFilterSensitiveLog: (
3475
- obj: GuardrailTopicPolicyAssessment
3476
- ) => any;
3477
- export declare const GuardrailCustomWordFilterSensitiveLog: (
3478
- obj: GuardrailCustomWord
3479
- ) => any;
3480
- export declare const GuardrailManagedWordFilterSensitiveLog: (
3481
- obj: GuardrailManagedWord
3482
- ) => any;
3483
- export declare const GuardrailWordPolicyAssessmentFilterSensitiveLog: (
3484
- obj: GuardrailWordPolicyAssessment
3485
- ) => any;
3486
- export declare const GuardrailAssessmentFilterSensitiveLog: (
3487
- obj: GuardrailAssessment
3488
- ) => any;
3489
- export declare const GuardrailTraceFilterSensitiveLog: (
3490
- obj: GuardrailTrace
3491
- ) => any;
3492
- export declare const KnowledgeBaseLookupInputFilterSensitiveLog: (
3493
- obj: KnowledgeBaseLookupInput
3494
- ) => any;
3495
- export declare const InvocationInputFilterSensitiveLog: (
3496
- obj: InvocationInput
3497
- ) => any;
3498
- export declare const ModelInvocationInputFilterSensitiveLog: (
3499
- obj: ModelInvocationInput
3500
- ) => any;
3501
- export declare const RawResponseFilterSensitiveLog: (obj: RawResponse) => any;
3502
- export declare const ReasoningTextBlockFilterSensitiveLog: (
3503
- obj: ReasoningTextBlock
3504
- ) => any;
3505
- export declare const ReasoningContentBlockFilterSensitiveLog: (
3506
- obj: ReasoningContentBlock
3507
- ) => any;
3508
- export declare const OrchestrationModelInvocationOutputFilterSensitiveLog: (
3509
- obj: OrchestrationModelInvocationOutput
3510
- ) => any;
3511
- export declare const CodeInterpreterInvocationOutputFilterSensitiveLog: (
3512
- obj: CodeInterpreterInvocationOutput
3513
- ) => any;
3514
- export declare const FinalResponseFilterSensitiveLog: (
3515
- obj: FinalResponse
3516
- ) => any;
3517
- export declare const KnowledgeBaseLookupOutputFilterSensitiveLog: (
3518
- obj: KnowledgeBaseLookupOutput
3519
- ) => any;
3520
- export declare const RepromptResponseFilterSensitiveLog: (
3521
- obj: RepromptResponse
3522
- ) => any;
3523
- export declare const ObservationFilterSensitiveLog: (obj: Observation) => any;
3524
- export declare const RationaleFilterSensitiveLog: (obj: Rationale) => any;
3525
- export declare const OrchestrationTraceFilterSensitiveLog: (
3526
- obj: OrchestrationTrace
3527
- ) => any;
3528
- export declare const PostProcessingParsedResponseFilterSensitiveLog: (
3529
- obj: PostProcessingParsedResponse
3530
- ) => any;
3531
- export declare const PostProcessingModelInvocationOutputFilterSensitiveLog: (
3532
- obj: PostProcessingModelInvocationOutput
3533
- ) => any;
3534
- export declare const PostProcessingTraceFilterSensitiveLog: (
3535
- obj: PostProcessingTrace
3536
- ) => any;
3537
- export declare const PreProcessingParsedResponseFilterSensitiveLog: (
3538
- obj: PreProcessingParsedResponse
3539
- ) => any;
3540
- export declare const PreProcessingModelInvocationOutputFilterSensitiveLog: (
3541
- obj: PreProcessingModelInvocationOutput
3542
- ) => any;
3543
- export declare const PreProcessingTraceFilterSensitiveLog: (
3544
- obj: PreProcessingTrace
3545
- ) => any;
3546
- export declare const RoutingClassifierModelInvocationOutputFilterSensitiveLog: (
3547
- obj: RoutingClassifierModelInvocationOutput
3548
- ) => any;
3549
- export declare const RoutingClassifierTraceFilterSensitiveLog: (
3550
- obj: RoutingClassifierTrace
3551
- ) => any;
3552
- export declare const TraceFilterSensitiveLog: (obj: Trace) => any;
3553
- export declare const TracePartFilterSensitiveLog: (obj: TracePart) => any;
3554
3690
  export declare const ResponseStreamFilterSensitiveLog: (
3555
3691
  obj: ResponseStream
3556
3692
  ) => any;
@@ -3634,24 +3770,3 @@ export declare const ExternalSourcesGenerationConfigurationFilterSensitiveLog: (
3634
3770
  export declare const ByteContentDocFilterSensitiveLog: (
3635
3771
  obj: ByteContentDoc
3636
3772
  ) => any;
3637
- export declare const ExternalSourceFilterSensitiveLog: (
3638
- obj: ExternalSource
3639
- ) => any;
3640
- export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: (
3641
- obj: ExternalSourcesRetrieveAndGenerateConfiguration
3642
- ) => any;
3643
- export declare const GenerationConfigurationFilterSensitiveLog: (
3644
- obj: GenerationConfiguration
3645
- ) => any;
3646
- export declare const OrchestrationConfigurationFilterSensitiveLog: (
3647
- obj: OrchestrationConfiguration
3648
- ) => any;
3649
- export declare const RetrieveAndGenerateOutputFilterSensitiveLog: (
3650
- obj: RetrieveAndGenerateOutput
3651
- ) => any;
3652
- export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (
3653
- obj: RetrieveAndGenerateResponse
3654
- ) => any;
3655
- export declare const CitationEventFilterSensitiveLog: (
3656
- obj: CitationEvent
3657
- ) => any;