1. Data source
  2. Decision schema
  3. Model inference
  4. Structured result
2 Decision schema 3 typed questions
  • memory_typechoicepreferencefacttask_stateepisodediscard
  • importancescoretrivialusefulimportantcritical
  • sensitivenoulprobability 0–1

3 Model inference typesafe/jev-1.13

Waiting for a run.

4 Structured result

Run the demo to see the JSON answers, the highlighted pick and the final action.

Call Jev yourselfSame data and schema, straight to Flatkey. Set FLATKEY_API_KEY and run.
curl -sS https://router.flatkey.ai/api/alpha/decisions \
  -H "Authorization: Bearer $FLATKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "typesafe/jev-1.13",
  "state": "Turn 14, billing assistant. User: \"Please stop emailing me invoices, just put them in the dashboard. Also my card ending 4242 expires next month.\" Proposed memory: user prefers dashboard-only invoices; card 4242 expires next month.",
  "questions": {
    "memory_type": {
      "type": "choice",
      "instructions": "What kind of memory is this, if any?",
      "criteria": {
        "preference": "A stable user preference or instruction about how to be served",
        "fact": "A durable fact about the user, their account or their world",
        "task_state": "Progress on an ongoing task that matters for the next steps",
        "episode": "A one-off event worth recalling briefly, not a lasting fact",
        "discard": "Small talk, repetition or nothing worth storing"
      }
    },
    "importance": {
      "type": "score",
      "instructions": "How much would forgetting this hurt future conversations?",
      "criteria": [
        "trivial",
        "useful",
        "important",
        "critical"
      ]
    },
    "sensitive": {
      "type": "noul",
      "instructions": "Contains payment details, credentials, health or other personal data that must not be stored as-is."
    }
  }
}'

No Flatkey key yet? Get one for Jev 1.13 →

Run with real Jev

Sign in and connect a key

  1. Sign in with Google.
  2. Connect your Flatkey or OpenRouter key on the next screen. Get a Flatkey key for Jev 1.13.
  3. Come straight back here and press Run again.

This site is for researching, sharing and cataloguing Jev use cases. Your key is only there to make trying Jev convenient: it is stored encrypted, used only for runs you trigger, never used for anything else, and you can delete it anytime.

About this use case

Use Jev to gate agent memory: incoming state, Jev decision, routed outcome

Who / when

Audience

  • agent builders whose memory store fills with noise and stale facts
  • assistant teams that must keep personal data out of long-term memory
  • platform teams adding budgets and audit trails to agent memory

Triggers

  • every turn, the agent proposes a new memory to store
  • long-term memory is polluted with small talk and one-off details
  • memories can contain card numbers, secrets or health details
  • an LLM call per memory write is too slow or too expensive

The workflow

  1. 01
    Candidate memoryProposed note plus turn contextInput
  2. 02
    Choicepreference / fact / task / episode / discardJev
  3. 03
    Score + NoulImportance, sensitive-data flagJev
  4. 04
    Code gateWrite, redact, expire or dropYour code

Question shape

{
  "memory_type": {
    "type": "choice",
    "instructions": "What kind of memory is this, if any?",
    "criteria": {
      "preference": "A stable user preference or instruction about how to be served",
      "fact": "A durable fact about the user, their account or their world",
      "task_state": "Progress on an ongoing task that matters for the next steps",
      "episode": "A one-off event worth recalling briefly, not a lasting fact",
      "discard": "Small talk, repetition or nothing worth storing"
    }
  },
  "importance": {
    "type": "score",
    "instructions": "How much would forgetting this hurt future conversations?",
    "criteria": [
      "trivial",
      "useful",
      "important",
      "critical"
    ]
  },
  "sensitive": {
    "type": "noul",
    "instructions": "Contains payment details, credentials, health or other personal data that must not be stored as-is."
  }
}

Gate policy

≥ 0.90

Write to the chosen store; code sets the expiry.

0.65–0.90

Write to short-term memory only; redact flagged details.

< 0.65

Don't write. Keep it in the transcript only.

Failure modes

Pre-launch checks before you trust auto-routing:

  • Two memories in one proposal (a preference plus a payment detail);
  • Temporary states stored as permanent facts ("I'm in Berlin this week");
  • Sensitive data hidden in casual wording or partial numbers;
  • Contradictions with memories already stored;
  • Prompt injection that asks the agent to remember instructions;
Keep exact work in code: redaction patterns, retention periods, per-user quotas, deletion requests and query budgets should be deterministic. Jev classifies the memory; code owns storage.

FAQ

What does "typed memory" mean?

Dark Factor's summary of four production papers (post below) describes putting memory under control: typed writes, routed reads and a budget for every query, with the expensive model waking only for synthesis. It reports memory builds 6.6× faster and queries taking 0.93 s. This page covers the write side.

What about reads?

Use the same idea at query time: a Choice picks which store to read (preferences, facts, task state or none), code enforces a per-query budget, and only then does a larger model synthesize an answer from what came back.

Why not let the agent's LLM decide what to remember?

It works, but every write becomes another generation call, and the decision is buried in prose. A typed answer with a probability is cheap, auditable and easy to gate, and a sensitive-data flag can block the write before anything is stored.

Can I bring my own API key?

Yes. Try the free demo above without signing in. To run it live on your own text, sign in with Google and connect a Flatkey or OpenRouter key (a quick test call runs when you save it). Manage or delete it anytime under Dashboard → BYOK. Keys are stored encrypted on the server, used only for runs you trigger, and never sent back to the browser. Need a Flatkey key? Get one for Jev 1.13 on Flatkey.

Is this the official TypeSafe Jev product page?

No. jev-llm.com is an independent research and practice site. Verify pricing, models and terms at the original TypeSafe sources.

Sources

Seen on X
Independent-site note: jev-llm.com is an independent research and practice site. It is not the TypeSafe AI official site. Verify models, pricing and terms at the original source.