Artifact c00d37097843fb4c0d3c194bff59b5be81062b82f8d41677ff75b0a51a865674:
- File
test/pic/gemini-streams/agent_tools.want
— 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: 716) [annotate] [blame] [check-ins using] [more...]
result: ok stop: toolUse usage: {"input_tokens":50,"output_tokens":30,"cache_read_input_tokens":0,"reasoning_tokens":15,"total_tokens":80} id: resp-agent native: [{"text":"Plan the write.","thought":true,"thoughtSignature":"c2lnLXRob3VnaDE="},{"functionCall":{"name":"write","args":{"path":"notes.txt","content":"hi"}},"thoughtSignature":"c2lnLWNhbGwx"},{"functionCall":{"name":"bash","args":{"command":"true"}}}] neutral: [{"type":"thinking","thinking":"Plan the write.","signature":"c2lnLXRob3VnaDE="},{"type":"toolCall","id":"write_1","name":"write","arguments":{"path":"notes.txt","content":"hi"},"thoughtSignature":"c2lnLWNhbGwx"},{"type":"toolCall","id":"bash_2","name":"bash","arguments":{"command":"true"}}]