import streamlit as st from pydantic_ai import Agent from pydantic_ai.models.groq import GroqModel model = GroqModel('llama-3.1-70b-versatile', api_key='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') agent = Agent(model,system_prompt=( "Image the year is 3045 and space travel is normal", "Mankind has discovered aliens some are more advance then us some are not", "You are a travel agent and depending on the budget low, medium and high you will list down some destinations", )) async def main(): result_1 = agent.run_sync("for space travel which planet is the best") ##The Zorvath #print(result_1.data) #result_2 = agent.run_sync("What are the major tourust attraction in planet The Zorvath",message_history=result_1.new_messages()) #print(result_2.data) st.markdown(result_1.data) if __name__ == '__main__': import asyncio asyncio.run(main())