Skip to content

Commit 3fee5bd

Browse files
author
awstools
committed
feat(client-bedrock-agent-runtime): This releases adds the additionalModelRequestFields field to the InvokeInlineAgent operation. Use additionalModelRequestFields to specify additional inference parameters for a model beyond the base inference parameters.
1 parent 217e1cb commit 3fee5bd

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

clients/client-bedrock-agent-runtime/src/commands/InvokeInlineAgentCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
288288
* ],
289289
* },
290290
* parserMode: "DEFAULT" || "OVERRIDDEN",
291+
* additionalModelRequestFields: "DOCUMENT_VALUE",
291292
* },
292293
* ],
293294
* overrideLambda: "STRING_VALUE",

clients/client-bedrock-agent-runtime/src/models/models_0.ts

+12
Original file line numberDiff line numberDiff line change
@@ -5845,6 +5845,18 @@ export interface PromptConfiguration {
58455845
* @public
58465846
*/
58475847
parserMode?: CreationMode | undefined;
5848+
5849+
/**
5850+
* <p>If the Converse or ConverseStream operations support the model,
5851+
* <code>additionalModelRequestFields</code> contains additional inference parameters,
5852+
* beyond the base set of inference parameters in the <code>inferenceConfiguration</code>
5853+
* field. </p>
5854+
* <p>For more information, see <i>Inference request parameters and
5855+
* response fields for foundation models</i> in the Amazon Bedrock user
5856+
* guide.</p>
5857+
* @public
5858+
*/
5859+
additionalModelRequestFields?: __DocumentType | undefined;
58485860
}
58495861

58505862
/**

clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,7 @@ const se_OrchestrationConfiguration = (input: OrchestrationConfiguration, contex
19521952
*/
19531953
const se_PromptConfiguration = (input: PromptConfiguration, context: __SerdeContext): any => {
19541954
return take(input, {
1955+
additionalModelRequestFields: (_) => se_Document(_, context),
19551956
basePromptTemplate: [],
19561957
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
19571958
parserMode: [],

codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json

+6
Original file line numberDiff line numberDiff line change
@@ -6673,6 +6673,12 @@
66736673
"traits": {
66746674
"smithy.api#documentation": "<p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>OVERRIDEN</code>, the <code>overrideLambda</code> field in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> must be specified with the ARN of a Lambda function.</p>"
66756675
}
6676+
},
6677+
"additionalModelRequestFields": {
6678+
"target": "smithy.api#Document",
6679+
"traits": {
6680+
"smithy.api#documentation": "<p>If the Converse or ConverseStream operations support the model,\n <code>additionalModelRequestFields</code> contains additional inference parameters,\n beyond the base set of inference parameters in the <code>inferenceConfiguration</code>\n field. </p>\n <p>For more information, see <i>Inference request parameters and\n response fields for foundation models</i> in the Amazon Bedrock user\n guide.</p>"
6681+
}
66766682
}
66776683
},
66786684
"traits": {

0 commit comments

Comments
 (0)