Skip to content

Update Agent Knowledge Base

bedrockagent_update_agent_knowledge_base R Documentation

Updates the configuration for a knowledge base that has been associated with an agent

Description

Updates the configuration for a knowledge base that has been associated with an agent.

Usage

bedrockagent_update_agent_knowledge_base(agentId, agentVersion,
  knowledgeBaseId, description, knowledgeBaseState)

Arguments

agentId

[required] The unique identifier of the agent associated with the knowledge base that you want to update.

agentVersion

[required] The version of the agent associated with the knowledge base that you want to update.

knowledgeBaseId

[required] The unique identifier of the knowledge base that has been associated with an agent.

description

Specifies a new description for the knowledge base associated with an agent.

knowledgeBaseState

Specifies whether the agent uses the knowledge base or not when sending an InvokeAgent request.

Value

A list with the following syntax:

list(
  agentKnowledgeBase = list(
    agentId = "string",
    agentVersion = "string",
    knowledgeBaseId = "string",
    description = "string",
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    updatedAt = as.POSIXct(
      "2015-01-01"
    ),
    knowledgeBaseState = "ENABLED"|"DISABLED"
  )
)

Request syntax

svc$update_agent_knowledge_base(
  agentId = "string",
  agentVersion = "string",
  knowledgeBaseId = "string",
  description = "string",
  knowledgeBaseState = "ENABLED"|"DISABLED"
)