llm = OpenAI(model="gpt-4-1106-preview")
agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)
response = agent.chat("hi I'm Andrew")
llm = Gemini(model="models/gemini-pro", api_key=userdata.get('GOOGLE_API_KEY'))
agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)
response = agent.chat("hi I'm Andrew")
agent = OpenAIAgent.from_tools(tools, llm=llm, verbose=True, system_prompt=SYSTEM_PROMPT)
ReActAgent.from_tools()
is missing that field. I'm guessing the system prompt is OpenAI specific unless I'm missing something.from llama_index.llms import ChatMessage agent = ReActAgent.from_tools(..., chat_history=[ChatMessage(role="system", content="...")])