feat(clients): registry: Agent Registry, Agent Gateway, Agent Identity from discovery call table
86-row call table checked against Google discovery documents, typed services, local approval ledger, live read-only tests, /agent/registry demo. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// Route: POST /agent/registry/search
|
||||
#include "agent/registry/cases.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
check_google_post_route("/agent/registry/search",
|
||||
"{\"kind\":\"agents\",\"q\":\"billing\"}",
|
||||
"{\"kind\":\"endpoints\",\"q\":\"x\"}",
|
||||
"search on endpoints");
|
||||
{
|
||||
GoogleRig rig;
|
||||
Fixture f(rig.client);
|
||||
std::string long_q(600, 'x');
|
||||
check(f.client->post("/agent/registry/search", "{\"kind\":\"agents\",\"q\":\"" + long_q + "\"}", "application/json").status == 422,
|
||||
"limit: query over 512 chars is 422");
|
||||
}
|
||||
return finish("agent/registry/search");
|
||||
}
|
||||
Reference in New Issue
Block a user