Skip to content

Duplicate edges in graph when using WorkflowAgents #1601

Open
@DavidSchmidt00

Description

@DavidSchmidt00

Describe the bug
When using workflow agents the Graph in ADK Web shows duplicate edges between agents and tools.

To Reproduce

adr_documentation_generation_agent = LlmAgent(
    model=DEFAULT_MODEL,
    name="adr_documentation_generation_agent",
    description="...",
    tools=[discover_filesystem, write_file, read_file, initialize_arc42_documentation],
    instruction="...",
    before_model_callback=rate_limit_callback,
)

architecture_design_agent = LlmAgent(
    model=DEFAULT_MODEL,
    name="architecture_design_agent",
    description="...",
    tools=[discover_filesystem, read_file],
    instruction="...",
    before_model_callback=rate_limit_callback,
)

architecture_review_agent = LlmAgent(
    model=DEFAULT_MODEL,
    name="architecture_review_agent",
    description="...",
    tools=[read_file, discover_filesystem],
    instruction="...",
    before_model_callback=rate_limit_callback,
)

requirements_analyst_agent = LlmAgent(
    model=DEFAULT_MODEL,
    name="requirements_analyst_agent",
    description="...",
    tools=[read_file, discover_filesystem],
    instruction="...",
    before_model_callback=rate_limit_callback,
)

# --- Define the workflow agents ---

loop_agent = LoopAgent(
    name="design_loop",
    sub_agents=[architecture_design_agent, architecture_review_agent, adr_documentation_generation_agent],
    max_iterations=10,
)


root_agent = SequentialAgent(
    name="main_process",
    sub_agents=[
        requirements_analyst_agent,
        loop_agent,
    ],
)

Screenshots
Actual graph (duplicate connections):
Image

Expected graph:
Image

Desktop (please complete the following information):

  • OS: Windows via "mcr.microsoft.com/devcontainers/python:1-3.13-bullseye"
  • Python version(python -V): 1.13.3
  • ADK version(pip show google-adk): 1.4.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions