:doc:`AgentsforBedrock <../../bedrock-agent>` / Client / list_agent_knowledge_bases

**************************
list_agent_knowledge_bases
**************************



.. py:method:: AgentsforBedrock.Client.list_agent_knowledge_bases(**kwargs)

  

  Lists knowledge bases associated with an agent and information about each one.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListAgentKnowledgeBases>`_  


  **Request Syntax**
  ::

    response = client.list_agent_knowledge_bases(
        agentId='string',
        agentVersion='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type agentId: string
  :param agentId: **[REQUIRED]** 

    The unique identifier of the agent for which to return information about knowledge bases associated with it.

    

  
  :type agentVersion: string
  :param agentVersion: **[REQUIRED]** 

    The version of the agent for which to return information about knowledge bases associated with it.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the ``nextToken`` field when making another request to return the next batch of results.

    

  
  :type nextToken: string
  :param nextToken: 

    If the total number of results is greater than the ``maxResults`` value provided in the request, enter the token returned in the ``nextToken`` field in the response in this field to return the next batch of results.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

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

    

    - *(dict) --* 
      

      - **agentKnowledgeBaseSummaries** *(list) --* 

        A list of objects, each of which contains information about a knowledge base associated with the agent.

        
        

        - *(dict) --* 

          Contains details about a knowledge base associated with an agent.

          
          

          - **knowledgeBaseId** *(string) --* 

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

            
          

          - **description** *(string) --* 

            The description of the knowledge base associated with an agent.

            
          

          - **knowledgeBaseState** *(string) --* 

            Specifies whether the agent uses the knowledge base or not when sending an `InvokeAgent <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html>`__ request.

            
          

          - **updatedAt** *(datetime) --* 

            The time at which the knowledge base associated with an agent was last updated.

            
      
    
      

      - **nextToken** *(string) --* 

        If the total number of results is greater than the ``maxResults`` value provided in the request, use this token when making another request in the ``nextToken`` field to return the next batch of results.

        
  
  **Exceptions**
  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ThrottlingException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ResourceNotFoundException`

  