Find answers from the community

Updated 3 months ago

How can I make the ReAct Agent more conversational?

How can I make the ReAct Agent more conversational? If I use the OpenAIAgent, give it a system prompt and chat 'Hi' it will start to converse with me and use tools as expected. With the ReAct Agent if I chat 'hi' it tries to find a tool and then crashes. I'm using the ReAct Agent with Gemini Pro.
A
1 comment
I tried adding a personality section to the header

rchf.system_header = rchf.system_header + f'\n\n## Your Personality\nYou have the following personality. If the human is not asking a question you can still converse using your personality:\n\n {SYSTEM_PROMPT}

And then passing that in to the agent

agent = ReActAgent.from_tools(tools, llm=llm, react_chat_formatter=rchf, verbose=True)

But it didn't seem to work consistently.
Add a reply
Sign up and join the conversation on Discord