Playground/Agents & workflows/Ask gate
ReliabilityDocs
API ACTIVITY

Usage & budget

PLAYGROUND REQUEST LIMITS

Steady requests. Visible limits.

0 active · 0/20 queued

Default browser queue: one start every 1.2 seconds (at most 50/minute), up to 2 active calls and 20 waiting (lifted when server unthrottled mode is active). Waiting requests cancel when their run is stopped.

Default server limiter: 60 requests per rolling 60 seconds and 2 concurrent calls per server instance unless lifted by server configuration.

Source: playground policy in lib/requestRateLimit.ts. Upstream HTTP 429 pauses calls until its reported reset; without a reset time, retry requires your action. No automatic retries or background replay.

Connecting
Ask gate

Ask Herb, or ask a human?

Check official TypeSafe docs first. If they do not resolve it, check community context before asking a person.

Classification only · no answers written
WORKSPACE GUIDE

Ask gate

Decide whether a request belongs with Herb or needs human attention.

QuestionEvidenceReview decision

What you provide

An incoming question or chat dump, conversation history, and optional documentation that could support an answer.

What happens

Herb classifies whether the supplied evidence can support the question. Citation checks and conservative policy control the final routing decision.

What you get

An evidence-backed gate decision with supporting citations, or a human handoff when support is weak. No answer or message is sent.

Walk through a run

  1. 01

    Supply the evidence

    Enter a question with conversation history and optional documentation.

  2. 02

    Run the gate

    Triage one question or a whole chat dump.

  3. 03

    Check the citation

    Inspect the supporting message or document. Weak evidence goes to a human.

Try this

Run the sample with its supporting documentation, then remove that evidence and compare the handoff decision.

Execution limits

Live classification only. The lab does not write an answer or contact a reviewer.

Explore the example. Check the evidence.

What came in

The question is gated on its own. It does not need to appear in the transcript below.
Only the last 20 messages are sent as context.Official TypeSafe docs are retrieved automatically. Add optional local notes here. One line per fact. Headings starting with # name the section a citation points at.
Parsed context 4 messages · 0 doc lines
Val

Every Jev call in this playground goes through /api/run, so TYPESAFE_API_KEY stays server-side. Never ship it to the browser.

Morgan

Same on Vercel: add TYPESAFE_API_KEY as a project environment variable and redeploy. No NEXT_PUBLIC_ prefix, ever.

Priya

Rate limits are 60 requests a minute per key. Go over and you get HTTP 429 back; the playground shows it as a plain error and you retry.

Val

And leave the model field empty if you want herb-latest, which is the default.

Official docs → community context → human

Every run reads TypeSafe’s full documentation first (cached for 10 minutes). If unavailable, it follows relevant pages from the docs index.

Model
Docs first · up to 2 Herb requests

The gate

QuestionEvidenceReview decision

Does this really need a person?

Run triage to see whether the channel or the docs already answered it, with the exact line that proves it.

Gate more questionsTrust a person

Herb only picks one of four outcomes and one piece of evidence. Any weak or unsupported match falls back to a human.