evaluate( )

Pattern

Jev Memory

Long-term agent memory with three Jev gates. Keep durable facts, recall what fits a token budget, and evict what went stale. Nothing is rewritten.

BeginnerSep 2026View the full pattern on desktop
Jev Memory preview

Problems solved

  • Keep only durable facts in agent memory
  • Recall the memories that fit a token budget for this turn
  • Evict memories that newer turns made stale

Use cases

  • Long-term memory for a chat agent
  • Filtering what an agent writes to memory
  • Compacting stale facts out of a memory store

AI SDK APIs

experimental_evaluate

Tags

jevevaluationmemorylong-term-memorybooleanscoreai-sdk

Requirements

Node.js
24+
Memory
256MB
Other
  • Vercel AI Gateway API key

Environment variables

External services

vercel-ai-gatewayupstash

Ready to use?

View the full interactive pattern with live preview and copy the source code.

View the pattern on desktop

Related patterns