# Create a ReAct agent with memory
agent = ReActAgent(llm=llm, tools=tools, memory=TokenMemory(llm))