7/19/2026, 1:04:31 AM · 15 tests · run dfc1c5f8-b5b2-4e02-99f3-0ea8d2d3b0be
Plain streaming generation with a soft length constraint (~100 words).
{ "wordCount": 116, "outputTokens": 150 }
Asserts usage tokens populate and cost computes from the ChatReq contract.
{ "inputTokens": 93, "outputTokens": 209, "reasoningTokens": 189, "costUsd": 0.0034140000000000004, "paid": true }
Asserts a streaming call captures events that reconstruct into the final text.
{ "mode": "streaming", "streamEventCount": 64, "textBlocks": 1, "textLen": 35 }
Same prompt via stream() and complete() both return valid, matching results.
{ "streamText": "Paris", "completeText": "Paris" }
Asserts the model's reasoning knob behaves as its reasoning-config declares.
{ "class": "toggleable", "mode": "deterministic", "offOutputTokens": 314, "midOutputTokens": 378, "midReasoningTokens": 148 }
Offers a calculator tool and checks the model calls it for an arithmetic question.
{ "toolCalled": true, "toolName": "multiply", "args": { "a": 23, "b": 17 }, "correct": true }
Forces a tool call, feeds the result back, and checks the continuation uses it.
{ "toolName": "multiply", "args": { "a": 23, "b": 17 }, "product": 391, "continuation": "23 multiplied by 17 is 391.", "usesResult": true, "forced": true }
Enables server-side web search and checks invocation counts, the per-request cost surcharge, and provider-executed output blocks.
{ "skipped": "no server-side web search support" }
Reasoning model: continuity token captured on a tool call and replayed so the follow-up succeeds.
{ "signatureType": "none", "tokenCaptured": false, "reasoned": true, "answered": true, "continuation": "The current balance for account 'acme-42' is **$1,234**.\n\n## Compound Growth Calculation\n\n**Formula:** A = P(1 + r)ⁿ\n\nWhere:\n- P = $1,234 (p" }
Repeat a large prefix; assert cache-read tokens are reported and cost drops.
{ "skipped": "cacheStyle=none" }
Requests a strict JSON object and checks it parses with the required keys.
{ "parsed": { "name": "Anthropic", "founded": 2021, "headquarters": "San Francisco, California, United States" }, "validJson": true, "missingKeys": [], "bareJson": true }
Summarizes an ~11k-token essay to ~500 words (long input, reasoning minimized).
{ "wordCount": 544, "inputTokens": 10274, "outputTokens": 740, "latencyMs": 32257 }
Tiny maxTokens on a long prompt yields finishReason:"length".
{ "finishReason": "length", "outputTokens": 100 }
Streaming-only models reject complete(); all others accept it.
{ "streamingOnly": false, "completeThrew": false }
A pre-aborted signal rejects the call (abort is threaded + honored).
{ "rejected": true, "errorName": "AbortError" }