From e6d159a8532a09fcb9353c783d448096fce1d03c Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 8 Jun 2026 09:04:23 -0300 Subject: [PATCH] Refresh builder runtime visibility --- a2a.yaml | 2 +- agent.py | 3 ++- agent_builder/builder.py | 2 ++ agent_builder/tools.py | 2 +- requirements.txt | 2 +- tests/test_template_init.py | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/a2a.yaml b/a2a.yaml index 8d75184..5dadf9a 100644 --- a/a2a.yaml +++ b/a2a.yaml @@ -1,5 +1,5 @@ name: agent-builder -version: 0.1.8 +version: 0.1.9 entrypoint: agent:AgentBuilder description: Generate, test, and deploy new a2a agents from natural language. expose: diff --git a/agent.py b/agent.py index ece2f0c..23ffc8d 100644 --- a/agent.py +++ b/agent.py @@ -50,7 +50,7 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]): "Writes the project into the user's workspace, validates it in a " "sandbox, then ships it via the control plane." ) - version = "0.1.8" + version = "0.1.9" config_model = BuilderConfig auth_model = NoAuth @@ -147,6 +147,7 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]): llm_temperature_mode=creds.temperature_mode, llm_temperature=creds.temperature, llm_extra_body=creds.extra_body, + llm_metadata=getattr(creds, "metadata", None), )) user_msg = ( diff --git a/agent_builder/builder.py b/agent_builder/builder.py index 2638321..a8bbab7 100644 --- a/agent_builder/builder.py +++ b/agent_builder/builder.py @@ -39,6 +39,7 @@ class BuilderContext: llm_temperature_mode: str | None = None llm_temperature: float | None = None llm_extra_body: dict[str, Any] | None = None + llm_metadata: dict[str, Any] | None = None SYSTEM_PROMPT = """\ @@ -332,6 +333,7 @@ def build_agent_builder(ctx: BuilderContext) -> Any: temperature_mode=ctx.llm_temperature_mode or "default", temperature=ctx.llm_temperature, extra_body=dict(ctx.llm_extra_body or {}), + metadata=dict(ctx.llm_metadata or {}), ) kwargs: dict[str, Any] = { "tools": tools, diff --git a/agent_builder/tools.py b/agent_builder/tools.py index 36fcda5..a014da5 100644 --- a/agent_builder/tools.py +++ b/agent_builder/tools.py @@ -34,7 +34,7 @@ if TYPE_CHECKING: from .config import Settings -A2A_PACK_MIN_VERSION = "0.1.80" +A2A_PACK_MIN_VERSION = "0.1.81" A2A_PACK_SANDBOX_FALLBACK_VERSION = "0.1.79" logger = logging.getLogger(__name__) diff --git a/requirements.txt b/requirements.txt index c38cc50..fbc67e2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -a2a-pack>=0.1.80 +a2a-pack>=0.1.81 httpx>=0.27 boto3>=1.34 deepagents>=0.5.0 diff --git a/tests/test_template_init.py b/tests/test_template_init.py index 7b5ed8f..ff856c9 100644 --- a/tests/test_template_init.py +++ b/tests/test_template_init.py @@ -344,7 +344,7 @@ class TemplateInitTests(unittest.TestCase): "export PYTHONDONTWRITEBYTECODE=1", str(sandbox.calls[0]["script"]), ) - self.assertIn("a2a-pack>=0.1.80 unavailable", str(sandbox.calls[0]["script"])) + self.assertIn("a2a-pack>=0.1.81 unavailable", str(sandbox.calls[0]["script"])) self.assertIn("a2a-pack==0.1.79", str(sandbox.calls[0]["script"])) self.assertEqual(_FakeAsyncClient.posts, [])