Skip to main content

Memory

This page lists Memory

In-Memory Memory

The Arc Agent Framework provides a default in-memory implementation of the Memory interface. The implementation is automatically configured when the Arc Spring Boot Starter is used and no other implementation of the Memory interface is provided.

This implementation is good for getting started, but it is not recommended for production use.

Mongo Memory

Package NameType
io.github.lmos-ai.arc:arc-memory-mongo-spring-boot-starter:$arcVersionSpring Boot Starter

The Mongo Memory implementation uses the Mongo Database to store data.

The module is provided as a Spring Boot Starter and under the hood uses Spring Data to access the Mongo Database.

A time-to-live (TTL) index is created for short-term memory entries to automatically remove them after a period of time.

ConfigurationDescriptionTypeDefault
arc.memory.short-term-ttlThe time-to-live for short-term memory entries.DurationPT3H (3 hours)
spring.data.mongodb.uriThe uri of the Mongo Database. Example, "mongodb://admin:password@localhost:27017/memory"URIlocalhost

For more details on how to configure a Mongo Database with Spring, please refer to https://docs.spring.io/spring-data/mongodb/reference/mongodb.html.