Files
retoorandClaude Sonnet 5.5 6d744a433f 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>
2026-10-24 04:12:52 +02:00

31 lines
1.5 KiB
C++

#pragma once
// Agent Platform demos. One register function per module, each in its own
// file under example/app/agent/. Every route lives under /agent/<module> and
// is excluded from locust (paid Google APIs). Rules for a demo:
// - GET pages and status routes answer 2xx without credentials (the matrix
// test crawls them); anything that calls Google is a POST and answers 503
// google_not_configured without a credential.
// - State lives in objects created inside the register function and
// captured by the handlers; do not edit Services.
// - The Google client is services.google (null: GoogleClient::from_env()).
#include "App.hpp"
namespace molo::example::app {
void register_agent_models_demo(fw::Router& router, Services& services);
void register_agent_runtime_demo(fw::Router& router, Services& services);
void register_agent_sessions_demo(fw::Router& router, Services& services);
void register_agent_sandbox_demo(fw::Router& router, Services& services);
void register_agent_registry_demo(fw::Router& router, Services& services);
void register_agent_armor_demo(fw::Router& router, Services& services);
void register_agent_optimize_demo(fw::Router& router, Services& services);
void register_agent_adk_demo(fw::Router& router, Services& services);
void register_agent_live_demo(fw::Router& router, Services& services);
// Mounts every module's router at "" (called once from build_application).
void register_agent_demos(std::shared_ptr<fw::Application> app, Services& services);
} // namespace molo::example::app