Menu

Persistent memory for eve agents - Vercel
📰

Persistent memory for eve agents - Vercel

Vercel News·Andrew Barba·5 days ago
#QX0KhT6P
#vercel#memory#provider#file#scope
Reading 0:00
15s threshold

eve agents can now retain context across sessions and use it in future conversations.

Persistent memory is organized into slots. You can define named slots in files under agent/memory/ . Each slot specifies a provider, which stores and retrieves the memory, and a scope, which determines who or what shares it. For example, you can keep separate memory for each authenticated user.

Before each turn, eve retrieves relevant memory and adds it to the model's context. Depending on the provider, memory can be updated automatically after a turn, through tools the agent uses, or through both methods.

To add eve's built-in file memory provider, run:

Add eve’s built-in file memory provider.

The command creates a file memory slot scoped to each authenticated caller:

import { defineMemory } from "eve/memory" ;

import { fileMemory } from "eve/memory/file" ;

import { byPrincipal } from "eve/memory/scope" ;

export default defineMemory ( {

description : "Remember useful details from previous conversations."…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.