def create_knowledge_base(project_id, display_name):
import dialogflow_v2beta1 as dialogflow<EOL>client = dialogflow.KnowledgeBasesClient()<EOL>project_path = client.project_path(project_id)<EOL>knowledge_base = dialogflow.types.KnowledgeBase(<EOL>display_name=display_name)<EOL>response = client.create_knowledge_base(project_path, knowledge_base)<EOL>print('<STR_LIT>')<EOL>print('<STR_LIT>'.format(response.display_name))<EOL>print('<STR_LIT>'.format(response.name))<EOL>
Creates a Knowledge base.

    Args:
        project_id: The GCP project linked with the agent.
        display_name: The display name of the Knowledge base.