input: def virtual_assistant(project_id: str, session_id: str) -> None:
      """Creates a virtual assistant using Python and Dialogflow to answer basic questions. 
      The assistant interacts with the user via text input and outputs AI-generated responses.
      
      >>> virtual_assistant('project-id', 'session-id')
      User: What is the weather today?
      Assistant: The weather today is sunny with a temperature of 25 degrees Celsius.
      User: Goodbye
      Assistant: Goodbye! Have a great day!
      """
output:     import dialogflow_v2 as dialogflow
      import os
  
      def detect_intent_texts(project_id, session_id, texts, language_code='en'):
          session_client = dialogflow.SessionsClient()
          session = session_client.session_path(project_id, session_id)
  
          for text in texts:
              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(f"User: {text}")
              print(f"Assistant: {response.query_result.fulfillment_text}")
  
      texts = []
      while True:
          user_input = input("User: ")
          if user_input.lower() in ['exit', 'quit', 'goodbye']:
              break
          texts.append(user_input)
  
      detect_intent_texts(project_id, session_id, texts)