Find answers from the community

Updated 2 months ago

Hello! Someone knows how to make a ReAct

Hello! Someone knows how to make a ReAct agent in a way it doesnt try to use tools? Just act as a agent, but not requesting no tool? Using tool=None makes it tries to use a tool called None, who makes the script doesnt work
L
m
7 comments
It sounds like you don't want an agent then, just chatting with the LLM?
You could just use llm.chat(chat_messages)

Or use SimpleChatEngine
I am prototyping something, and probably sooner I will need to use some tools on the agent, but for now I wanted to try it without tools. And the way agent handle chat history was interesting for me at the time. I will try these other 2 ways!
And I am exploring some ways to handle the "couldnt find a tool for it" errors, that are turning to be pretty annoyig
yea the react agent isn't really setup to work with no tools. The simple chat engine also manages memory with a ChatMemoryBuffer

Using the LLM directly with llm.chat(), its up to you how to manage memory
The funciton calling agent would work fine with no tools, assuming you are using an LLM that supports tools/functions in its API
Got it!
But would be fine to have ways to handle agent errors like "couldnt parse output" or "no tool found" in a more gracefull way. I found something about the handle_reasoning_failure_fn, but couldnt put it to use in a satisfactory way
Add a reply
Sign up and join the conversation on Discord