Find answers from the community

Updated 8 months ago

Add tools

I'd like to avoid creating a completely new ReAct agent if possible, so far it seems unavoidable.
L
k
3 comments
Been meaning to add this (like an add_tool function), but it's not a thing right now.

But, creating an agent itself is essentially a no-op
thanks for getting back to me. is it possible to copy state from the old agent to the new one with a new set of tools? i.e. conversational history, memory, tools, etc.
Yea, basically the only state is the memory and the tools

The memory is just a ChatMemoryBuffer object πŸ‘€
agent = ReActAgent.from_tools(..., memory=memory)

If you really want to boil it down too, you can also just keep track of a list of chat message objects and use those too
agent = ReActAgent.from_tools(...., chat_history=chat_history)
Add a reply
Sign up and join the conversation on Discord