Skip to content

Commit b063dfc

Browse files
committed
feat: more generic url
1 parent 0c6086c commit b063dfc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/google/adk/cli/fast_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ def get_fast_api_app(
6464
allow_origins: Optional[list[str]] = None,
6565
web: bool,
6666
a2a: bool = False,
67-
host: str = "127.0.0.1",
68-
port: int = 8000,
67+
base_url: str = "http://127.0.0.1:8000",
6968
trace_to_cloud: bool = False,
7069
reload_agents: bool = False,
7170
lifespan: Optional[Lifespan[FastAPI]] = None,
@@ -352,7 +351,7 @@ async def _get_a2a_runner_async() -> Runner:
352351
logger.info("Setting up A2A agent: %s", app_name)
353352

354353
try:
355-
a2a_rpc_path = f"http://{host}:{port}/a2a/{app_name}"
354+
a2a_rpc_path = f"{base_url}/a2a/{app_name}"
356355

357356
agent_executor = A2aAgentExecutor(
358357
runner=create_a2a_runner_loader(app_name),

0 commit comments

Comments
 (0)