DirectModel over GoogleClient with thought-signature replay, discovery check
script, live verified against the real model (function calling, transfer, MCP).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ServiceAccountAuth signs an RS256 JWT with wolfCrypt from the key file in
GOOGLE_APPLICATION_CREDENTIALS and exchanges it for a self-refreshing bearer
token. GoogleClient holds a key and an OAuth credential and uses OAuth
everywhere except express endpoints, which only accept the key. Signing is
tested with generated RSA keys and public-key verification.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GoogleClient gets every verb and stream_json (SSE and plain JSON), typed
Content/Part/Tool/GenerateRequest with the LanguageModel seam, CloudContext
resource names, long-running operation polling and pagination, OAuth bearer
tokens via GOOGLE_ACCESS_TOKEN. Example scaffold: one stub per agent module
under example/app/agent, wildcard builds, locust excludes /voice /google
/agent. plans/16-agent-platform.md splits the work into nine modules.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
src/google: GoogleClient over molo::clients (key in x-goog-api-key, never in
URLs), Service base, TextToSpeech, SpeechToText, Generative (replies, audio
in, audio out), Recognizer/Synthesizer seams with cloud, gemini and vertex
backends, VoicePipeline with bounded history. Example: /voice live
conversation page, /voice/{say,hear,turn,reset}, /google/status. Keys load
from env, .env.json.local, .env.json. Paid routes are excluded from locust.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Collector: timestamped ring (deque, 60s prune under lock); RateIn/Out KB/s
- Query text/JSON gain kb_s_in/kb_s_out columns
- test: assert rates non-zero after traffic, disabled fast-path takes no lock
- full realtime suite green (13 binaries, 0 fail)