async def main(): thread = agent.get_new_thread() while True: user_input = input("User: ") if user_input.startswith("exit"): break response = await agent.run(user_input, thread=thread) print(response.text) memory_provider.clear()