def chat() -> str:
    """Chat example with a Large Language Model"""

    model = genai.GenerativeModel("gemini-1.5-pro-002")
    chat = model.start_chat()
    response = chat.send_message("Hello, how are you?")
    response = chat.send_message("What is the capital of France?")

    return response.text
Chat example with a Large Language Model
packages/sample-app/sample_app/gemini.py