AgentsforBedrock / Client / update_agent_knowledge_base

update_agent_knowledge_base#

AgentsforBedrock.Client.update_agent_knowledge_base(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.update_agent_knowledge_base(
    agentId='string',
    agentVersion='string',
    description='string',
    knowledgeBaseId='string',
    knowledgeBaseState='ENABLED'|'DISABLED'
)
Parameters:
  • agentId (string) –

    [REQUIRED]

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

  • agentVersion (string) –

    [REQUIRED]

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

  • description (string) – Specifies a new description for the knowledge base associated with an agent.

  • knowledgeBaseId (string) –

    [REQUIRED]

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

  • knowledgeBaseState (string) – Specifies whether the agent uses the knowledge base or not when sending an InvokeAgent request.

Return type:

dict

Returns:

Response Syntax

{
    'agentKnowledgeBase': {
        'agentId': 'string',
        'agentVersion': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'knowledgeBaseId': 'string',
        'knowledgeBaseState': 'ENABLED'|'DISABLED',
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    • agentKnowledgeBase (dict) –

      Contains details about the knowledge base that has been associated with an agent.

      • agentId (string) –

        The unique identifier of the agent with which the knowledge base is associated.

      • agentVersion (string) –

        The version of the agent with which the knowledge base is associated.

      • createdAt (datetime) –

        The time at which the association between the agent and the knowledge base was created.

      • description (string) –

        The description of the association between the agent and the knowledge base.

      • knowledgeBaseId (string) –

        The unique identifier of the association between the agent and the knowledge base.

      • knowledgeBaseState (string) –

        Specifies whether to use the knowledge base or not when sending an InvokeAgent request.

      • updatedAt (datetime) –

        The time at which the association between the agent and the knowledge base was last updated.

Exceptions