Skip to content

/AWS1/CL_BDA=>UPDATEAGENT()

About UpdateAgent

Updates the configuration of an agent.

Method Signature

IMPORTING

Required arguments:

IV_AGENTID TYPE /AWS1/BDAID /AWS1/BDAID

The unique identifier of the agent.

IV_AGENTNAME TYPE /AWS1/BDANAME /AWS1/BDANAME

Specifies a new name for the agent.

IV_FOUNDATIONMODEL TYPE /AWS1/BDAMODELIDENTIFIER /AWS1/BDAMODELIDENTIFIER

Specifies a new foundation model to be used for orchestration by the agent.

IV_AGENTRESOURCEROLEARN TYPE /AWS1/BDAAGENTROLEARN /AWS1/BDAAGENTROLEARN

The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.

Optional arguments:

IV_INSTRUCTION TYPE /AWS1/BDAINSTRUCTION /AWS1/BDAINSTRUCTION

Specifies new instructions that tell the agent what it should do and how it should interact with users.

IV_DESCRIPTION TYPE /AWS1/BDADESCRIPTION /AWS1/BDADESCRIPTION

Specifies a new description of the agent.

IV_IDLESESSIONTTLINSECONDS TYPE /AWS1/BDASESSIONTTL /AWS1/BDASESSIONTTL

The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the 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.

IV_CUSTOMERENCRYPTIONKEYARN TYPE /AWS1/BDAKMSKEYARN /AWS1/BDAKMSKEYARN

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.

IO_PROMPTOVERRIDECONF TYPE REF TO /AWS1/CL_BDAPROMPTOVERRIDECONF /AWS1/CL_BDAPROMPTOVERRIDECONF

Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.

IO_GUARDRAILCONFIGURATION TYPE REF TO /AWS1/CL_BDAGUARDRAILCONF /AWS1/CL_BDAGUARDRAILCONF

The unique Guardrail configuration assigned to the agent when it is updated.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_BDAUPDATEAGENTRSP /AWS1/CL_BDAUPDATEAGENTRSP