diff --git a/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts index cb8b9cf58fa3..9724a418bc44 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts @@ -1039,6 +1039,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat * // agentAliasArn: "STRING_VALUE", * // }, * // ], + * // eventTime: new Date("TIMESTAMP"), * // collaboratorName: "STRING_VALUE", * // }, * // returnControl: { diff --git a/clients/client-bedrock-agent-runtime/src/commands/InvokeInlineAgentCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/InvokeInlineAgentCommand.ts index eaa3936063aa..745847343aa7 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/InvokeInlineAgentCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/InvokeInlineAgentCommand.ts @@ -65,66 +65,7 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons * // const { BedrockAgentRuntimeClient, InvokeInlineAgentCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import * const client = new BedrockAgentRuntimeClient(config); * const input = { // InvokeInlineAgentRequest - * sessionId: "STRING_VALUE", // required * customerEncryptionKeyArn: "STRING_VALUE", - * endSession: true || false, - * enableTrace: true || false, - * inputText: "STRING_VALUE", - * inlineSessionState: { // InlineSessionState - * sessionAttributes: { // SessionAttributesMap - * "": "STRING_VALUE", - * }, - * promptSessionAttributes: { // PromptSessionAttributesMap - * "": "STRING_VALUE", - * }, - * returnControlInvocationResults: [ // ReturnControlInvocationResults - * { // InvocationResultMember Union: only one key present - * apiResult: { // ApiResult - * actionGroup: "STRING_VALUE", // required - * httpMethod: "STRING_VALUE", - * apiPath: "STRING_VALUE", - * confirmationState: "CONFIRM" || "DENY", - * responseState: "FAILURE" || "REPROMPT", - * httpStatusCode: Number("int"), - * responseBody: { // ResponseBody - * "": { // ContentBody - * body: "STRING_VALUE", - * }, - * }, - * agentId: "STRING_VALUE", - * }, - * functionResult: { // FunctionResult - * actionGroup: "STRING_VALUE", // required - * confirmationState: "CONFIRM" || "DENY", - * function: "STRING_VALUE", - * responseBody: { - * "": { - * body: "STRING_VALUE", - * }, - * }, - * responseState: "FAILURE" || "REPROMPT", - * agentId: "STRING_VALUE", - * }, - * }, - * ], - * invocationId: "STRING_VALUE", - * files: [ // InputFiles - * { // InputFile - * name: "STRING_VALUE", // required - * source: { // FileSource - * sourceType: "S3" || "BYTE_CONTENT", // required - * s3Location: { // S3ObjectFile - * uri: "STRING_VALUE", // required - * }, - * byteContent: { // ByteContentFile - * mediaType: "STRING_VALUE", // required - * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required - * }, - * }, - * useCase: "CODE_INTERPRETER" || "CHAT", // required - * }, - * ], - * }, * foundationModel: "STRING_VALUE", // required * instruction: "STRING_VALUE", // required * idleSessionTTLInSeconds: Number("int"), @@ -284,20 +225,230 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons * ], * }, * parserMode: "DEFAULT" || "OVERRIDDEN", + * foundationModel: "STRING_VALUE", * additionalModelRequestFields: "DOCUMENT_VALUE", * }, * ], * overrideLambda: "STRING_VALUE", * }, - * bedrockModelConfigurations: { // InlineBedrockModelConfigurations - * performanceConfig: { // PerformanceConfiguration - * latency: "standard" || "optimized", + * agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", + * collaboratorConfigurations: [ // CollaboratorConfigurations + * { // CollaboratorConfiguration + * collaboratorName: "STRING_VALUE", // required + * collaboratorInstruction: "STRING_VALUE", // required + * agentAliasArn: "STRING_VALUE", + * relayConversationHistory: "TO_COLLABORATOR" || "DISABLED", * }, - * }, + * ], + * sessionId: "STRING_VALUE", // required + * endSession: true || false, + * enableTrace: true || false, + * inputText: "STRING_VALUE", * streamingConfigurations: { // StreamingConfigurations * streamFinalResponse: true || false, * applyGuardrailInterval: Number("int"), * }, + * inlineSessionState: { // InlineSessionState + * sessionAttributes: { // SessionAttributesMap + * "": "STRING_VALUE", + * }, + * promptSessionAttributes: { // PromptSessionAttributesMap + * "": "STRING_VALUE", + * }, + * returnControlInvocationResults: [ // ReturnControlInvocationResults + * { // InvocationResultMember Union: only one key present + * apiResult: { // ApiResult + * actionGroup: "STRING_VALUE", // required + * httpMethod: "STRING_VALUE", + * apiPath: "STRING_VALUE", + * confirmationState: "CONFIRM" || "DENY", + * responseState: "FAILURE" || "REPROMPT", + * httpStatusCode: Number("int"), + * responseBody: { // ResponseBody + * "": { // ContentBody + * body: "STRING_VALUE", + * }, + * }, + * agentId: "STRING_VALUE", + * }, + * functionResult: { // FunctionResult + * actionGroup: "STRING_VALUE", // required + * confirmationState: "CONFIRM" || "DENY", + * function: "STRING_VALUE", + * responseBody: { + * "": { + * body: "STRING_VALUE", + * }, + * }, + * responseState: "FAILURE" || "REPROMPT", + * agentId: "STRING_VALUE", + * }, + * }, + * ], + * invocationId: "STRING_VALUE", + * files: [ // InputFiles + * { // InputFile + * name: "STRING_VALUE", // required + * source: { // FileSource + * sourceType: "S3" || "BYTE_CONTENT", // required + * s3Location: { // S3ObjectFile + * uri: "STRING_VALUE", // required + * }, + * byteContent: { // ByteContentFile + * mediaType: "STRING_VALUE", // required + * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required + * }, + * }, + * useCase: "CODE_INTERPRETER" || "CHAT", // required + * }, + * ], + * conversationHistory: { // ConversationHistory + * messages: [ // Messages + * { // Message + * role: "user" || "assistant", // required + * content: [ // ContentBlocks // required + * { // ContentBlock Union: only one key present + * text: "STRING_VALUE", + * }, + * ], + * }, + * ], + * }, + * }, + * collaborators: [ // Collaborators + * { // Collaborator + * customerEncryptionKeyArn: "STRING_VALUE", + * foundationModel: "STRING_VALUE", // required + * instruction: "STRING_VALUE", // required + * idleSessionTTLInSeconds: Number("int"), + * actionGroups: [ + * { + * actionGroupName: "STRING_VALUE", // required + * description: "STRING_VALUE", + * parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter", + * actionGroupExecutor: {// Union: only one key present + * lambda: "STRING_VALUE", + * customControl: "RETURN_CONTROL", + * }, + * apiSchema: {// Union: only one key present + * s3: { + * s3BucketName: "STRING_VALUE", + * s3ObjectKey: "STRING_VALUE", + * }, + * payload: "STRING_VALUE", + * }, + * functionSchema: {// Union: only one key present + * functions: [ + * { + * name: "STRING_VALUE", // required + * description: "STRING_VALUE", + * parameters: { + * "": { + * description: "STRING_VALUE", + * type: "string" || "number" || "integer" || "boolean" || "array", // required + * required: true || false, + * }, + * }, + * requireConfirmation: "ENABLED" || "DISABLED", + * }, + * ], + * }, + * }, + * ], + * knowledgeBases: [ + * { + * knowledgeBaseId: "STRING_VALUE", // required + * description: "STRING_VALUE", // required + * retrievalConfiguration: { + * vectorSearchConfiguration: { + * numberOfResults: Number("int"), + * overrideSearchType: "HYBRID" || "SEMANTIC", + * filter: "", + * rerankingConfiguration: { + * type: "BEDROCK_RERANKING_MODEL", // required + * bedrockRerankingConfiguration: { + * modelConfiguration: { + * modelArn: "STRING_VALUE", // required + * additionalModelRequestFields: { + * "": "DOCUMENT_VALUE", + * }, + * }, + * numberOfRerankedResults: Number("int"), + * metadataConfiguration: { + * selectionMode: "SELECTIVE" || "ALL", // required + * selectiveModeConfiguration: {// Union: only one key present + * fieldsToInclude: [ + * { + * fieldName: "STRING_VALUE", // required + * }, + * ], + * fieldsToExclude: [ + * { + * fieldName: "STRING_VALUE", // required + * }, + * ], + * }, + * }, + * }, + * }, + * implicitFilterConfiguration: { + * metadataAttributes: [ // required + * { + * key: "STRING_VALUE", // required + * type: "STRING" || "NUMBER" || "BOOLEAN" || "STRING_LIST", // required + * description: "STRING_VALUE", // required + * }, + * ], + * modelArn: "STRING_VALUE", // required + * }, + * }, + * }, + * }, + * ], + * guardrailConfiguration: { + * guardrailIdentifier: "STRING_VALUE", // required + * guardrailVersion: "STRING_VALUE", // required + * }, + * promptOverrideConfiguration: { + * promptConfigurations: [ // required + * { + * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER", + * promptCreationMode: "DEFAULT" || "OVERRIDDEN", + * promptState: "ENABLED" || "DISABLED", + * basePromptTemplate: "STRING_VALUE", + * inferenceConfiguration: { + * temperature: Number("float"), + * topP: Number("float"), + * topK: Number("int"), + * maximumLength: Number("int"), + * stopSequences: [ + * "STRING_VALUE", + * ], + * }, + * parserMode: "DEFAULT" || "OVERRIDDEN", + * foundationModel: "STRING_VALUE", + * additionalModelRequestFields: "DOCUMENT_VALUE", + * }, + * ], + * overrideLambda: "STRING_VALUE", + * }, + * agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", + * collaboratorConfigurations: [ + * { + * collaboratorName: "STRING_VALUE", // required + * collaboratorInstruction: "STRING_VALUE", // required + * agentAliasArn: "STRING_VALUE", + * relayConversationHistory: "TO_COLLABORATOR" || "DISABLED", + * }, + * ], + * agentName: "STRING_VALUE", + * }, + * ], + * bedrockModelConfigurations: { // InlineBedrockModelConfigurations + * performanceConfig: { // PerformanceConfiguration + * latency: "standard" || "optimized", + * }, + * }, * }; * const command = new InvokeInlineAgentCommand(input); * const response = await client.send(command); diff --git a/clients/client-bedrock-agent-runtime/src/commands/TagResourceCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/TagResourceCommand.ts index 90e305d992a0..e4f5346f8e72 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/TagResourceCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/TagResourceCommand.ts @@ -10,7 +10,8 @@ import { ServiceOutputTypes, } from "../BedrockAgentRuntimeClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { TagResourceRequest, TagResourceResponse } from "../models/models_0"; +import { TagResourceRequest } from "../models/models_0"; +import { TagResourceResponse } from "../models/models_1"; import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-bedrock-agent-runtime/src/commands/UntagResourceCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/UntagResourceCommand.ts index fa91d708f90a..c42390585ba0 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/UntagResourceCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/UntagResourceCommand.ts @@ -10,7 +10,7 @@ import { ServiceOutputTypes, } from "../BedrockAgentRuntimeClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0"; +import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1"; import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1"; /** 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 02938806ead0..c9f9ea9ffdaa 100644 --- a/clients/client-bedrock-agent-runtime/src/models/models_0.ts +++ b/clients/client-bedrock-agent-runtime/src/models/models_0.ts @@ -536,6 +536,21 @@ export interface AgentActionGroup { functionSchema?: FunctionSchema | undefined; } +/** + * @public + * @enum + */ +export const AgentCollaboration = { + DISABLED: "DISABLED", + SUPERVISOR: "SUPERVISOR", + SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER", +} as const; + +/** + * @public + */ +export type AgentCollaboration = (typeof AgentCollaboration)[keyof typeof AgentCollaboration]; + /** * @public * @enum @@ -5335,6 +5350,14 @@ export interface TracePart { */ callerChain?: Caller[] | undefined; + /** + *

+ * The time of the trace. + *

+ * @public + */ + eventTime?: Date | undefined; + /** *

The part's collaborator name.

* @public @@ -5783,83 +5806,82 @@ export interface InlineBedrockModelConfigurations { performanceConfig?: PerformanceConfiguration | undefined; } +/** + * @public + * @enum + */ +export const RelayConversationHistory = { + DISABLED: "DISABLED", + TO_COLLABORATOR: "TO_COLLABORATOR", +} as const; + +/** + * @public + */ +export type RelayConversationHistory = (typeof RelayConversationHistory)[keyof typeof RelayConversationHistory]; + /** *

- * The configuration details for the guardrail. + * Settings of an inline collaborator agent. *

* @public */ -export interface GuardrailConfigurationWithArn { +export interface CollaboratorConfiguration { /** *

- * The unique identifier for the guardrail. + * Name of the inline collaborator agent which must be the same name as specified for agentName. *

* @public */ - guardrailIdentifier: string | undefined; + collaboratorName: string | undefined; /** *

- * The version of the guardrail. - *

- * @public - */ - guardrailVersion: string | undefined; -} - -/** - *

- * Contains parameters that specify various attributes that persist across a session or prompt. You can define session state - * attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeInlineAgent request. - * Use session state attributes to control and provide conversational context for your inline agent and to help customize your agent's behavior. - * For more information, see Control session context - *

- * @public - */ -export interface InlineSessionState { - /** - *

- * Contains attributes that persist across a session and the values of those attributes. + * Instructions that tell the inline collaborator agent what it should do and how it should interact with users. *

* @public */ - sessionAttributes?: Record | undefined; + collaboratorInstruction: string | undefined; /** *

- * Contains attributes that persist across a session and the values of those attributes. + * The Amazon Resource Name (ARN) of the inline collaborator agent. *

* @public */ - promptSessionAttributes?: Record | undefined; + agentAliasArn?: string | undefined; /** *

- * Contains information about the results from the action group invocation. For more information, see Return control to the agent developer. + * A relay conversation history for the inline collaborator agent. *

- * - *

If you include this field in the sessionState field, the inputText field will be ignored.

- *
* @public */ - returnControlInvocationResults?: InvocationResultMember[] | undefined; + relayConversationHistory?: RelayConversationHistory | undefined; +} +/** + *

+ * The configuration details for the guardrail. + *

+ * @public + */ +export interface GuardrailConfigurationWithArn { /** *

- * The identifier of the invocation of an action. This value must match the invocationId returned in the InvokeInlineAgent response for the action - * whose results are provided in the returnControlInvocationResults field. For more information, see Return control to the agent developer. + * The unique identifier for the guardrail. *

* @public */ - invocationId?: string | undefined; + guardrailIdentifier: string | undefined; /** *

- * Contains information about the files used by code interpreter. + * The version of the guardrail. *

* @public */ - files?: InputFile[] | undefined; + guardrailVersion: string | undefined; } /** @@ -5943,6 +5965,14 @@ export interface PromptConfiguration { */ parserMode?: CreationMode | undefined; + /** + *

+ * The foundation model to use. + *

+ * @public + */ + foundationModel?: string | undefined; + /** *

If the Converse or ConverseStream operations support the model, * additionalModelRequestFields contains additional inference parameters, @@ -5977,6 +6007,69 @@ export interface PromptOverrideConfiguration { overrideLambda?: string | undefined; } +/** + *

+ * Contains parameters that specify various attributes that persist across a session or prompt. You can define session state + * attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeInlineAgent request. + * Use session state attributes to control and provide conversational context for your inline agent and to help customize your agent's behavior. + * For more information, see Control session context + *

+ * @public + */ +export interface InlineSessionState { + /** + *

+ * Contains attributes that persist across a session and the values of those attributes. + *

+ * @public + */ + sessionAttributes?: Record | undefined; + + /** + *

+ * Contains attributes that persist across a session and the values of those attributes. + *

+ * @public + */ + promptSessionAttributes?: Record | undefined; + + /** + *

+ * Contains information about the results from the action group invocation. For more information, see Return control to the agent developer. + *

+ * + *

If you include this field in the sessionState field, the inputText field will be ignored.

+ *
+ * @public + */ + returnControlInvocationResults?: InvocationResultMember[] | undefined; + + /** + *

+ * The identifier of the invocation of an action. This value must match the invocationId returned in the InvokeInlineAgent response for the action + * whose results are provided in the returnControlInvocationResults field. For more information, see Return control to the agent developer. + *

+ * @public + */ + invocationId?: string | undefined; + + /** + *

+ * Contains information about the files used by code interpreter. + *

+ * @public + */ + files?: InputFile[] | undefined; + + /** + *

+ * Contains the conversation history that persist across sessions. + *

+ * @public + */ + conversationHistory?: ConversationHistory | undefined; +} + /** *

Contains a part of an agent response and citations for it.

* @public @@ -8978,33 +9071,6 @@ export interface TagResourceRequest { tags: Record | undefined; } -/** - * @public - */ -export interface TagResourceResponse {} - -/** - * @public - */ -export interface UntagResourceRequest { - /** - *

The Amazon Resource Name (ARN) of the resource from which to remove tags.

- * @public - */ - resourceArn: string | undefined; - - /** - *

A list of keys of the tags to remove from the resource.

- * @public - */ - tagKeys: string[] | undefined; -} - -/** - * @public - */ -export interface UntagResourceResponse {} - /** * @internal */ @@ -9954,14 +10020,10 @@ export const InvokeAgentResponseFilterSensitiveLog = (obj: InvokeAgentResponse): /** * @internal */ -export const InlineSessionStateFilterSensitiveLog = (obj: InlineSessionState): any => ({ +export const CollaboratorConfigurationFilterSensitiveLog = (obj: CollaboratorConfiguration): any => ({ ...obj, - ...(obj.returnControlInvocationResults && { - returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => - InvocationResultMemberFilterSensitiveLog(item) - ), - }), - ...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }), + ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }), + ...(obj.collaboratorInstruction && { collaboratorInstruction: SENSITIVE_STRING }), }); /** @@ -9982,6 +10044,22 @@ export const PromptOverrideConfigurationFilterSensitiveLog = (obj: PromptOverrid }), }); +/** + * @internal + */ +export const InlineSessionStateFilterSensitiveLog = (obj: InlineSessionState): any => ({ + ...obj, + ...(obj.returnControlInvocationResults && { + returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => + InvocationResultMemberFilterSensitiveLog(item) + ), + }), + ...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }), + ...(obj.conversationHistory && { + conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory), + }), +}); + /** * @internal */ diff --git a/clients/client-bedrock-agent-runtime/src/models/models_1.ts b/clients/client-bedrock-agent-runtime/src/models/models_1.ts index 5a70634ec3bd..b6d70d3b3bbd 100644 --- a/clients/client-bedrock-agent-runtime/src/models/models_1.ts +++ b/clients/client-bedrock-agent-runtime/src/models/models_1.ts @@ -4,7 +4,10 @@ import { SENSITIVE_STRING } from "@smithy/smithy-client"; import { AgentActionGroup, AgentActionGroupFilterSensitiveLog, + AgentCollaboration, BedrockModelConfigurations, + CollaboratorConfiguration, + CollaboratorConfigurationFilterSensitiveLog, ConversationHistory, ConversationHistoryFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfiguration, @@ -36,6 +39,33 @@ import { VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0"; +/** + * @public + */ +export interface TagResourceResponse {} + +/** + * @public + */ +export interface UntagResourceRequest { + /** + *

The Amazon Resource Name (ARN) of the resource from which to remove tags.

+ * @public + */ + resourceArn: string | undefined; + + /** + *

A list of keys of the tags to remove from the resource.

+ * @public + */ + tagKeys: string[] | undefined; +} + +/** + * @public + */ +export interface UntagResourceResponse {} + /** *

Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see Query configurations. See the examples below to see how to use these filters.

*

This data type is used in the following API operations:

@@ -688,20 +718,15 @@ export interface RetrieveAndGenerateConfiguration { } /** + *

+ * List of inline collaborators. + *

* @public */ -export interface InvokeInlineAgentRequest { +export interface Collaborator { /** *

- * The unique identifier of the session. Use the same value across requests to continue the same conversation. - *

- * @public - */ - sessionId: string | undefined; - - /** - *

- * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent. + * The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the inline collaborator. *

* @public */ @@ -709,117 +734,84 @@ export interface InvokeInlineAgentRequest { /** *

- * Specifies whether to end the session with the inline agent or not. + * The foundation model used by the inline collaborator agent. *

* @public */ - endSession?: boolean | undefined; - - /** - *

- * Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace. - * - *

- * @public - */ - enableTrace?: boolean | undefined; - - /** - *

- * The prompt text to send to the agent. - *

- * - *

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

- *
- * @public - */ - inputText?: string | undefined; + foundationModel: string | undefined; /** *

- * Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an - * action group to return control, results from invocation of the action group. For more information, see Control session context. + * Instruction that tell the inline collaborator agent what it should do and how it should interact with users. *

- * - *

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

- *
* @public */ - inlineSessionState?: InlineSessionState | undefined; + instruction: string | undefined; /** *

- * The model identifier (ID) of the model to use for orchestration by the inline agent. For example, meta.llama3-1-70b-instruct-v1:0. + * The number of seconds for which the Amazon Bedrock keeps information about the user's conversation with the inline collaborator agent.

+ *

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout. *

* @public */ - foundationModel: string | undefined; + idleSessionTTLInSeconds?: number | undefined; /** *

- * The instructions that tell the inline agent what it should do and how it should interact with users. + * List of action groups with each action group defining tasks the inline collaborator agent needs to carry out. *

* @public */ - instruction: string | undefined; + actionGroups?: AgentActionGroup[] | undefined; /** *

- * The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session. + * Knowledge base associated with the inline collaborator agent. *

- *

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.

* @public */ - idleSessionTTLInSeconds?: number | undefined; + knowledgeBases?: KnowledgeBase[] | undefined; /** *

- * A list of action groups with each action group defining the action the inline agent needs to carry out. + * Details of the guardwrail associated with the inline collaborator. *

* @public */ - actionGroups?: AgentActionGroup[] | undefined; + guardrailConfiguration?: GuardrailConfigurationWithArn | undefined; /** *

- * Contains information of the knowledge bases to associate with. + * Contains configurations to override prompt templates in different parts of an inline collaborator sequence. For more information, see Advanced prompts. *

* @public */ - knowledgeBases?: KnowledgeBase[] | undefined; + promptOverrideConfiguration?: PromptOverrideConfiguration | undefined; /** *

- * The guardrails to assign to the inline agent. + * Defines how the inline supervisor agent handles information across multiple collaborator agents to coordinate a final response. *

* @public */ - guardrailConfiguration?: GuardrailConfigurationWithArn | undefined; + agentCollaboration?: AgentCollaboration | undefined; /** *

- * Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent. + * Settings of the collaborator agent. *

* @public */ - promptOverrideConfiguration?: PromptOverrideConfiguration | undefined; - - /** - *

Model settings for the request.

- * @public - */ - bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined; + collaboratorConfigurations?: CollaboratorConfiguration[] | undefined; /** *

- * Specifies the configurations for streaming. + * Name of the inline collaborator agent which must be the same name as specified for collaboratorName. *

- * - *

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

- *
* @public */ - streamingConfigurations?: StreamingConfigurations | undefined; + agentName?: string | undefined; } /** @@ -1013,6 +1005,165 @@ export interface InvokeAgentRequest { sourceArn?: string | undefined; } +/** + * @public + */ +export interface InvokeInlineAgentRequest { + /** + *

+ * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent. + *

+ * @public + */ + customerEncryptionKeyArn?: string | undefined; + + /** + *

+ * The model identifier (ID) of the model to use for orchestration by the inline agent. For example, meta.llama3-1-70b-instruct-v1:0. + *

+ * @public + */ + foundationModel: string | undefined; + + /** + *

+ * The instructions that tell the inline agent what it should do and how it should interact with users. + *

+ * @public + */ + instruction: string | undefined; + + /** + *

+ * The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session. + *

+ *

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.

+ * @public + */ + idleSessionTTLInSeconds?: number | undefined; + + /** + *

+ * A list of action groups with each action group defining the action the inline agent needs to carry out. + *

+ * @public + */ + actionGroups?: AgentActionGroup[] | undefined; + + /** + *

+ * Contains information of the knowledge bases to associate with. + *

+ * @public + */ + knowledgeBases?: KnowledgeBase[] | undefined; + + /** + *

+ * The guardrails to assign to the inline agent. + *

+ * @public + */ + guardrailConfiguration?: GuardrailConfigurationWithArn | undefined; + + /** + *

+ * Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent. + *

+ * @public + */ + promptOverrideConfiguration?: PromptOverrideConfiguration | undefined; + + /** + *

+ * Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor. + *

+ * @public + */ + agentCollaboration?: AgentCollaboration | undefined; + + /** + *

+ * Settings for an inline agent collaborator called with InvokeInlineAgent. + *

+ * @public + */ + collaboratorConfigurations?: CollaboratorConfiguration[] | undefined; + + /** + *

+ * The unique identifier of the session. Use the same value across requests to continue the same conversation. + *

+ * @public + */ + sessionId: string | undefined; + + /** + *

+ * Specifies whether to end the session with the inline agent or not. + *

+ * @public + */ + endSession?: boolean | undefined; + + /** + *

+ * Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace. + * + *

+ * @public + */ + enableTrace?: boolean | undefined; + + /** + *

+ * The prompt text to send to the agent. + *

+ * + *

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

+ *
+ * @public + */ + inputText?: string | undefined; + + /** + *

+ * Specifies the configurations for streaming. + *

+ * + *

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

+ *
+ * @public + */ + streamingConfigurations?: StreamingConfigurations | undefined; + + /** + *

+ * Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an + * action group to return control, results from invocation of the action group. For more information, see Control session context. + *

+ * + *

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

+ *
+ * @public + */ + inlineSessionState?: InlineSessionState | undefined; + + /** + *

+ * List of collaborator inline agents. + *

+ * @public + */ + collaborators?: Collaborator[] | undefined; + + /** + *

Model settings for the request.

+ * @public + */ + bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined; +} + /** * @internal */ @@ -1131,16 +1282,20 @@ export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj: Retrieve /** * @internal */ -export const InvokeInlineAgentRequestFilterSensitiveLog = (obj: InvokeInlineAgentRequest): any => ({ +export const CollaboratorFilterSensitiveLog = (obj: Collaborator): any => ({ ...obj, - ...(obj.inputText && { inputText: SENSITIVE_STRING }), - ...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }), ...(obj.instruction && { instruction: SENSITIVE_STRING }), ...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }), ...(obj.knowledgeBases && { knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)), }), ...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }), + ...(obj.collaboratorConfigurations && { + collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => + CollaboratorConfigurationFilterSensitiveLog(item) + ), + }), + ...(obj.agentName && { agentName: SENSITIVE_STRING }), }); /** @@ -1198,3 +1353,24 @@ export const InvokeAgentRequestFilterSensitiveLog = (obj: InvokeAgentRequest): a ...(obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) }), ...(obj.inputText && { inputText: SENSITIVE_STRING }), }); + +/** + * @internal + */ +export const InvokeInlineAgentRequestFilterSensitiveLog = (obj: InvokeInlineAgentRequest): any => ({ + ...obj, + ...(obj.instruction && { instruction: SENSITIVE_STRING }), + ...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }), + ...(obj.knowledgeBases && { + knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)), + }), + ...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }), + ...(obj.collaboratorConfigurations && { + collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => + CollaboratorConfigurationFilterSensitiveLog(item) + ), + }), + ...(obj.inputText && { inputText: SENSITIVE_STRING }), + ...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }), + ...(obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) }), +}); diff --git a/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts index f74a59c8bf13..8f0350a995e1 100644 --- a/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts @@ -91,6 +91,7 @@ import { ByteContentFile, Citation, CitationEvent, + CollaboratorConfiguration, ConflictException, ContentBlock, ContentBody, @@ -215,6 +216,7 @@ import { VectorSearchRerankingConfiguration, } from "../models/models_0"; import { + Collaborator, KnowledgeBase, KnowledgeBaseConfiguration, KnowledgeBaseRetrievalConfiguration, @@ -488,7 +490,10 @@ export const se_InvokeInlineAgentCommand = async ( body = JSON.stringify( take(input, { actionGroups: (_) => _json(_), + agentCollaboration: [], bedrockModelConfigurations: (_) => _json(_), + collaboratorConfigurations: (_) => _json(_), + collaborators: (_) => se_Collaborators(_, context), customerEncryptionKeyArn: [], enableTrace: [], endSession: [], @@ -2265,6 +2270,40 @@ const se_ByteContentFile = (input: ByteContentFile, context: __SerdeContext): an }); }; +/** + * serializeAws_restJson1Collaborator + */ +const se_Collaborator = (input: Collaborator, context: __SerdeContext): any => { + return take(input, { + actionGroups: _json, + agentCollaboration: [], + agentName: [], + collaboratorConfigurations: _json, + customerEncryptionKeyArn: [], + foundationModel: [], + guardrailConfiguration: _json, + idleSessionTTLInSeconds: [], + instruction: [], + knowledgeBases: (_) => se_KnowledgeBases(_, context), + promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context), + }); +}; + +// se_CollaboratorConfiguration omitted. + +// se_CollaboratorConfigurations omitted. + +/** + * serializeAws_restJson1Collaborators + */ +const se_Collaborators = (input: Collaborator[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return se_Collaborator(entry, context); + }); +}; + // se_ContentBlock omitted. // se_ContentBlocks omitted. @@ -2467,6 +2506,7 @@ const se_InferenceConfiguration = (input: InferenceConfiguration, context: __Ser */ const se_InlineSessionState = (input: InlineSessionState, context: __SerdeContext): any => { return take(input, { + conversationHistory: _json, files: (_) => se_InputFiles(_, context), invocationId: [], promptSessionAttributes: _json, @@ -2638,6 +2678,7 @@ const se_PromptConfiguration = (input: PromptConfiguration, context: __SerdeCont return take(input, { additionalModelRequestFields: (_) => se_Document(_, context), basePromptTemplate: [], + foundationModel: [], inferenceConfiguration: (_) => se_InferenceConfiguration(_, context), parserMode: [], promptCreationMode: [], @@ -3939,6 +3980,7 @@ const de_TracePart = (output: any, context: __SerdeContext): TracePart => { agentVersion: __expectString, callerChain: _json, collaboratorName: __expectString, + eventTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), sessionId: __expectString, trace: (_: any) => de_Trace(__expectUnion(_), context), }) as any; diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json index bee2e7432bfb..9ce37d0cc6da 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json @@ -275,6 +275,29 @@ "smithy.api#pattern": "^[0-9a-zA-Z]+$" } }, + "com.amazonaws.bedrockagentruntime#AgentCollaboration": { + "type": "enum", + "members": { + "SUPERVISOR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUPERVISOR" + } + }, + "SUPERVISOR_ROUTER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUPERVISOR_ROUTER" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.bedrockagentruntime#AgentCollaboratorInputPayload": { "type": "structure", "members": { @@ -1690,6 +1713,138 @@ "smithy.api#documentation": "

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

" } }, + "com.amazonaws.bedrockagentruntime#CollaborationInstruction": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4000 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#Collaborator": { + "type": "structure", + "members": { + "customerEncryptionKeyArn": { + "target": "com.amazonaws.bedrockagentruntime#KmsKeyArn", + "traits": { + "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the inline collaborator. \n

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

\n The foundation model used by the inline collaborator agent.\n

", + "smithy.api#required": {} + } + }, + "instruction": { + "target": "com.amazonaws.bedrockagentruntime#Instruction", + "traits": { + "smithy.api#documentation": "

\n Instruction that tell the inline collaborator agent what it should do and how it should interact with users.\n

", + "smithy.api#required": {} + } + }, + "idleSessionTTLInSeconds": { + "target": "com.amazonaws.bedrockagentruntime#SessionTTL", + "traits": { + "smithy.api#documentation": "

\n The number of seconds for which the Amazon Bedrock keeps information about the user's conversation with the inline collaborator agent.

\n

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.\n

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

\n List of action groups with each action group defining tasks the inline collaborator agent needs to carry out.\n

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

\n Knowledge base associated with the inline collaborator agent.\n

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

\n Details of the guardwrail associated with the inline collaborator.\n

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

\n Contains configurations to override prompt templates in different parts of an inline collaborator sequence. For more information, see Advanced prompts.\n

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

\n Defines how the inline supervisor agent handles information across multiple collaborator agents to coordinate a final response.\n

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

\n Settings of the collaborator agent.\n

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

\n Name of the inline collaborator agent which must be the same name as specified for collaboratorName.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n List of inline collaborators. \n

" + } + }, + "com.amazonaws.bedrockagentruntime#CollaboratorConfiguration": { + "type": "structure", + "members": { + "collaboratorName": { + "target": "com.amazonaws.bedrockagentruntime#Name", + "traits": { + "smithy.api#documentation": "

\n Name of the inline collaborator agent which must be the same name as specified for agentName.\n

", + "smithy.api#required": {} + } + }, + "collaboratorInstruction": { + "target": "com.amazonaws.bedrockagentruntime#CollaborationInstruction", + "traits": { + "smithy.api#documentation": "

\n Instructions that tell the inline collaborator agent what it should do and how it should interact with users.\n

", + "smithy.api#required": {} + } + }, + "agentAliasArn": { + "target": "com.amazonaws.bedrockagentruntime#AgentAliasArn", + "traits": { + "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the inline collaborator agent.\n

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

\n A relay conversation history for the inline collaborator agent.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Settings of an inline collaborator agent.\n

" + } + }, + "com.amazonaws.bedrockagentruntime#CollaboratorConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockagentruntime#CollaboratorConfiguration" + } + }, + "com.amazonaws.bedrockagentruntime#Collaborators": { + "type": "list", + "member": { + "target": "com.amazonaws.bedrockagentruntime#Collaborator" + } + }, "com.amazonaws.bedrockagentruntime#ConfirmationState": { "type": "enum", "members": { @@ -5118,6 +5273,12 @@ "traits": { "smithy.api#documentation": "

\n Contains information about the files used by code interpreter.\n

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

\n Contains the conversation history that persist across sessions.\n

" + } } }, "traits": { @@ -5878,44 +6039,12 @@ "com.amazonaws.bedrockagentruntime#InvokeInlineAgentRequest": { "type": "structure", "members": { - "sessionId": { - "target": "com.amazonaws.bedrockagentruntime#SessionId", - "traits": { - "smithy.api#documentation": "

\n The unique identifier of the session. Use the same value across requests to continue the same conversation.\n

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, "customerEncryptionKeyArn": { "target": "com.amazonaws.bedrockagentruntime#KmsKeyArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent. \n

" } }, - "endSession": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

\n Specifies whether to end the session with the inline agent or not.\n

" - } - }, - "enableTrace": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

\n Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.\n \n

" - } - }, - "inputText": { - "target": "com.amazonaws.bedrockagentruntime#InputText", - "traits": { - "smithy.api#documentation": "

\n The prompt text to send to the agent.\n

\n \n

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

\n
" - } - }, - "inlineSessionState": { - "target": "com.amazonaws.bedrockagentruntime#InlineSessionState", - "traits": { - "smithy.api#documentation": "

\n Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an \n action group to return control, results from invocation of the action group. For more information, see Control session context.\n

\n \n

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

\n
" - } - }, "foundationModel": { "target": "com.amazonaws.bedrockagentruntime#ModelIdentifier", "traits": { @@ -5960,10 +6089,42 @@ "smithy.api#documentation": "

\n Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.\n

" } }, - "bedrockModelConfigurations": { - "target": "com.amazonaws.bedrockagentruntime#InlineBedrockModelConfigurations", + "agentCollaboration": { + "target": "com.amazonaws.bedrockagentruntime#AgentCollaboration", "traits": { - "smithy.api#documentation": "

Model settings for the request.

" + "smithy.api#documentation": "

\n Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.\n

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

\n Settings for an inline agent collaborator called with InvokeInlineAgent.\n

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

\n The unique identifier of the session. Use the same value across requests to continue the same conversation.\n

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "endSession": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

\n Specifies whether to end the session with the inline agent or not.\n

" + } + }, + "enableTrace": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

\n Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.\n \n

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

\n The prompt text to send to the agent.\n

\n \n

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

\n
" } }, "streamingConfigurations": { @@ -5971,6 +6132,24 @@ "traits": { "smithy.api#documentation": "

\n Specifies the configurations for streaming.\n

\n \n

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

\n
" } + }, + "inlineSessionState": { + "target": "com.amazonaws.bedrockagentruntime#InlineSessionState", + "traits": { + "smithy.api#documentation": "

\n Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an \n action group to return control, results from invocation of the action group. For more information, see Control session context.\n

\n \n

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

\n
" + } + }, + "collaborators": { + "target": "com.amazonaws.bedrockagentruntime#Collaborators", + "traits": { + "smithy.api#documentation": "

\n List of collaborator inline agents.\n

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

Model settings for the request.

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

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 promptType. If you set the field as OVERRIDDEN, the overrideLambda field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function.

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

\n The foundation model to use.\n

" + } + }, "additionalModelRequestFields": { "target": "smithy.api#Document", "traits": { @@ -8269,6 +8454,23 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.bedrockagentruntime#RelayConversationHistory": { + "type": "enum", + "members": { + "TO_COLLABORATOR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TO_COLLABORATOR" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.bedrockagentruntime#RepromptResponse": { "type": "structure", "members": { @@ -10908,6 +11110,13 @@ "smithy.api#documentation": "

The part's caller chain.

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

\n The time of the trace.\n

", + "smithy.api#timestampFormat": "date-time" + } + }, "collaboratorName": { "target": "com.amazonaws.bedrockagentruntime#Name", "traits": {