diff --git a/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts index 1175c987576bf..89f8daf57e47d 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts @@ -90,6 +90,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * actionGroup: "STRING_VALUE", // required * httpMethod: "STRING_VALUE", * apiPath: "STRING_VALUE", + * confirmationState: "CONFIRM" || "DENY", * responseBody: { // ResponseBody * "": { // ContentBody * body: "STRING_VALUE", @@ -100,6 +101,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * }, * functionResult: { // FunctionResult * actionGroup: "STRING_VALUE", // required + * confirmationState: "CONFIRM" || "DENY", * function: "STRING_VALUE", * responseBody: { * "": { @@ -578,6 +580,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // }, * // }, * // }, + * // actionInvocationType: "RESULT" || "USER_CONFIRMATION" || "USER_CONFIRMATION_AND_RESULT", * // }, * // functionInvocationInput: { // FunctionInvocationInput * // actionGroup: "STRING_VALUE", // required @@ -589,6 +592,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // }, * // ], * // function: "STRING_VALUE", + * // actionInvocationType: "RESULT" || "USER_CONFIRMATION" || "USER_CONFIRMATION_AND_RESULT", * // }, * // }, * // ], diff --git a/clients/client-bedrock-agent-runtime/src/models/models_0.ts b/clients/client-bedrock-agent-runtime/src/models/models_0.ts index ece7a8f28f10a..ee3f45945deeb 100644 --- a/clients/client-bedrock-agent-runtime/src/models/models_0.ts +++ b/clients/client-bedrock-agent-runtime/src/models/models_0.ts @@ -141,6 +141,21 @@ export interface ActionGroupInvocationOutput { text?: string; } +/** + * @public + * @enum + */ +export const ActionInvocationType = { + RESULT: "RESULT", + USER_CONFIRMATION: "USER_CONFIRMATION", + USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT", +} as const; + +/** + * @public + */ +export type ActionInvocationType = (typeof ActionInvocationType)[keyof typeof ActionInvocationType]; + /** *

There was an issue with a dependency due to a server issue. Retry your request.

* @public @@ -995,6 +1010,20 @@ export const SearchType = { */ export type SearchType = (typeof SearchType)[keyof typeof SearchType]; +/** + * @public + * @enum + */ +export const ConfirmationState = { + CONFIRM: "CONFIRM", + DENY: "DENY", +} as const; + +/** + * @public + */ +export type ConfirmationState = (typeof ConfirmationState)[keyof typeof ConfirmationState]; + /** *

Contains the body of the API response.

*

This data type is used in the following API operations:

@@ -1058,6 +1087,12 @@ export interface ApiResult { */ apiPath?: string; + /** + *

Controls the API operations or functions to invoke based on the user confirmation.

+ * @public + */ + confirmationState?: ConfirmationState; + /** *

The response body from the API operation. The key of the object is the content type (currently, only TEXT is supported). The response may be returned directly or from the Lambda function.

* @public @@ -1095,6 +1130,12 @@ export interface FunctionResult { */ actionGroup: string | undefined; + /** + *

Contains the user confirmation information about the function that was called.

+ * @public + */ + confirmationState?: ConfirmationState; + /** *

The name of the function that was called.

* @public @@ -1670,6 +1711,12 @@ export interface ApiInvocationInput { * @public */ requestBody?: ApiRequestBody; + + /** + *

Contains information about the API operation to invoke.

+ * @public + */ + actionInvocationType?: ActionInvocationType; } /** @@ -1732,6 +1779,12 @@ export interface FunctionInvocationInput { * @public */ function?: string; + + /** + *

Contains information about the function to invoke,

+ * @public + */ + actionInvocationType?: ActionInvocationType; } /** diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json index 2060139848a3e..1e316e03d3084 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json @@ -96,6 +96,29 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.bedrockagentruntime#ActionInvocationType": { + "type": "enum", + "members": { + "RESULT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RESULT" + } + }, + "USER_CONFIRMATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "USER_CONFIRMATION" + } + }, + "USER_CONFIRMATION_AND_RESULT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "USER_CONFIRMATION_AND_RESULT" + } + } + } + }, "com.amazonaws.bedrockagentruntime#AdditionalModelRequestFields": { "type": "map", "key": { @@ -886,6 +909,12 @@ "traits": { "smithy.api#documentation": "

The request body to provide for the API request, as the agent elicited from the user.

" } + }, + "actionInvocationType": { + "target": "com.amazonaws.bedrockagentruntime#ActionInvocationType", + "traits": { + "smithy.api#documentation": "

Contains information about the API operation to invoke.

" + } } }, "traits": { @@ -966,6 +995,12 @@ "smithy.api#documentation": "

The path to the API operation.

" } }, + "confirmationState": { + "target": "com.amazonaws.bedrockagentruntime#ConfirmationState", + "traits": { + "smithy.api#documentation": "

Controls the API operations or functions to invoke based on the user confirmation.

" + } + }, "responseBody": { "target": "com.amazonaws.bedrockagentruntime#ResponseBody", "traits": { @@ -1171,6 +1206,23 @@ "smithy.api#documentation": "

Contains the JSON-formatted string returned by the API invoked by the code interpreter.

" } }, + "com.amazonaws.bedrockagentruntime#ConfirmationState": { + "type": "enum", + "members": { + "CONFIRM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONFIRM" + } + }, + "DENY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DENY" + } + } + } + }, "com.amazonaws.bedrockagentruntime#ConflictException": { "type": "structure", "members": { @@ -1900,6 +1952,12 @@ "traits": { "smithy.api#documentation": "

The name of the function.

" } + }, + "actionInvocationType": { + "target": "com.amazonaws.bedrockagentruntime#ActionInvocationType", + "traits": { + "smithy.api#documentation": "

Contains information about the function to invoke,

" + } } }, "traits": { @@ -1948,6 +2006,12 @@ "smithy.api#required": {} } }, + "confirmationState": { + "target": "com.amazonaws.bedrockagentruntime#ConfirmationState", + "traits": { + "smithy.api#documentation": "

Contains the user confirmation information about the function that was called.

" + } + }, "function": { "target": "smithy.api#String", "traits": {