From 2a8c03c5bff7173948ab5c7b1adce0e87132876f Mon Sep 17 00:00:00 2001 From: Jay Hemnani Date: Tue, 30 Dec 2025 03:13:00 -0800 Subject: [PATCH] fix(orchestrator): add missing imports for Consumer, Client, AgentCard, etc. The orchestrator agent sample was missing several required imports, causing a NameError when trying to run the agent. Added imports: - Any from typing - Client, ClientCallContext, Consumer from a2a.client - AgentCard from a2a.types Fixes #326 --- samples/agent/adk/orchestrator/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/agent/adk/orchestrator/agent.py b/samples/agent/adk/orchestrator/agent.py index ba878e08..279067fd 100644 --- a/samples/agent/adk/orchestrator/agent.py +++ b/samples/agent/adk/orchestrator/agent.py @@ -15,8 +15,8 @@ import json import logging import os -from typing import List -from a2a.client import A2ACardResolver +from typing import Any, List +from a2a.client import A2ACardResolver, Client, ClientCallContext, Consumer from a2a.extensions.common import HTTP_EXTENSION_HEADER from google.adk.models.lite_llm import LiteLlm from google.adk.agents.llm_agent import LlmAgent @@ -32,7 +32,7 @@ from subagent_route_manager import SubagentRouteManager from a2ui.a2ui_extension import is_a2ui_part, A2UI_EXTENSION_URI from typing import override -from a2a.types import TransportProtocol as A2ATransport +from a2a.types import AgentCard, TransportProtocol as A2ATransport logger = logging.getLogger(__name__) from a2a.client.middleware import ClientCallInterceptor