Skip to main content

Understanding how dedicated & shared tool memory works in SuperAGI

By extending agent capabilities with the aid of SuperAGI tools, developers can carry out particular tasks outside the purview of the usual LLM. For instance, the GoogleSearchTool enables agents to sca

rocky3 min read

By extending agent capabilities with the aid of SuperAGI tools, developers can carry out particular tasks outside the purview of the usual LLM. For instance, the GoogleSearchTool enables agents to scan Google search results and extract insightful information, while the CodingTool enables the writing, ag, and reworking of code. Tools have the ability to access other tools' memories in order to incorporate their knowledge and lessons learned into their own operations, which improves the calibre of the agent's output.

🧠 Dedicated and Shared Tool Memory

Tools may access the memory of their own previous iterations and apply the lessons learned appropriately in subsequent runs thanks to each tool having its own dedicated memory.

Additionally, tools have a broader Shared Memory (a Vector DB) that enables them to communicate with one another and obtain the pertinent data they need to accomplish their objectives.

MsQwsxg0 Tn uCfxClbJ

⚙️ How does this work?

SuperAGI agents can use a variety of tools during each run to accomplish their objectives through numerous iterations.

Tools can retrieve data points from their own dedicated memory for all prior iterations or, upon completion of each iteration, fetch the most recent memory utilized by another tool.

This procedure is referred regarded as a "Feed Memory" since it allows an agent to retrieve tool learnings from all agent run iterations.

For instance, If an agent is established with access to SearchTool —> WriteToFile —> CodingTool to achieve a goal. Then during a run, the CodingTool can fetch the memory of the last search results conducted by the ‘SearchTool’ directly to write the code. The “Feed Memory” also allows the SearchTool to fetch the memory of any former iterations of itself i.e.,


YutOf0 eACLvTNpjA

Tools can also access the Long-Term-Memory(LTM) of previously used tools both within and across runs providing output history from past runs.

Long-term memory allows the tools to store the learnings of any other tool and itself during the complete agent workflow.

For instance, If an agent is established with access to CodingTool —> WriteToFile —> GitHubTool. Any iteration of the CodingTool's memory is accessible to the WriteToFile. Once the initial agent run is completed, the overall learning of each tool used in the run including all previous iterations will be saved in LTM. These learnings can then be accessed and employed during future agent runs within an agent workflow.

✨ Conclusion

The Traditional CoT (Chain of Thoughts) method sends extremely limited context to the following step between each agent iteration. However, when the demand arises to convey the complete memory of a tool to the next iteration, the performance of CoT tends to be sub-optimal. The most recent developments in SuperAGI tool architecture aim to do away with these shortcomings and improve the tools' ability to interface with memory when utilizing SuperAGI.

Try SuperAGI - https://superagi.com/understanding-how-dedicated-shared-tool-memory-works-in-superagi/

Frequently Asked Questions

What is tool memory in SuperAGI?
Tool memory is the storage that lets SuperAGI tools keep information across steps or runs, so agents can reuse results instead of recomputing them or losing context between tasks.
What is the difference between dedicated and shared memory?
Dedicated memory belongs to a single tool or agent and keeps its data isolated, while shared memory can be accessed by several tools or agents, enabling collaboration and data reuse.
Why does memory matter for AI agents?
Memory helps agents stay consistent, avoid repeating work and build on earlier results. Good design also limits unintended data sharing between agents or tools. Review sharing settings carefully.

Related Articles

COMMENTS (0)

Sign in to post intel on this briefing.

NEW350+ rooms now have a live terminal, so you can learn by typing the commands, right in your browser.Learn in a live terminal. 350+ rooms.Try a labCodelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us