feat(clients): adk+live: close gaps (YAML config import, VertexModel only, MCP tools/call and A2A card live, AP2 v0.2, live features verified, wolfSSL timeout/close status and MSG_NOSIGNAL)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 07:32:23 +02:00
co-authored by Claude Sonnet 5.5
parent 29d775a923
commit f3e1b5db3d
34 changed files with 2920 additions and 655 deletions
+11 -8
View File
@@ -1,11 +1,13 @@
#pragma once
// Agent Studio export / import of an agent definition. The format follows
// ADK's Agent Config (agent_class, name, model, description, instruction,
// tools [{name}], sub_agents) with two local rules: sub_agents are inlined
// objects (config_path references are rejected loudly) and workflow agents
// carry max_iterations. A definition names tools; behavior comes from the
// ToolRegistry at import time, so a definition never contains code.
// Agent Studio export / import of an agent definition. The format is ADK's
// Agent Config (google/adk-python AgentConfig.json: agent_class, name, model,
// description, instruction, output_key, tools [{name, args}], sub_agents,
// max_iterations), JSON or YAML, with one local rule: sub_agents are inlined
// objects (the schema's config_path / code references are rejected loudly).
// Unknown fields and ADK fields this runtime lacks (callbacks, schemas,
// generate_content_config) are rejected by name. A definition names tools;
// behavior comes from the ToolRegistry at import time, so it never carries code.
#include <map>
#include <memory>
@@ -31,13 +33,14 @@ class ToolRegistry {
class AgentDefinition {
public:
static clients::body::Json to_json(const BaseAgent& agent);
// Block-style YAML of the same document (clients::body::yaml_dump).
// Block-style YAML of the same document (adk::yaml::dump); from_text reads it back.
static std::string to_yaml(const BaseAgent& agent);
// Validates class, names, tool names, counts, depth before building.
static std::shared_ptr<BaseAgent> from_json(const clients::body::Json& doc,
const ToolRegistry& registry);
// Parses JSON text (at most kMaxDefinitionBytes) then from_json.
// Parses JSON (text starting with '{') or the strict YAML subset of
// yaml.h (at most kMaxDefinitionBytes), then from_json.
static std::shared_ptr<BaseAgent> from_text(const std::string& text,
const ToolRegistry& registry);
};