Skip to content

demo:orchestrator fails: missing required --subagent_urls argument #586

@Wirasm

Description

@Wirasm

Description

Running npm run demo:orchestrator from samples/client/lit fails immediately because the npm script doesn't pass the required --subagent_urls CLI option to the orchestrator agent.

Steps to Reproduce

cd samples/client/lit
export GEMINI_API_KEY="..."
npm install
npm run demo:orchestrator

Error

[ORCH] Usage: . [OPTIONS]
[ORCH] Try '. --help' for help.
[ORCH]
[ORCH] Error: Missing option '--subagent_urls'.
[ORCH] npm run serve:agent:orchestrator exited with code 2

Root Cause

The orchestrator's __main__.py requires --subagent_urls as a required CLI option:

@click.option("--subagent_urls", multiple=True, type=str, required=True)

But the npm script in package.json runs it without any arguments:

"serve:agent:orchestrator": "cd ../../agent/adk/orchestrator && uv run ."

Expected Behavior

npm run demo:orchestrator should start the required sub-agents (restaurant_finder, contact_lookup, rizzcharts) and pass their URLs to the orchestrator. For example, the script could:

  1. Start sub-agents on known ports first
  2. Pass their URLs via --subagent_urls http://localhost:10003 --subagent_urls http://localhost:10004 ...

Environment

  • macOS
  • Node.js v18+
  • Python 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions