Skip to content

Docs

State

How to shape what Jev evaluates: a string, a named object, or an array of messages. Every question in a request sees the same state and is evaluated independently.
Format
Docs
Reading time
2 min
Published by
TypeSafe AI
Last verified
Sep 2026

Highlights

  • A string is one message or passage; an object adds named fields; an array models a message sequence.
  • Objects are recommended for most requests so each part of the state has a descriptive name.
  • One request pairs one state with one or more questions, mixing Choice, Score, and Noul freely.

Quickstart

json
{
  "ticket": {
    "subject": "Duplicate charge",
    "messages": [
      {"from": "customer", "text": "I was charged twice for order A-104. Please refund the duplicate."},
      {"from": "support", "text": "We are checking the charges."}
    ]
  }
}

Watch out

Jev accepts text only, and packing in large amounts of unrelated detail causes context rot, so trim state to what the question needs.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai