gemini-3.8-flash
9/5/2026, 2:35:54 AM · 15 tests · run 20ab7e19-807c-449e-beb5-381b119b1e65
basic-generation
okPlain streaming generation with a soft length constraint (~100 words).
- Produced 97 words (128 output tokens).
Result
{
"wordCount": 97,
"outputTokens": 128
}google:gemini-3.8-flash
usage-cost
okAsserts usage tokens populate and cost computes from the ChatReq contract.
- in=10 out=152 rt=147 cost=$0.001155 (paid).
Result
{
"inputTokens": 10,
"outputTokens": 152,
"reasoningTokens": 147,
"costUsd": 0.001155,
"paid": true
}google:gemini-3.8-flash
streaming-structure
okAsserts a streaming call captures events that reconstruct into the final text.
- mode=streaming, 8 stream events, 1 text block(s), 35 chars.
Result
{
"mode": "streaming",
"streamEventCount": 8,
"textBlocks": 1,
"textLen": 35
}google:gemini-3.8-flash
complete-stream-parity
okSame prompt via stream() and complete() both return valid, matching results.
- stream="Paris" · complete="Paris"
Result
{
"streamText": "Paris",
"completeText": "Paris"
}google:gemini-3.8-flash
google:gemini-3.8-flash
reasoning-conformance
okAsserts the model's reasoning knob behaves as its reasoning-config declares.
- Class (from reasoning-config): always-on.
- reasoningTokens=794, outputTokens=1197.
Result
{
"class": "always-on",
"reasoningTokens": 794,
"outputTokens": 1197
}google:gemini-3.8-flash
single-tool-call
okOffers a calculator tool and checks the model calls it for an arithmetic question.
- Called "multiply" with args {"a":23,"b":17}.
Result
{
"toolCalled": true,
"toolName": "multiply",
"args": {
"a": 23,
"b": 17
},
"correct": true
}google:gemini-3.8-flash
tool-loop
okForces a tool call, feeds the result back, and checks the continuation uses it.
- step1 (required): multiply({"a":23,"b":17}) → step2: "The product of 23 and 17 is 391."
Result
{
"toolName": "multiply",
"args": {
"a": 23,
"b": 17
},
"product": 391,
"continuation": "The product of 23 and 17 is 391.",
"usesResult": true,
"forced": true
}google:gemini-3.8-flash
google:gemini-3.8-flash
web-search
okEnables server-side web search and checks invocation counts, the per-request cost surcharge, and provider-executed output blocks.
- Skipped: model does not support the catalog's web_search tool version.
Result
{
"skipped": "no server-side web search support"
}reasoning-tool-continuity
okReasoning model: continuity token captured on a tool call and replayed so the follow-up succeeds.
- reasoned=true, google token captured; follow-up → "### Account Balance Lookup * **Account ID:** `acme-42` * **Current Bal"
Result
{
"signatureType": "google",
"tokenCaptured": true,
"reasoned": true,
"answered": true,
"continuation": "### Account Balance Lookup\n* **Account ID:** `acme-42`\n* **Current Balance ($P$):** **$1,234.00**\n\n---\n\n### Growth Calculation\n* **Annual in"
}google:gemini-3.8-flash
google:gemini-3.8-flash
prompt-cache
okRepeat a large prefix; assert cache-read tokens are reported and cost drops.
- implicit cache; cacheRead per attempt [4081]; hit=yes.
Result
{
"cacheStyle": "implicit",
"cacheReadPerAttempt": [
4081
],
"cacheReadTokens": 4081,
"cacheHitCost": 0.01024215
}google:gemini-3.8-flash
google:gemini-3.8-flash
json-output
okRequests a strict JSON object and checks it parses with the required keys.
- Output parsed as JSON.
- All required keys present.
- Output is bare JSON (no leading prose/fence).
Result
{
"parsed": {
"name": "Anthropic",
"founded": 2021,
"headquarters": "San Francisco, California"
},
"validJson": true,
"missingKeys": [],
"bareJson": true
}google:gemini-3.8-flash
summarize-memex
okSummarizes an ~11k-token essay to ~500 words (long input, reasoning minimized).
- Read ~10155 input tokens, wrote 427 words (550 output tokens) in 3413ms.
Result
{
"wordCount": 427,
"inputTokens": 10155,
"outputTokens": 550,
"latencyMs": 3413
}google:gemini-3.8-flash
truncation
okTiny maxTokens on a long prompt yields finishReason:"length".
- finishReason=length, out=96 tokens.
Result
{
"finishReason": "length",
"outputTokens": 96
}google:gemini-3.8-flash
streaming-only-rejection
okStreaming-only models reject complete(); all others accept it.
- streamingOnly=false; complete() succeeded.
Result
{
"streamingOnly": false,
"completeThrew": false
}abort
okA pre-aborted signal rejects the call (abort is threaded + honored).
- pre-aborted signal → rejected (AbortError).
Result
{
"rejected": true,
"errorName": "AbortError"
}