@aws-sdk/client-bedrock-agent-runtime 3.688.0 → 3.692.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.
@@ -14,25 +14,25 @@ export declare const ExecutionType: {
14
14
  };
15
15
  export type ExecutionType = (typeof ExecutionType)[keyof typeof ExecutionType];
16
16
  export interface Parameter {
17
- name?: string;
18
- type?: string;
19
- value?: string;
17
+ name?: string | undefined;
18
+ type?: string | undefined;
19
+ value?: string | undefined;
20
20
  }
21
21
  export interface RequestBody {
22
- content?: Record<string, Parameter[]>;
22
+ content?: Record<string, Parameter[]> | undefined;
23
23
  }
24
24
  export interface ActionGroupInvocationInput {
25
- actionGroupName?: string;
26
- verb?: string;
27
- apiPath?: string;
28
- parameters?: Parameter[];
29
- requestBody?: RequestBody;
30
- function?: string;
31
- executionType?: ExecutionType;
32
- invocationId?: string;
25
+ actionGroupName?: string | undefined;
26
+ verb?: string | undefined;
27
+ apiPath?: string | undefined;
28
+ parameters?: Parameter[] | undefined;
29
+ requestBody?: RequestBody | undefined;
30
+ function?: string | undefined;
31
+ executionType?: ExecutionType | undefined;
32
+ invocationId?: string | undefined;
33
33
  }
34
34
  export interface ActionGroupInvocationOutput {
35
- text?: string;
35
+ text?: string | undefined;
36
36
  }
37
37
  export declare const ActionInvocationType: {
38
38
  readonly RESULT: "RESULT";
@@ -44,7 +44,7 @@ export type ActionInvocationType =
44
44
  export declare class BadGatewayException extends __BaseException {
45
45
  readonly name: "BadGatewayException";
46
46
  readonly $fault: "server";
47
- resourceName?: string;
47
+ resourceName?: string | undefined;
48
48
  constructor(
49
49
  opts: __ExceptionOptionType<BadGatewayException, __BaseException>
50
50
  );
@@ -57,7 +57,7 @@ export declare class ConflictException extends __BaseException {
57
57
  export declare class DependencyFailedException extends __BaseException {
58
58
  readonly name: "DependencyFailedException";
59
59
  readonly $fault: "client";
60
- resourceName?: string;
60
+ resourceName?: string | undefined;
61
61
  constructor(
62
62
  opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
63
63
  );
@@ -96,7 +96,7 @@ export interface InvokeFlowRequest {
96
96
  flowIdentifier: string | undefined;
97
97
  flowAliasIdentifier: string | undefined;
98
98
  inputs: FlowInput[] | undefined;
99
- enableTrace?: boolean;
99
+ enableTrace?: boolean | undefined;
100
100
  }
101
101
  export declare const FlowCompletionReason: {
102
102
  readonly SUCCESS: "SUCCESS";
@@ -515,8 +515,8 @@ export type FileSourceType =
515
515
  (typeof FileSourceType)[keyof typeof FileSourceType];
516
516
  export interface FileSource {
517
517
  sourceType: FileSourceType | undefined;
518
- s3Location?: S3ObjectFile;
519
- byteContent?: ByteContentFile;
518
+ s3Location?: S3ObjectFile | undefined;
519
+ byteContent?: ByteContentFile | undefined;
520
520
  }
521
521
  export declare const FileUseCase: {
522
522
  readonly CHAT: "CHAT";
@@ -544,7 +544,7 @@ export declare const ConfirmationState: {
544
544
  export type ConfirmationState =
545
545
  (typeof ConfirmationState)[keyof typeof ConfirmationState];
546
546
  export interface ContentBody {
547
- body?: string;
547
+ body?: string | undefined;
548
548
  }
549
549
  export declare const ResponseState: {
550
550
  readonly FAILURE: "FAILURE";
@@ -553,19 +553,19 @@ export declare const ResponseState: {
553
553
  export type ResponseState = (typeof ResponseState)[keyof typeof ResponseState];
554
554
  export interface ApiResult {
555
555
  actionGroup: string | undefined;
556
- httpMethod?: string;
557
- apiPath?: string;
558
- confirmationState?: ConfirmationState;
559
- responseBody?: Record<string, ContentBody>;
560
- httpStatusCode?: number;
561
- responseState?: ResponseState;
556
+ httpMethod?: string | undefined;
557
+ apiPath?: string | undefined;
558
+ confirmationState?: ConfirmationState | undefined;
559
+ responseBody?: Record<string, ContentBody> | undefined;
560
+ httpStatusCode?: number | undefined;
561
+ responseState?: ResponseState | undefined;
562
562
  }
563
563
  export interface FunctionResult {
564
564
  actionGroup: string | undefined;
565
- confirmationState?: ConfirmationState;
566
- function?: string;
567
- responseBody?: Record<string, ContentBody>;
568
- responseState?: ResponseState;
565
+ confirmationState?: ConfirmationState | undefined;
566
+ function?: string | undefined;
567
+ responseBody?: Record<string, ContentBody> | undefined;
568
+ responseState?: ResponseState | undefined;
569
569
  }
570
570
  export type InvocationResultMember =
571
571
  | InvocationResultMember.ApiResultMember
@@ -595,30 +595,30 @@ export declare namespace InvocationResultMember {
595
595
  const visit: <T>(value: InvocationResultMember, visitor: Visitor<T>) => T;
596
596
  }
597
597
  export interface Span {
598
- start?: number;
599
- end?: number;
598
+ start?: number | undefined;
599
+ end?: number | undefined;
600
600
  }
601
601
  export interface TextResponsePart {
602
- text?: string;
603
- span?: Span;
602
+ text?: string | undefined;
603
+ span?: Span | undefined;
604
604
  }
605
605
  export interface GeneratedResponsePart {
606
- textResponsePart?: TextResponsePart;
606
+ textResponsePart?: TextResponsePart | undefined;
607
607
  }
608
608
  export interface RetrievalResultContent {
609
609
  text: string | undefined;
610
610
  }
611
611
  export interface RetrievalResultConfluenceLocation {
612
- url?: string;
612
+ url?: string | undefined;
613
613
  }
614
614
  export interface RetrievalResultS3Location {
615
- uri?: string;
615
+ uri?: string | undefined;
616
616
  }
617
617
  export interface RetrievalResultSalesforceLocation {
618
- url?: string;
618
+ url?: string | undefined;
619
619
  }
620
620
  export interface RetrievalResultSharePointLocation {
621
- url?: string;
621
+ url?: string | undefined;
622
622
  }
623
623
  export declare const RetrievalResultLocationType: {
624
624
  readonly CONFLUENCE: "CONFLUENCE";
@@ -630,69 +630,69 @@ export declare const RetrievalResultLocationType: {
630
630
  export type RetrievalResultLocationType =
631
631
  (typeof RetrievalResultLocationType)[keyof typeof RetrievalResultLocationType];
632
632
  export interface RetrievalResultWebLocation {
633
- url?: string;
633
+ url?: string | undefined;
634
634
  }
635
635
  export interface RetrievalResultLocation {
636
636
  type: RetrievalResultLocationType | undefined;
637
- s3Location?: RetrievalResultS3Location;
638
- webLocation?: RetrievalResultWebLocation;
639
- confluenceLocation?: RetrievalResultConfluenceLocation;
640
- salesforceLocation?: RetrievalResultSalesforceLocation;
641
- sharePointLocation?: RetrievalResultSharePointLocation;
637
+ s3Location?: RetrievalResultS3Location | undefined;
638
+ webLocation?: RetrievalResultWebLocation | undefined;
639
+ confluenceLocation?: RetrievalResultConfluenceLocation | undefined;
640
+ salesforceLocation?: RetrievalResultSalesforceLocation | undefined;
641
+ sharePointLocation?: RetrievalResultSharePointLocation | undefined;
642
642
  }
643
643
  export interface RetrievedReference {
644
- content?: RetrievalResultContent;
645
- location?: RetrievalResultLocation;
646
- metadata?: Record<string, __DocumentType>;
644
+ content?: RetrievalResultContent | undefined;
645
+ location?: RetrievalResultLocation | undefined;
646
+ metadata?: Record<string, __DocumentType> | undefined;
647
647
  }
648
648
  export interface Citation {
649
- generatedResponsePart?: GeneratedResponsePart;
650
- retrievedReferences?: RetrievedReference[];
649
+ generatedResponsePart?: GeneratedResponsePart | undefined;
650
+ retrievedReferences?: RetrievedReference[] | undefined;
651
651
  }
652
652
  export interface Attribution {
653
- citations?: Citation[];
653
+ citations?: Citation[] | undefined;
654
654
  }
655
655
  export interface PayloadPart {
656
- bytes?: Uint8Array;
657
- attribution?: Attribution;
656
+ bytes?: Uint8Array | undefined;
657
+ attribution?: Attribution | undefined;
658
658
  }
659
659
  export interface OutputFile {
660
- name?: string;
661
- type?: string;
662
- bytes?: Uint8Array;
660
+ name?: string | undefined;
661
+ type?: string | undefined;
662
+ bytes?: Uint8Array | undefined;
663
663
  }
664
664
  export interface FilePart {
665
- files?: OutputFile[];
665
+ files?: OutputFile[] | undefined;
666
666
  }
667
667
  export interface ApiParameter {
668
- name?: string;
669
- type?: string;
670
- value?: string;
668
+ name?: string | undefined;
669
+ type?: string | undefined;
670
+ value?: string | undefined;
671
671
  }
672
672
  export interface PropertyParameters {
673
- properties?: Parameter[];
673
+ properties?: Parameter[] | undefined;
674
674
  }
675
675
  export interface ApiRequestBody {
676
- content?: Record<string, PropertyParameters>;
676
+ content?: Record<string, PropertyParameters> | undefined;
677
677
  }
678
678
  export interface ApiInvocationInput {
679
679
  actionGroup: string | undefined;
680
- httpMethod?: string;
681
- apiPath?: string;
682
- parameters?: ApiParameter[];
683
- requestBody?: ApiRequestBody;
684
- actionInvocationType?: ActionInvocationType;
680
+ httpMethod?: string | undefined;
681
+ apiPath?: string | undefined;
682
+ parameters?: ApiParameter[] | undefined;
683
+ requestBody?: ApiRequestBody | undefined;
684
+ actionInvocationType?: ActionInvocationType | undefined;
685
685
  }
686
686
  export interface FunctionParameter {
687
- name?: string;
688
- type?: string;
689
- value?: string;
687
+ name?: string | undefined;
688
+ type?: string | undefined;
689
+ value?: string | undefined;
690
690
  }
691
691
  export interface FunctionInvocationInput {
692
692
  actionGroup: string | undefined;
693
- parameters?: FunctionParameter[];
694
- function?: string;
695
- actionInvocationType?: ActionInvocationType;
693
+ parameters?: FunctionParameter[] | undefined;
694
+ function?: string | undefined;
695
+ actionInvocationType?: ActionInvocationType | undefined;
696
696
  }
697
697
  export type InvocationInputMember =
698
698
  | InvocationInputMember.ApiInvocationInputMember
@@ -722,12 +722,12 @@ export declare namespace InvocationInputMember {
722
722
  const visit: <T>(value: InvocationInputMember, visitor: Visitor<T>) => T;
723
723
  }
724
724
  export interface ReturnControlPayload {
725
- invocationInputs?: InvocationInputMember[];
726
- invocationId?: string;
725
+ invocationInputs?: InvocationInputMember[] | undefined;
726
+ invocationId?: string | undefined;
727
727
  }
728
728
  export interface FailureTrace {
729
- traceId?: string;
730
- failureReason?: string;
729
+ traceId?: string | undefined;
730
+ failureReason?: string | undefined;
731
731
  }
732
732
  export declare const GuardrailAction: {
733
733
  readonly INTERVENED: "INTERVENED";
@@ -759,12 +759,12 @@ export declare const GuardrailContentFilterType: {
759
759
  export type GuardrailContentFilterType =
760
760
  (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
761
761
  export interface GuardrailContentFilter {
762
- type?: GuardrailContentFilterType;
763
- confidence?: GuardrailContentFilterConfidence;
764
- action?: GuardrailContentPolicyAction;
762
+ type?: GuardrailContentFilterType | undefined;
763
+ confidence?: GuardrailContentFilterConfidence | undefined;
764
+ action?: GuardrailContentPolicyAction | undefined;
765
765
  }
766
766
  export interface GuardrailContentPolicyAssessment {
767
- filters?: GuardrailContentFilter[];
767
+ filters?: GuardrailContentFilter[] | undefined;
768
768
  }
769
769
  export declare const GuardrailSensitiveInformationPolicyAction: {
770
770
  readonly ANONYMIZED: "ANONYMIZED";
@@ -808,19 +808,19 @@ export declare const GuardrailPiiEntityType: {
808
808
  export type GuardrailPiiEntityType =
809
809
  (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
810
810
  export interface GuardrailPiiEntityFilter {
811
- type?: GuardrailPiiEntityType;
812
- match?: string;
813
- action?: GuardrailSensitiveInformationPolicyAction;
811
+ type?: GuardrailPiiEntityType | undefined;
812
+ match?: string | undefined;
813
+ action?: GuardrailSensitiveInformationPolicyAction | undefined;
814
814
  }
815
815
  export interface GuardrailRegexFilter {
816
- name?: string;
817
- regex?: string;
818
- match?: string;
819
- action?: GuardrailSensitiveInformationPolicyAction;
816
+ name?: string | undefined;
817
+ regex?: string | undefined;
818
+ match?: string | undefined;
819
+ action?: GuardrailSensitiveInformationPolicyAction | undefined;
820
820
  }
821
821
  export interface GuardrailSensitiveInformationPolicyAssessment {
822
- piiEntities?: GuardrailPiiEntityFilter[];
823
- regexes?: GuardrailRegexFilter[];
822
+ piiEntities?: GuardrailPiiEntityFilter[] | undefined;
823
+ regexes?: GuardrailRegexFilter[] | undefined;
824
824
  }
825
825
  export declare const GuardrailTopicPolicyAction: {
826
826
  readonly BLOCKED: "BLOCKED";
@@ -833,12 +833,12 @@ export declare const GuardrailTopicType: {
833
833
  export type GuardrailTopicType =
834
834
  (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
835
835
  export interface GuardrailTopic {
836
- name?: string;
837
- type?: GuardrailTopicType;
838
- action?: GuardrailTopicPolicyAction;
836
+ name?: string | undefined;
837
+ type?: GuardrailTopicType | undefined;
838
+ action?: GuardrailTopicPolicyAction | undefined;
839
839
  }
840
840
  export interface GuardrailTopicPolicyAssessment {
841
- topics?: GuardrailTopic[];
841
+ topics?: GuardrailTopic[] | undefined;
842
842
  }
843
843
  export declare const GuardrailWordPolicyAction: {
844
844
  readonly BLOCKED: "BLOCKED";
@@ -846,8 +846,8 @@ export declare const GuardrailWordPolicyAction: {
846
846
  export type GuardrailWordPolicyAction =
847
847
  (typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
848
848
  export interface GuardrailCustomWord {
849
- match?: string;
850
- action?: GuardrailWordPolicyAction;
849
+ match?: string | undefined;
850
+ action?: GuardrailWordPolicyAction | undefined;
851
851
  }
852
852
  export declare const GuardrailManagedWordType: {
853
853
  readonly PROFANITY: "PROFANITY";
@@ -855,29 +855,31 @@ export declare const GuardrailManagedWordType: {
855
855
  export type GuardrailManagedWordType =
856
856
  (typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
857
857
  export interface GuardrailManagedWord {
858
- match?: string;
859
- type?: GuardrailManagedWordType;
860
- action?: GuardrailWordPolicyAction;
858
+ match?: string | undefined;
859
+ type?: GuardrailManagedWordType | undefined;
860
+ action?: GuardrailWordPolicyAction | undefined;
861
861
  }
862
862
  export interface GuardrailWordPolicyAssessment {
863
- customWords?: GuardrailCustomWord[];
864
- managedWordLists?: GuardrailManagedWord[];
863
+ customWords?: GuardrailCustomWord[] | undefined;
864
+ managedWordLists?: GuardrailManagedWord[] | undefined;
865
865
  }
866
866
  export interface GuardrailAssessment {
867
- topicPolicy?: GuardrailTopicPolicyAssessment;
868
- contentPolicy?: GuardrailContentPolicyAssessment;
869
- wordPolicy?: GuardrailWordPolicyAssessment;
870
- sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicyAssessment;
867
+ topicPolicy?: GuardrailTopicPolicyAssessment | undefined;
868
+ contentPolicy?: GuardrailContentPolicyAssessment | undefined;
869
+ wordPolicy?: GuardrailWordPolicyAssessment | undefined;
870
+ sensitiveInformationPolicy?:
871
+ | GuardrailSensitiveInformationPolicyAssessment
872
+ | undefined;
871
873
  }
872
874
  export interface GuardrailTrace {
873
- action?: GuardrailAction;
874
- traceId?: string;
875
- inputAssessments?: GuardrailAssessment[];
876
- outputAssessments?: GuardrailAssessment[];
875
+ action?: GuardrailAction | undefined;
876
+ traceId?: string | undefined;
877
+ inputAssessments?: GuardrailAssessment[] | undefined;
878
+ outputAssessments?: GuardrailAssessment[] | undefined;
877
879
  }
878
880
  export interface CodeInterpreterInvocationInput {
879
- code?: string;
880
- files?: string[];
881
+ code?: string | undefined;
882
+ files?: string[] | undefined;
881
883
  }
882
884
  export declare const InvocationType: {
883
885
  readonly ACTION_GROUP: "ACTION_GROUP";
@@ -888,22 +890,22 @@ export declare const InvocationType: {
888
890
  export type InvocationType =
889
891
  (typeof InvocationType)[keyof typeof InvocationType];
890
892
  export interface KnowledgeBaseLookupInput {
891
- text?: string;
892
- knowledgeBaseId?: string;
893
+ text?: string | undefined;
894
+ knowledgeBaseId?: string | undefined;
893
895
  }
894
896
  export interface InvocationInput {
895
- traceId?: string;
896
- invocationType?: InvocationType;
897
- actionGroupInvocationInput?: ActionGroupInvocationInput;
898
- knowledgeBaseLookupInput?: KnowledgeBaseLookupInput;
899
- codeInterpreterInvocationInput?: CodeInterpreterInvocationInput;
897
+ traceId?: string | undefined;
898
+ invocationType?: InvocationType | undefined;
899
+ actionGroupInvocationInput?: ActionGroupInvocationInput | undefined;
900
+ knowledgeBaseLookupInput?: KnowledgeBaseLookupInput | undefined;
901
+ codeInterpreterInvocationInput?: CodeInterpreterInvocationInput | undefined;
900
902
  }
901
903
  export interface InferenceConfiguration {
902
- temperature?: number;
903
- topP?: number;
904
- topK?: number;
905
- maximumLength?: number;
906
- stopSequences?: string[];
904
+ temperature?: number | undefined;
905
+ topP?: number | undefined;
906
+ topK?: number | undefined;
907
+ maximumLength?: number | undefined;
908
+ stopSequences?: string[] | undefined;
907
909
  }
908
910
  export declare const CreationMode: {
909
911
  readonly DEFAULT: "DEFAULT";
@@ -918,40 +920,40 @@ export declare const PromptType: {
918
920
  };
919
921
  export type PromptType = (typeof PromptType)[keyof typeof PromptType];
920
922
  export interface ModelInvocationInput {
921
- traceId?: string;
922
- text?: string;
923
- type?: PromptType;
924
- overrideLambda?: string;
925
- promptCreationMode?: CreationMode;
926
- inferenceConfiguration?: InferenceConfiguration;
927
- parserMode?: CreationMode;
923
+ traceId?: string | undefined;
924
+ text?: string | undefined;
925
+ type?: PromptType | undefined;
926
+ overrideLambda?: string | undefined;
927
+ promptCreationMode?: CreationMode | undefined;
928
+ inferenceConfiguration?: InferenceConfiguration | undefined;
929
+ parserMode?: CreationMode | undefined;
928
930
  }
929
931
  export interface Usage {
930
- inputTokens?: number;
931
- outputTokens?: number;
932
+ inputTokens?: number | undefined;
933
+ outputTokens?: number | undefined;
932
934
  }
933
935
  export interface Metadata {
934
- usage?: Usage;
936
+ usage?: Usage | undefined;
935
937
  }
936
938
  export interface RawResponse {
937
- content?: string;
939
+ content?: string | undefined;
938
940
  }
939
941
  export interface OrchestrationModelInvocationOutput {
940
- traceId?: string;
941
- rawResponse?: RawResponse;
942
- metadata?: Metadata;
942
+ traceId?: string | undefined;
943
+ rawResponse?: RawResponse | undefined;
944
+ metadata?: Metadata | undefined;
943
945
  }
944
946
  export interface CodeInterpreterInvocationOutput {
945
- executionOutput?: string;
946
- executionError?: string;
947
- files?: string[];
948
- executionTimeout?: boolean;
947
+ executionOutput?: string | undefined;
948
+ executionError?: string | undefined;
949
+ files?: string[] | undefined;
950
+ executionTimeout?: boolean | undefined;
949
951
  }
950
952
  export interface FinalResponse {
951
- text?: string;
953
+ text?: string | undefined;
952
954
  }
953
955
  export interface KnowledgeBaseLookupOutput {
954
- retrievedReferences?: RetrievedReference[];
956
+ retrievedReferences?: RetrievedReference[] | undefined;
955
957
  }
956
958
  export declare const Source: {
957
959
  readonly ACTION_GROUP: "ACTION_GROUP";
@@ -960,8 +962,8 @@ export declare const Source: {
960
962
  };
961
963
  export type Source = (typeof Source)[keyof typeof Source];
962
964
  export interface RepromptResponse {
963
- text?: string;
964
- source?: Source;
965
+ text?: string | undefined;
966
+ source?: Source | undefined;
965
967
  }
966
968
  export declare const Type: {
967
969
  readonly ACTION_GROUP: "ACTION_GROUP";
@@ -972,17 +974,17 @@ export declare const Type: {
972
974
  };
973
975
  export type Type = (typeof Type)[keyof typeof Type];
974
976
  export interface Observation {
975
- traceId?: string;
976
- type?: Type;
977
- actionGroupInvocationOutput?: ActionGroupInvocationOutput;
978
- knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput;
979
- finalResponse?: FinalResponse;
980
- repromptResponse?: RepromptResponse;
981
- codeInterpreterInvocationOutput?: CodeInterpreterInvocationOutput;
977
+ traceId?: string | undefined;
978
+ type?: Type | undefined;
979
+ actionGroupInvocationOutput?: ActionGroupInvocationOutput | undefined;
980
+ knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput | undefined;
981
+ finalResponse?: FinalResponse | undefined;
982
+ repromptResponse?: RepromptResponse | undefined;
983
+ codeInterpreterInvocationOutput?: CodeInterpreterInvocationOutput | undefined;
982
984
  }
983
985
  export interface Rationale {
984
- traceId?: string;
985
- text?: string;
986
+ traceId?: string | undefined;
987
+ text?: string | undefined;
986
988
  }
987
989
  export type OrchestrationTrace =
988
990
  | OrchestrationTrace.InvocationInputMember
@@ -1051,13 +1053,13 @@ export declare namespace OrchestrationTrace {
1051
1053
  const visit: <T>(value: OrchestrationTrace, visitor: Visitor<T>) => T;
1052
1054
  }
1053
1055
  export interface PostProcessingParsedResponse {
1054
- text?: string;
1056
+ text?: string | undefined;
1055
1057
  }
1056
1058
  export interface PostProcessingModelInvocationOutput {
1057
- traceId?: string;
1058
- parsedResponse?: PostProcessingParsedResponse;
1059
- rawResponse?: RawResponse;
1060
- metadata?: Metadata;
1059
+ traceId?: string | undefined;
1060
+ parsedResponse?: PostProcessingParsedResponse | undefined;
1061
+ rawResponse?: RawResponse | undefined;
1062
+ metadata?: Metadata | undefined;
1061
1063
  }
1062
1064
  export type PostProcessingTrace =
1063
1065
  | PostProcessingTrace.ModelInvocationInputMember
@@ -1087,14 +1089,14 @@ export declare namespace PostProcessingTrace {
1087
1089
  const visit: <T>(value: PostProcessingTrace, visitor: Visitor<T>) => T;
1088
1090
  }
1089
1091
  export interface PreProcessingParsedResponse {
1090
- rationale?: string;
1091
- isValid?: boolean;
1092
+ rationale?: string | undefined;
1093
+ isValid?: boolean | undefined;
1092
1094
  }
1093
1095
  export interface PreProcessingModelInvocationOutput {
1094
- traceId?: string;
1095
- parsedResponse?: PreProcessingParsedResponse;
1096
- rawResponse?: RawResponse;
1097
- metadata?: Metadata;
1096
+ traceId?: string | undefined;
1097
+ parsedResponse?: PreProcessingParsedResponse | undefined;
1098
+ rawResponse?: RawResponse | undefined;
1099
+ metadata?: Metadata | undefined;
1098
1100
  }
1099
1101
  export type PreProcessingTrace =
1100
1102
  | PreProcessingTrace.ModelInvocationInputMember
@@ -1190,11 +1192,11 @@ export declare namespace Trace {
1190
1192
  const visit: <T>(value: Trace, visitor: Visitor<T>) => T;
1191
1193
  }
1192
1194
  export interface TracePart {
1193
- agentId?: string;
1194
- agentAliasId?: string;
1195
- sessionId?: string;
1196
- agentVersion?: string;
1197
- trace?: Trace;
1195
+ agentId?: string | undefined;
1196
+ agentAliasId?: string | undefined;
1197
+ sessionId?: string | undefined;
1198
+ agentVersion?: string | undefined;
1199
+ trace?: Trace | undefined;
1198
1200
  }
1199
1201
  export type ResponseStream =
1200
1202
  | ResponseStream.AccessDeniedExceptionMember
@@ -1458,12 +1460,12 @@ export interface InvokeAgentResponse {
1458
1460
  completion: AsyncIterable<ResponseStream> | undefined;
1459
1461
  contentType: string | undefined;
1460
1462
  sessionId: string | undefined;
1461
- memoryId?: string;
1463
+ memoryId?: string | undefined;
1462
1464
  }
1463
1465
  export interface DeleteAgentMemoryRequest {
1464
1466
  agentId: string | undefined;
1465
1467
  agentAliasId: string | undefined;
1466
- memoryId?: string;
1468
+ memoryId?: string | undefined;
1467
1469
  }
1468
1470
  export interface DeleteAgentMemoryResponse {}
1469
1471
  export declare const MemoryType: {
@@ -1471,19 +1473,19 @@ export declare const MemoryType: {
1471
1473
  };
1472
1474
  export type MemoryType = (typeof MemoryType)[keyof typeof MemoryType];
1473
1475
  export interface GetAgentMemoryRequest {
1474
- nextToken?: string;
1475
- maxItems?: number;
1476
+ nextToken?: string | undefined;
1477
+ maxItems?: number | undefined;
1476
1478
  agentId: string | undefined;
1477
1479
  agentAliasId: string | undefined;
1478
1480
  memoryType: MemoryType | undefined;
1479
1481
  memoryId: string | undefined;
1480
1482
  }
1481
1483
  export interface MemorySessionSummary {
1482
- memoryId?: string;
1483
- sessionId?: string;
1484
- sessionStartTime?: Date;
1485
- sessionExpiryTime?: Date;
1486
- summaryText?: string;
1484
+ memoryId?: string | undefined;
1485
+ sessionId?: string | undefined;
1486
+ sessionStartTime?: Date | undefined;
1487
+ sessionExpiryTime?: Date | undefined;
1488
+ summaryText?: string | undefined;
1487
1489
  }
1488
1490
  export type Memory = Memory.SessionSummaryMember | Memory.$UnknownMember;
1489
1491
  export declare namespace Memory {
@@ -1502,8 +1504,8 @@ export declare namespace Memory {
1502
1504
  const visit: <T>(value: Memory, visitor: Visitor<T>) => T;
1503
1505
  }
1504
1506
  export interface GetAgentMemoryResponse {
1505
- nextToken?: string;
1506
- memoryContents?: Memory[];
1507
+ nextToken?: string | undefined;
1508
+ memoryContents?: Memory[] | undefined;
1507
1509
  }
1508
1510
  export interface RetrieveAndGenerateInput {
1509
1511
  text: string | undefined;
@@ -1513,22 +1515,22 @@ export interface GuardrailConfiguration {
1513
1515
  guardrailVersion: string | undefined;
1514
1516
  }
1515
1517
  export interface TextInferenceConfig {
1516
- temperature?: number;
1517
- topP?: number;
1518
- maxTokens?: number;
1519
- stopSequences?: string[];
1518
+ temperature?: number | undefined;
1519
+ topP?: number | undefined;
1520
+ maxTokens?: number | undefined;
1521
+ stopSequences?: string[] | undefined;
1520
1522
  }
1521
1523
  export interface InferenceConfig {
1522
- textInferenceConfig?: TextInferenceConfig;
1524
+ textInferenceConfig?: TextInferenceConfig | undefined;
1523
1525
  }
1524
1526
  export interface PromptTemplate {
1525
- textPromptTemplate?: string;
1527
+ textPromptTemplate?: string | undefined;
1526
1528
  }
1527
1529
  export interface ExternalSourcesGenerationConfiguration {
1528
- promptTemplate?: PromptTemplate;
1529
- guardrailConfiguration?: GuardrailConfiguration;
1530
- inferenceConfig?: InferenceConfig;
1531
- additionalModelRequestFields?: Record<string, __DocumentType>;
1530
+ promptTemplate?: PromptTemplate | undefined;
1531
+ guardrailConfiguration?: GuardrailConfiguration | undefined;
1532
+ inferenceConfig?: InferenceConfig | undefined;
1533
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
1532
1534
  }
1533
1535
  export interface ByteContentDoc {
1534
1536
  identifier: string | undefined;
@@ -1546,19 +1548,19 @@ export type ExternalSourceType =
1546
1548
  (typeof ExternalSourceType)[keyof typeof ExternalSourceType];
1547
1549
  export interface ExternalSource {
1548
1550
  sourceType: ExternalSourceType | undefined;
1549
- s3Location?: S3ObjectDoc;
1550
- byteContent?: ByteContentDoc;
1551
+ s3Location?: S3ObjectDoc | undefined;
1552
+ byteContent?: ByteContentDoc | undefined;
1551
1553
  }
1552
1554
  export interface ExternalSourcesRetrieveAndGenerateConfiguration {
1553
1555
  modelArn: string | undefined;
1554
1556
  sources: ExternalSource[] | undefined;
1555
- generationConfiguration?: ExternalSourcesGenerationConfiguration;
1557
+ generationConfiguration?: ExternalSourcesGenerationConfiguration | undefined;
1556
1558
  }
1557
1559
  export interface GenerationConfiguration {
1558
- promptTemplate?: PromptTemplate;
1559
- guardrailConfiguration?: GuardrailConfiguration;
1560
- inferenceConfig?: InferenceConfig;
1561
- additionalModelRequestFields?: Record<string, __DocumentType>;
1560
+ promptTemplate?: PromptTemplate | undefined;
1561
+ guardrailConfiguration?: GuardrailConfiguration | undefined;
1562
+ inferenceConfig?: InferenceConfig | undefined;
1563
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
1562
1564
  }
1563
1565
  export declare const QueryTransformationType: {
1564
1566
  readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
@@ -1569,10 +1571,12 @@ export interface QueryTransformationConfiguration {
1569
1571
  type: QueryTransformationType | undefined;
1570
1572
  }
1571
1573
  export interface OrchestrationConfiguration {
1572
- promptTemplate?: PromptTemplate;
1573
- inferenceConfig?: InferenceConfig;
1574
- additionalModelRequestFields?: Record<string, __DocumentType>;
1575
- queryTransformationConfiguration?: QueryTransformationConfiguration;
1574
+ promptTemplate?: PromptTemplate | undefined;
1575
+ inferenceConfig?: InferenceConfig | undefined;
1576
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
1577
+ queryTransformationConfiguration?:
1578
+ | QueryTransformationConfiguration
1579
+ | undefined;
1576
1580
  }
1577
1581
  export declare const RetrieveAndGenerateType: {
1578
1582
  readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
@@ -1595,21 +1599,21 @@ export interface RetrieveAndGenerateOutput {
1595
1599
  export interface RetrieveAndGenerateResponse {
1596
1600
  sessionId: string | undefined;
1597
1601
  output: RetrieveAndGenerateOutput | undefined;
1598
- citations?: Citation[];
1599
- guardrailAction?: GuadrailAction;
1602
+ citations?: Citation[] | undefined;
1603
+ guardrailAction?: GuadrailAction | undefined;
1600
1604
  }
1601
1605
  export interface KnowledgeBaseQuery {
1602
1606
  text: string | undefined;
1603
1607
  }
1604
1608
  export interface KnowledgeBaseRetrievalResult {
1605
1609
  content: RetrievalResultContent | undefined;
1606
- location?: RetrievalResultLocation;
1607
- score?: number;
1608
- metadata?: Record<string, __DocumentType>;
1610
+ location?: RetrievalResultLocation | undefined;
1611
+ score?: number | undefined;
1612
+ metadata?: Record<string, __DocumentType> | undefined;
1609
1613
  }
1610
1614
  export interface RetrieveResponse {
1611
1615
  retrievalResults: KnowledgeBaseRetrievalResult[] | undefined;
1612
- nextToken?: string;
1616
+ nextToken?: string | undefined;
1613
1617
  }
1614
1618
  export type RetrievalFilter =
1615
1619
  | RetrievalFilter.AndAllMember
@@ -1870,9 +1874,9 @@ export declare namespace RetrievalFilter {
1870
1874
  const visit: <T>(value: RetrievalFilter, visitor: Visitor<T>) => T;
1871
1875
  }
1872
1876
  export interface KnowledgeBaseVectorSearchConfiguration {
1873
- numberOfResults?: number;
1874
- overrideSearchType?: SearchType;
1875
- filter?: RetrievalFilter;
1877
+ numberOfResults?: number | undefined;
1878
+ overrideSearchType?: SearchType | undefined;
1879
+ filter?: RetrievalFilter | undefined;
1876
1880
  }
1877
1881
  export interface KnowledgeBaseRetrievalConfiguration {
1878
1882
  vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
@@ -1884,44 +1888,50 @@ export interface KnowledgeBaseConfiguration {
1884
1888
  export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
1885
1889
  knowledgeBaseId: string | undefined;
1886
1890
  modelArn: string | undefined;
1887
- retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
1888
- generationConfiguration?: GenerationConfiguration;
1889
- orchestrationConfiguration?: OrchestrationConfiguration;
1891
+ retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
1892
+ generationConfiguration?: GenerationConfiguration | undefined;
1893
+ orchestrationConfiguration?: OrchestrationConfiguration | undefined;
1890
1894
  }
1891
1895
  export interface RetrieveRequest {
1892
1896
  knowledgeBaseId: string | undefined;
1893
1897
  retrievalQuery: KnowledgeBaseQuery | undefined;
1894
- retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
1895
- nextToken?: string;
1898
+ retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
1899
+ nextToken?: string | undefined;
1896
1900
  }
1897
1901
  export interface RetrieveAndGenerateConfiguration {
1898
1902
  type: RetrieveAndGenerateType | undefined;
1899
- knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration;
1900
- externalSourcesConfiguration?: ExternalSourcesRetrieveAndGenerateConfiguration;
1903
+ knowledgeBaseConfiguration?:
1904
+ | KnowledgeBaseRetrieveAndGenerateConfiguration
1905
+ | undefined;
1906
+ externalSourcesConfiguration?:
1907
+ | ExternalSourcesRetrieveAndGenerateConfiguration
1908
+ | undefined;
1901
1909
  }
1902
1910
  export interface RetrieveAndGenerateRequest {
1903
- sessionId?: string;
1911
+ sessionId?: string | undefined;
1904
1912
  input: RetrieveAndGenerateInput | undefined;
1905
- retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration;
1906
- sessionConfiguration?: RetrieveAndGenerateSessionConfiguration;
1913
+ retrieveAndGenerateConfiguration?:
1914
+ | RetrieveAndGenerateConfiguration
1915
+ | undefined;
1916
+ sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
1907
1917
  }
1908
1918
  export interface SessionState {
1909
- sessionAttributes?: Record<string, string>;
1910
- promptSessionAttributes?: Record<string, string>;
1911
- returnControlInvocationResults?: InvocationResultMember[];
1912
- invocationId?: string;
1913
- files?: InputFile[];
1914
- knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[];
1919
+ sessionAttributes?: Record<string, string> | undefined;
1920
+ promptSessionAttributes?: Record<string, string> | undefined;
1921
+ returnControlInvocationResults?: InvocationResultMember[] | undefined;
1922
+ invocationId?: string | undefined;
1923
+ files?: InputFile[] | undefined;
1924
+ knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
1915
1925
  }
1916
1926
  export interface InvokeAgentRequest {
1917
- sessionState?: SessionState;
1927
+ sessionState?: SessionState | undefined;
1918
1928
  agentId: string | undefined;
1919
1929
  agentAliasId: string | undefined;
1920
1930
  sessionId: string | undefined;
1921
- endSession?: boolean;
1922
- enableTrace?: boolean;
1923
- inputText?: string;
1924
- memoryId?: string;
1931
+ endSession?: boolean | undefined;
1932
+ enableTrace?: boolean | undefined;
1933
+ inputText?: string | undefined;
1934
+ memoryId?: string | undefined;
1925
1935
  }
1926
1936
  export declare const ActionGroupInvocationInputFilterSensitiveLog: (
1927
1937
  obj: ActionGroupInvocationInput