def list_documents(project_id, knowledge_base_id):
import dialogflow_v2beta1 as dialogflow<EOL>client = dialogflow.DocumentsClient()<EOL>knowledge_base_path = client.knowledge_base_path(project_id,<EOL>knowledge_base_id)<EOL>print('<STR_LIT>'.format(knowledge_base_id))<EOL>for document in client.list_documents(knowledge_base_path):<EOL><INDENT>print('<STR_LIT>'.format(document.display_name))<EOL>print('<STR_LIT>'.format(document.name))<EOL>print('<STR_LIT>'.format(document.mime_type))<EOL>print('<STR_LIT>')<EOL>for knowledge_type in document.knowledge_types:<EOL><INDENT>print('<STR_LIT>'.format(KNOWLEDGE_TYPES[knowledge_type]))<EOL><DEDENT>print('<STR_LIT>'.format(document.content_uri))<EOL><DEDENT>
Lists the Documents belonging to a Knowledge base.

    Args:
        project_id: The GCP project linked with the agent.
        knowledge_base_id: Id of the Knowledge base.