@aws-sdk/client-bedrock-agent-runtime 3.675.0 → 3.676.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +18 -1
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +9 -1
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +16 -0
- package/dist-types/models/models_0.d.ts +33 -6
- package/dist-types/ts3.4/models/models_0.d.ts +7 -3
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -114,6 +114,7 @@ __export(src_exports, {
|
|
|
114
114
|
ModelInvocationInputFilterSensitiveLog: () => ModelInvocationInputFilterSensitiveLog,
|
|
115
115
|
NodeType: () => NodeType,
|
|
116
116
|
ObservationFilterSensitiveLog: () => ObservationFilterSensitiveLog,
|
|
117
|
+
OrchestrationConfigurationFilterSensitiveLog: () => OrchestrationConfigurationFilterSensitiveLog,
|
|
117
118
|
OrchestrationModelInvocationOutputFilterSensitiveLog: () => OrchestrationModelInvocationOutputFilterSensitiveLog,
|
|
118
119
|
OrchestrationTrace: () => OrchestrationTrace,
|
|
119
120
|
OrchestrationTraceFilterSensitiveLog: () => OrchestrationTraceFilterSensitiveLog,
|
|
@@ -1243,6 +1244,10 @@ var GenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
1243
1244
|
...obj,
|
|
1244
1245
|
...obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }
|
|
1245
1246
|
}), "GenerationConfigurationFilterSensitiveLog");
|
|
1247
|
+
var OrchestrationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1248
|
+
...obj,
|
|
1249
|
+
...obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }
|
|
1250
|
+
}), "OrchestrationConfigurationFilterSensitiveLog");
|
|
1246
1251
|
var RetrieveAndGenerateOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1247
1252
|
...obj
|
|
1248
1253
|
}), "RetrieveAndGenerateOutputFilterSensitiveLog");
|
|
@@ -1317,6 +1322,9 @@ var KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE
|
|
|
1317
1322
|
},
|
|
1318
1323
|
...obj.generationConfiguration && {
|
|
1319
1324
|
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration)
|
|
1325
|
+
},
|
|
1326
|
+
...obj.orchestrationConfiguration && {
|
|
1327
|
+
orchestrationConfiguration: OrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration)
|
|
1320
1328
|
}
|
|
1321
1329
|
}), "KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
1322
1330
|
var RetrieveRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -2097,7 +2105,7 @@ var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((i
|
|
|
2097
2105
|
generationConfiguration: (_) => se_GenerationConfiguration(_, context),
|
|
2098
2106
|
knowledgeBaseId: [],
|
|
2099
2107
|
modelArn: [],
|
|
2100
|
-
orchestrationConfiguration:
|
|
2108
|
+
orchestrationConfiguration: (_) => se_OrchestrationConfiguration(_, context),
|
|
2101
2109
|
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2102
2110
|
});
|
|
2103
2111
|
}, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
@@ -2108,6 +2116,14 @@ var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, c
|
|
|
2108
2116
|
overrideSearchType: []
|
|
2109
2117
|
});
|
|
2110
2118
|
}, "se_KnowledgeBaseVectorSearchConfiguration");
|
|
2119
|
+
var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2120
|
+
return (0, import_smithy_client.take)(input, {
|
|
2121
|
+
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
2122
|
+
inferenceConfig: (_) => se_InferenceConfig(_, context),
|
|
2123
|
+
promptTemplate: import_smithy_client._json,
|
|
2124
|
+
queryTransformationConfiguration: import_smithy_client._json
|
|
2125
|
+
});
|
|
2126
|
+
}, "se_OrchestrationConfiguration");
|
|
2111
2127
|
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
2112
2128
|
return RetrievalFilter.visit(input, {
|
|
2113
2129
|
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
@@ -2677,6 +2693,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
2677
2693
|
ExternalSourceFilterSensitiveLog,
|
|
2678
2694
|
ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
2679
2695
|
GenerationConfigurationFilterSensitiveLog,
|
|
2696
|
+
OrchestrationConfigurationFilterSensitiveLog,
|
|
2680
2697
|
RetrieveAndGenerateOutputFilterSensitiveLog,
|
|
2681
2698
|
RetrieveAndGenerateResponseFilterSensitiveLog,
|
|
2682
2699
|
KnowledgeBaseQueryFilterSensitiveLog,
|
|
@@ -858,6 +858,10 @@ export const GenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
858
858
|
...obj,
|
|
859
859
|
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
860
860
|
});
|
|
861
|
+
export const OrchestrationConfigurationFilterSensitiveLog = (obj) => ({
|
|
862
|
+
...obj,
|
|
863
|
+
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
864
|
+
});
|
|
861
865
|
export const RetrieveAndGenerateOutputFilterSensitiveLog = (obj) => ({
|
|
862
866
|
...obj,
|
|
863
867
|
});
|
|
@@ -933,6 +937,9 @@ export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (
|
|
|
933
937
|
...(obj.generationConfiguration && {
|
|
934
938
|
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
935
939
|
}),
|
|
940
|
+
...(obj.orchestrationConfiguration && {
|
|
941
|
+
orchestrationConfiguration: OrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration),
|
|
942
|
+
}),
|
|
936
943
|
});
|
|
937
944
|
export const RetrieveRequestFilterSensitiveLog = (obj) => ({
|
|
938
945
|
...obj,
|
|
@@ -713,7 +713,7 @@ const se_KnowledgeBaseRetrieveAndGenerateConfiguration = (input, context) => {
|
|
|
713
713
|
generationConfiguration: (_) => se_GenerationConfiguration(_, context),
|
|
714
714
|
knowledgeBaseId: [],
|
|
715
715
|
modelArn: [],
|
|
716
|
-
orchestrationConfiguration:
|
|
716
|
+
orchestrationConfiguration: (_) => se_OrchestrationConfiguration(_, context),
|
|
717
717
|
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
|
|
718
718
|
});
|
|
719
719
|
};
|
|
@@ -724,6 +724,14 @@ const se_KnowledgeBaseVectorSearchConfiguration = (input, context) => {
|
|
|
724
724
|
overrideSearchType: [],
|
|
725
725
|
});
|
|
726
726
|
};
|
|
727
|
+
const se_OrchestrationConfiguration = (input, context) => {
|
|
728
|
+
return take(input, {
|
|
729
|
+
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
730
|
+
inferenceConfig: (_) => se_InferenceConfig(_, context),
|
|
731
|
+
promptTemplate: _json,
|
|
732
|
+
queryTransformationConfiguration: _json,
|
|
733
|
+
});
|
|
734
|
+
};
|
|
727
735
|
const se_RetrievalFilter = (input, context) => {
|
|
728
736
|
return RetrievalFilter.visit(input, {
|
|
729
737
|
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
@@ -125,6 +125,22 @@ declare const RetrieveAndGenerateCommand_base: {
|
|
|
125
125
|
* },
|
|
126
126
|
* },
|
|
127
127
|
* orchestrationConfiguration: { // OrchestrationConfiguration
|
|
128
|
+
* promptTemplate: {
|
|
129
|
+
* textPromptTemplate: "STRING_VALUE",
|
|
130
|
+
* },
|
|
131
|
+
* inferenceConfig: {
|
|
132
|
+
* textInferenceConfig: {
|
|
133
|
+
* temperature: Number("float"),
|
|
134
|
+
* topP: Number("float"),
|
|
135
|
+
* maxTokens: Number("int"),
|
|
136
|
+
* stopSequences: [
|
|
137
|
+
* "STRING_VALUE",
|
|
138
|
+
* ],
|
|
139
|
+
* },
|
|
140
|
+
* },
|
|
141
|
+
* additionalModelRequestFields: {
|
|
142
|
+
* "<keys>": "DOCUMENT_VALUE",
|
|
143
|
+
* },
|
|
128
144
|
* queryTransformationConfiguration: { // QueryTransformationConfiguration
|
|
129
145
|
* type: "QUERY_DECOMPOSITION", // required
|
|
130
146
|
* },
|
|
@@ -2229,7 +2229,7 @@ export interface OrchestrationModelInvocationOutput {
|
|
|
2229
2229
|
*/
|
|
2230
2230
|
rawResponse?: RawResponse;
|
|
2231
2231
|
/**
|
|
2232
|
-
* <p>Contains information about the foundation model output.</p>
|
|
2232
|
+
* <p>Contains information about the foundation model output from the orchestration step.</p>
|
|
2233
2233
|
* @public
|
|
2234
2234
|
*/
|
|
2235
2235
|
metadata?: Metadata;
|
|
@@ -2533,12 +2533,16 @@ export interface PostProcessingModelInvocationOutput {
|
|
|
2533
2533
|
*/
|
|
2534
2534
|
parsedResponse?: PostProcessingParsedResponse;
|
|
2535
2535
|
/**
|
|
2536
|
-
* <p>
|
|
2536
|
+
* <p>
|
|
2537
|
+
* Details of the raw response from the foundation model output.
|
|
2538
|
+
* </p>
|
|
2537
2539
|
* @public
|
|
2538
2540
|
*/
|
|
2539
2541
|
rawResponse?: RawResponse;
|
|
2540
2542
|
/**
|
|
2541
|
-
* <p>
|
|
2543
|
+
* <p>
|
|
2544
|
+
* Contains information about the foundation model output from the post-processing step.
|
|
2545
|
+
* </p>
|
|
2542
2546
|
* @public
|
|
2543
2547
|
*/
|
|
2544
2548
|
metadata?: Metadata;
|
|
@@ -2628,12 +2632,16 @@ export interface PreProcessingModelInvocationOutput {
|
|
|
2628
2632
|
*/
|
|
2629
2633
|
parsedResponse?: PreProcessingParsedResponse;
|
|
2630
2634
|
/**
|
|
2631
|
-
* <p>
|
|
2635
|
+
* <p>
|
|
2636
|
+
* Details of the raw response from the foundation model output.
|
|
2637
|
+
* </p>
|
|
2632
2638
|
* @public
|
|
2633
2639
|
*/
|
|
2634
2640
|
rawResponse?: RawResponse;
|
|
2635
2641
|
/**
|
|
2636
|
-
* <p>
|
|
2642
|
+
* <p>
|
|
2643
|
+
* Contains information about the foundation model output from the pre-processing step.
|
|
2644
|
+
* </p>
|
|
2637
2645
|
* @public
|
|
2638
2646
|
*/
|
|
2639
2647
|
metadata?: Metadata;
|
|
@@ -3583,12 +3591,27 @@ export interface QueryTransformationConfiguration {
|
|
|
3583
3591
|
* @public
|
|
3584
3592
|
*/
|
|
3585
3593
|
export interface OrchestrationConfiguration {
|
|
3594
|
+
/**
|
|
3595
|
+
* <p>Contains the template for the prompt that's sent to the model for response generation.</p>
|
|
3596
|
+
* @public
|
|
3597
|
+
*/
|
|
3598
|
+
promptTemplate?: PromptTemplate;
|
|
3599
|
+
/**
|
|
3600
|
+
* <p> Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source. </p>
|
|
3601
|
+
* @public
|
|
3602
|
+
*/
|
|
3603
|
+
inferenceConfig?: InferenceConfig;
|
|
3604
|
+
/**
|
|
3605
|
+
* <p> Additional model parameters and corresponding values not included in the textInferenceConfig structure for a knowledge base. This allows users to provide custom model parameters specific to the language model being used. </p>
|
|
3606
|
+
* @public
|
|
3607
|
+
*/
|
|
3608
|
+
additionalModelRequestFields?: Record<string, __DocumentType>;
|
|
3586
3609
|
/**
|
|
3587
3610
|
* <p>To split up the prompt and retrieve multiple sources, set the transformation type to
|
|
3588
3611
|
* <code>QUERY_DECOMPOSITION</code>.</p>
|
|
3589
3612
|
* @public
|
|
3590
3613
|
*/
|
|
3591
|
-
queryTransformationConfiguration
|
|
3614
|
+
queryTransformationConfiguration?: QueryTransformationConfiguration;
|
|
3592
3615
|
}
|
|
3593
3616
|
/**
|
|
3594
3617
|
* @public
|
|
@@ -4673,6 +4696,10 @@ export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensit
|
|
|
4673
4696
|
* @internal
|
|
4674
4697
|
*/
|
|
4675
4698
|
export declare const GenerationConfigurationFilterSensitiveLog: (obj: GenerationConfiguration) => any;
|
|
4699
|
+
/**
|
|
4700
|
+
* @internal
|
|
4701
|
+
*/
|
|
4702
|
+
export declare const OrchestrationConfigurationFilterSensitiveLog: (obj: OrchestrationConfiguration) => any;
|
|
4676
4703
|
/**
|
|
4677
4704
|
* @internal
|
|
4678
4705
|
*/
|
|
@@ -1436,9 +1436,10 @@ export interface QueryTransformationConfiguration {
|
|
|
1436
1436
|
type: QueryTransformationType | undefined;
|
|
1437
1437
|
}
|
|
1438
1438
|
export interface OrchestrationConfiguration {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1439
|
+
promptTemplate?: PromptTemplate;
|
|
1440
|
+
inferenceConfig?: InferenceConfig;
|
|
1441
|
+
additionalModelRequestFields?: Record<string, __DocumentType>;
|
|
1442
|
+
queryTransformationConfiguration?: QueryTransformationConfiguration;
|
|
1442
1443
|
}
|
|
1443
1444
|
export declare const RetrieveAndGenerateType: {
|
|
1444
1445
|
readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
|
|
@@ -1965,6 +1966,9 @@ export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensit
|
|
|
1965
1966
|
export declare const GenerationConfigurationFilterSensitiveLog: (
|
|
1966
1967
|
obj: GenerationConfiguration
|
|
1967
1968
|
) => any;
|
|
1969
|
+
export declare const OrchestrationConfigurationFilterSensitiveLog: (
|
|
1970
|
+
obj: OrchestrationConfiguration
|
|
1971
|
+
) => any;
|
|
1968
1972
|
export declare const RetrieveAndGenerateOutputFilterSensitiveLog: (
|
|
1969
1973
|
obj: RetrieveAndGenerateOutput
|
|
1970
1974
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.676.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
|