input: 
  from typing import Dict, Any
  import dialogflow_v2 as dialogflow
  
  def virtual_assistant(project_id: str, session_id: str, language_code: str = 'en-US') -> None:
      """
      Create a virtual assistant using Dialogflow that interacts with the user by taking input
      from the console, querying Dialogflow, and printing the assistant's response.
      >>> virtual_assistant('project-123', 'session-123')
      User: What is your name?
      Assistant: My name is Assistant.
      """
      session_client = dialogflow.SessionsClient()
      session = session_client.session_path(project_id, session_id)
  
      while True:
          text = input('User: ')
          text_input = dialogflow.types.TextInput(text=text, language_code=language_code)
          query_input = dialogflow.types.QueryInput(text=text_input)
          response = session_client.detect_intent(session=session, query_input=query_input)
  
          print('Assistant:', response.query_result.fulfillment_text)
  
output:     if text.lower() in ['exit', 'quit', 'bye']:
          print('Assistant: Goodbye!')
          break