feat(clients): google foundation for the agent platform: all-verb client, streaming, typed Gemini content, operations

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>
This commit is contained in:
2026-10-24 04:12:52 +02:00
co-authored by Claude Sonnet 5.5
parent 837de58136
commit 6d744a433f
32 changed files with 1536 additions and 22 deletions
+4
View File
@@ -47,6 +47,10 @@ std::string Credentials::env(const char* name) {
}
std::shared_ptr<clients::Auth> Credentials::from_env(const char* name) {
// An OAuth access token (GOOGLE_ACCESS_TOKEN, e.g. from
// `gcloud auth print-access-token`) wins: Agent Platform APIs need it.
std::string token = env("GOOGLE_ACCESS_TOKEN");
if (!token.empty()) return bearer(std::move(token));
std::string key = env(name);
if (key.empty()) return nullptr;
return api_key(std::move(key));