Artifact 9c5c3b88dd0623e56596eb14e7eb6774ddaa76c7de8ed2b2ebea3dea2a232680:
- File
test/pic/gemini-streams/tool_call.sse
— part of check-in
[1011fc8472]
at
2026-11-19 23:29:07
on branch gemini
— A Google Gemini provider, as Pi's
The google-generative-ai API: streamGenerateContent over SSE with GEMINI_API_KEY, native parts replayed per conversation, tool calls and results, usage, and Pi's thinking mapping (thinkingLevel for Gemini 3 and later, a token budget for 2.5, 0 for off). A conversation can move between Gemini and the other providers turn by turn. Recorded streams cover text, thinking, tools, parallel calls, safety blocks, truncation and errors. (user: dmestas, size: 383) [annotate] [blame] [check-ins using] [more...]
data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Writing it."},{"functionCall":{"name":"write","args":{"path":"notes.txt","content":"hi"}},"thoughtSignature":"c2lnLWNhbGw="}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":25,"candidatesTokenCount":20,"totalTokenCount":45},"modelVersion":"gemini-3-flash-preview","responseId":"resp-call"}