Key-value store for manipulating objects
In many real-world tasks, the agent needs to deal with different types of data. Even assuming that the LLM can reliably manipulate text, you often need to work with other objects, such as structured data in the form of dataframes, JSONs, or just any Python objects.
MotleyCrew provides a simple way to store and retrieve objects using a key-value store, allowing the agent to use them in its operations, like passing them to tools (e.g. calling a query tool to get some statistics about a particular dataset).
The key-value store is a dictionary that can be accessed at agent.kv_store
.
A simple example of using the key-value store can be found here.