Files
retoorandClaude Sonnet 5.5 33e6ab0d54 feat(clients): adk: agents, tools, runner with hard caps, multi-agent graph, MCP and A2A clients, Studio export, Garden, AP2, triggers
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>
2026-10-24 04:34:22 +02:00

25 lines
1.2 KiB
C++

// Routes: GET /agent/adk, /agent/adk/status, /agent/adk/garden
#include "support/GoogleRig.hpp"
using namespace molo::example::test;
int main() {
GoogleRig none(false);
Fixture f(none.client);
auto page = f.client->get("/agent/adk");
check(page.status == 200, "page 200 without a credential");
check(contains(page.body, "agent_adk.js") && contains(page.body, "adk-run"), "page has the runner UI");
auto st = f.client->get("/agent/adk/status");
check(st.status == 200 && contains(st.body, "\"configured\":false"), "status shows not configured");
check(contains(st.body, "\"max_steps\":12") && contains(st.body, "\"max_tool_calls\":24"), "caps shown");
auto g = f.client->get("/agent/adk/garden");
check(g.status == 200, "garden 200");
for (const char* id : {"code_modernization", "financial_analysis", "economic_research", "invoice_processing"})
check(contains(g.body, id), std::string("garden lists ") + id);
check(none.mock->send_count() == 0, "side effect: no upstream traffic");
check(f.client->post("/agent/adk").status == 405, "post page is 405");
check(f.client->post("/agent/adk/garden").status == 405, "post garden is 405");
check(f.client->get("/agent/adk/run").status == 405, "get run is 405");
return finish("agent/adk page");
}