AgentsforBedrock / Client / list_agent_knowledge_bases

list_agent_knowledge_bases#

AgentsforBedrock.Client.list_agent_knowledge_bases(**kwargs)#

List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version

See also: AWS API Documentation

Request Syntax

response = client.list_agent_knowledge_bases(
    agentId='string',
    agentVersion='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • agentId (string) –

    [REQUIRED]

    Id generated at the server side when an Agent is created

  • agentVersion (string) –

    [REQUIRED]

    Version number generated when a version is created

  • maxResults (integer) – Max Results.

  • nextToken (string) – Opaque continuation token of previous paginated response.

Return type:

dict

Returns:

Response Syntax

{
    'agentKnowledgeBaseSummaries': [
        {
            'knowledgeBaseId': 'string',
            'description': 'string',
            'knowledgeBaseState': 'ENABLED'|'DISABLED',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    List Agent Knowledge Bases Response

    • agentKnowledgeBaseSummaries (list) –

      List of Agent Knowledge Base Summaries

      • (dict) –

        Agent Knowledge Base Summary

        • knowledgeBaseId (string) –

          Identifier for a resource.

        • description (string) –

          Description of the Resource.

        • knowledgeBaseState (string) –

          State of the knowledge base; whether it is enabled or disabled

        • updatedAt (datetime) –

          Time Stamp.

    • nextToken (string) –

      Opaque continuation token of previous paginated response.

Exceptions

  • AgentsforBedrock.Client.exceptions.ThrottlingException

  • AgentsforBedrock.Client.exceptions.AccessDeniedException

  • AgentsforBedrock.Client.exceptions.ValidationException

  • AgentsforBedrock.Client.exceptions.InternalServerException

  • AgentsforBedrock.Client.exceptions.ResourceNotFoundException