Use Cases / agent-memory
Agent memory gate
An agent memory store grows faster than the context window. Dumping every note into the next prompt crowds out the task.
Try a related template free on this host — 5 anonymous real-API runs with no signup — then ship the same schema with a prepaid jv_live_ key. See is Jev free? and playground.
Why Jev
Before you inject a memory, ask if it is relevant and how useful it is on a short scale. Irrelevant notes stay in the store and out of the prompt. That is a gate in front of retrieval, not a new database.
How to define the decision
State is the current task plus one memory. A Noul asks if it is relevant. A Score asks how useful it is, with an irrelevant level at the bottom. Inject the note only when both clear your thresholds.
When to use Jev
- Filtering memories retrieved for the current task
- Dropping preference notes that cannot affect the step in front of you
- Keeping an audit of what was withheld
When not to use Jev
- Writing, embedding, or storing the memories
- Deciding long-term identity or user profile fields
- Replacing access control on private notes
Failure modes and human fallback
- Upstream or network errors: retry with backoff; do not invent a decision.
- Low confidence: route to a human queue or safer default — never auto-act on money/destructive tools.
- Schema drift: keep a golden fixture set in CI so label changes fail the build before production.
- This host does not store your agent memory.
- Relevance is not permission to reveal another user note.
- Pair this with context compaction when the thing you might drop is a tool result rather than a stored note.
API example
Same prepaid jv_live_ balance as tools. Output tokens are free on this host's metering model.
curl https://jevtypesafe.org/api/v1/decide \
-H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"state":"Task: roll back the payments deploy from 14:10 UTC.\nMemory: the user likes dark mode in the dashboard.","questions":{"relevant":{"type":"noul","instructions":"Is this memory relevant to the current task?"},"usefulness":{"type":"score","instructions":"How useful is this memory for the current task?","criteria":["irrelevant","weak","useful"]}}}'FAQ
- Do you host a memory database?
- No. Send the note you already stored. The decide call only scores it. Packs are on /pricing/.
- How is this different from context compaction?
- Compaction judges tool calls already in the transcript. This gate judges a note you might add. Use both if you do both.
Related use cases
Ready to build?
Free anonymous tool runs, then prepaid packs and a jv_live_ key — independent host, not affiliated with TypeSafe AI.