Skip to content

Updates the configuration of an agent

Description

Updates the configuration of an agent.

Usage

bedrockagent_update_agent(agentId, agentName, instruction,
  foundationModel, description, orchestrationType, customOrchestration,
  idleSessionTTLInSeconds, agentResourceRoleArn, customerEncryptionKeyArn,
  promptOverrideConfiguration, guardrailConfiguration,
  memoryConfiguration, agentCollaboration)

Arguments

  • agentId

    [required] The unique identifier of the agent.

  • agentName

    [required] Specifies a new name for the agent.

  • instruction

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

  • foundationModel

    [required] The identifier for the model that you want to be used for orchestration by the agent you create.

    The modelId to provide depends on the type of model or throughput that you use:

  • description

    Specifies a new description of the agent.

  • orchestrationType

    Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.

  • customOrchestration

    Contains details of the custom orchestration configured for the agent.

  • idleSessionTTLInSeconds

    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.

  • agentResourceRoleArn

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

  • customerEncryptionKeyArn

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

  • promptOverrideConfiguration

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

  • guardrailConfiguration

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

  • memoryConfiguration

    Specifies the new memory configuration for the agent.

  • agentCollaboration

    The agent's collaboration role.

Value

A list with the following syntax:

list(
  agent = list(
    agentId = "string",
    agentName = "string",
    agentArn = "string",
    agentVersion = "string",
    clientToken = "string",
    instruction = "string",
    agentStatus = "CREATING"|"PREPARING"|"PREPARED"|"NOT_PREPARED"|"DELETING"|"FAILED"|"VERSIONING"|"UPDATING",
    foundationModel = "string",
    description = "string",
    orchestrationType = "DEFAULT"|"CUSTOM_ORCHESTRATION",
    customOrchestration = list(
      executor = list(
        lambda = "string"
      )
    ),
    idleSessionTTLInSeconds = 123,
    agentResourceRoleArn = "string",
    customerEncryptionKeyArn = "string",
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    updatedAt = as.POSIXct(
      "2015-01-01"
    ),
    preparedAt = as.POSIXct(
      "2015-01-01"
    ),
    failureReasons = list(
      "string"
    ),
    recommendedActions = list(
      "string"
    ),
    promptOverrideConfiguration = list(
      promptConfigurations = list(
        list(
          promptType = "PRE_PROCESSING"|"ORCHESTRATION"|"POST_PROCESSING"|"KNOWLEDGE_BASE_RESPONSE_GENERATION"|"MEMORY_SUMMARIZATION",
          promptCreationMode = "DEFAULT"|"OVERRIDDEN",
          promptState = "ENABLED"|"DISABLED",
          basePromptTemplate = "string",
          inferenceConfiguration = list(
            temperature = 123.0,
            topP = 123.0,
            topK = 123,
            maximumLength = 123,
            stopSequences = list(
              "string"
            )
          ),
          parserMode = "DEFAULT"|"OVERRIDDEN",
          foundationModel = "string",
          additionalModelRequestFields = list()
        )
      ),
      overrideLambda = "string"
    ),
    guardrailConfiguration = list(
      guardrailIdentifier = "string",
      guardrailVersion = "string"
    ),
    memoryConfiguration = list(
      enabledMemoryTypes = list(
        "SESSION_SUMMARY"
      ),
      storageDays = 123,
      sessionSummaryConfiguration = list(
        maxRecentSessions = 123
      )
    ),
    agentCollaboration = "SUPERVISOR"|"SUPERVISOR_ROUTER"|"DISABLED"
  )
)

Request syntax

svc$update_agent(
  agentId = "string",
  agentName = "string",
  instruction = "string",
  foundationModel = "string",
  description = "string",
  orchestrationType = "DEFAULT"|"CUSTOM_ORCHESTRATION",
  customOrchestration = list(
    executor = list(
      lambda = "string"
    )
  ),
  idleSessionTTLInSeconds = 123,
  agentResourceRoleArn = "string",
  customerEncryptionKeyArn = "string",
  promptOverrideConfiguration = list(
    promptConfigurations = list(
      list(
        promptType = "PRE_PROCESSING"|"ORCHESTRATION"|"POST_PROCESSING"|"KNOWLEDGE_BASE_RESPONSE_GENERATION"|"MEMORY_SUMMARIZATION",
        promptCreationMode = "DEFAULT"|"OVERRIDDEN",
        promptState = "ENABLED"|"DISABLED",
        basePromptTemplate = "string",
        inferenceConfiguration = list(
          temperature = 123.0,
          topP = 123.0,
          topK = 123,
          maximumLength = 123,
          stopSequences = list(
            "string"
          )
        ),
        parserMode = "DEFAULT"|"OVERRIDDEN",
        foundationModel = "string",
        additionalModelRequestFields = list()
      )
    ),
    overrideLambda = "string"
  ),
  guardrailConfiguration = list(
    guardrailIdentifier = "string",
    guardrailVersion = "string"
  ),
  memoryConfiguration = list(
    enabledMemoryTypes = list(
      "SESSION_SUMMARY"
    ),
    storageDays = 123,
    sessionSummaryConfiguration = list(
      maxRecentSessions = 123
    )
  ),
  agentCollaboration = "SUPERVISOR"|"SUPERVISOR_ROUTER"|"DISABLED"
)