DEV Community

Cover image for One Research Loop on Three Native Agent Stacks: Google ADK, Strands and Microsoft Agent Framework Compared
xbill Subscriber for AWS Community Builders

Posted on

One Research Loop on Three Native Agent Stacks: Google ADK, Strands and Microsoft Agent Framework Compared

This article provides a step by step comparison of one multi-agent system built natively on three clouds. A researcher searches the web, a judge passes or fails the research for up to three rounds, and a content builder turns the approved research into a course. The same loop runs on Google ADK with Gemini on Vertex AI, on Strands Agents with Amazon Nova 2 Lite on Bedrock, and on Microsoft Agent Framework with Phi-4-mini on Azure AI Foundry, side by side in one repository, and each stack takes the same five topics end to end.

Repository: https://github.com/xbill9/multicloud-agent-loop


What Is Being Compared?

The loop comes from Google's ADK 2.0 and A2A codelab, updated in multi-agent-loop. It was ported to AWS in strands-bedrock-research-loop and to Azure in maf-azure-research-loop. This repository holds the agent code from all three, so the configurations can be read and run next to each other.

Every stack keeps the same prompts, the same JudgeFeedback schema (status pass or fail, plus feedback) and the same three-round limit. Every agent is its own A2A 1.x service: researcher on port 8001, judge on 8002, content builder on 8003.

Folder Framework Model Web search
gcp/ Google ADK 2.15 gemini-3-flash-preview on Vertex AI ADK google_search
aws/ Strands Agents (A2A 1.x build) us.amazon.nova-2-lite-v1:0 on Bedrock nova_grounding
maf/ Microsoft Agent Framework 1.26 Phi-4-mini-instruct on Azure AI Foundry Foundry web_search on gpt-4.1-mini

At This Point You Should Have

  • python3 on your machine. No Docker and no virtualenv are needed.
  • For the stack you run, a cloud sign-in: gcloud auth application-default login, aws login or az login.
  • For Azure, a Foundry account with a Phi-4-mini-instruct deployment and a gpt-4.1-mini deployment. make foundry in maf-azure-research-loop creates both.
  • .env copied from .env.example, with the project, region and endpoints for each stack.

The versions used throughout:

Python 3.14.7
a2a-sdk                                    1.4.0
agent-framework-a2a                        1.0.0b261112
agent-framework-core                       1.26.0
agent-framework-openai                     1.18.2
azure-identity                             1.27.0
boto3                                      1.44.16
google-adk                                 2.15.1
google-genai                               2.34.0
openai                                     3.60.0
strands-agents                             1.66.0+pr3923
Enter fullscreen mode Exit fullscreen mode

Step 1 — Install Each Stack Into One Python

Each stack has its own requirements.txt, and make install puts it into the active python3:

make install STACK=gcp
make install STACK=aws
make install STACK=maf
Enter fullscreen mode Exit fullscreen mode

All three share one interpreter, so their pins have to agree. Strands is installed from pull request #3923, the A2A 1.x migration, with --no-deps, and its other requirements are listed in aws/requirements.txt. make install runs without -U, so installing one stack leaves the versions another stack already has in place.


🔎 Tip: Two Pins Collide in a Shared Interpreter

The Strands build pins watchdog<7 for its optional tool-folder reloader, and google-adk needs watchdog>=7. A plain install of Strands downgrades watchdog and breaks ADK. Installing Strands with --no-deps keeps watchdog on 7.x.

google-adk also caps opentelemetry-api and opentelemetry-sdk at 1.45.2. An upgrade-everything install moves them past the cap. Leave out -U and both frameworks import.


Step 2 — Start Each Stack and Check Its Agent Cards

run.sh starts one stack's agents as plain processes, logs to .run/, and fetches each A2A agent card. The stacks share ports, so make smoke starts and checks each in turn:

make smoke
Enter fullscreen mode Exit fullscreen mode
gcp researcher UP   http://localhost:8001/a2a/agent/.well-known/agent-card.json
gcp judge UP   http://localhost:8002/a2a/agent/.well-known/agent-card.json
gcp content_builder UP   http://localhost:8003/a2a/agent/.well-known/agent-card.json
gcp orchestrator UP   http://localhost:8004
aws researcher UP   http://localhost:8001/.well-known/agent-card.json
aws judge UP   http://localhost:8002/.well-known/agent-card.json
aws content_builder UP   http://localhost:8003/.well-known/agent-card.json
maf researcher UP   http://localhost:8001/.well-known/agent-card.json
maf judge UP   http://localhost:8002/.well-known/agent-card.json
maf content_builder UP   http://localhost:8003/.well-known/agent-card.json
smoke OK
Enter fullscreen mode Exit fullscreen mode

The card paths already show one difference. ADK serves A2A under /a2a/agent; Strands and MAF serve it at the root.


Step 3 — Compare the Researchers

Each researcher has the same instruction and a different route to the web.

ADK hands Gemini the built-in search tool:

researcher = Agent(
    name="researcher",
    model=MODEL,
    description="Gathers information on a topic using Google Search.",
    instruction="""...""",
    tools=[google_search],
)
Enter fullscreen mode Exit fullscreen mode

Strands wraps Bedrock's nova_grounding system tool in an ordinary @tool, because Strands would otherwise try to run nova_grounding locally. The tool calls Converse directly and returns the text with its cited URLs:

@tool
def web_search(query: str) -> str:
    resp = _bedrock.converse(
        modelId=MODEL_ID,
        messages=[{"role": "user", "content": [{"text": query}]}],
        toolConfig={"tools": [{"systemTool": {"name": "nova_grounding"}}]},
    )
Enter fullscreen mode Exit fullscreen mode

Hosted Phi-4-mini makes no tool calls, so the MAF researcher searches before the model turn. An AgentMiddleware runs one Responses API call with Foundry's web_search tool on gpt-4.1-mini and puts the results into the request message:

class SearchFirst(AgentMiddleware):
    async def process(self, context: AgentContext, call_next) -> None:
        for i in range(len(context.messages) - 1, -1, -1):
            m = context.messages[i]
            if m.role == "user" and m.text:
                results = await asyncio.to_thread(web_search, query_for(m.text))
                context.messages[i] = Message(
                    "user", [f"{m.text}\n\nWeb search results for this request:\n\n{results}"]
                )
                break
        await call_next()
Enter fullscreen mode Exit fullscreen mode

Step 4 — Compare the Judges

The judge's reply drives the loop, so each stack has to get JudgeFeedback out of its model.

Stack How the judge returns JudgeFeedback
ADK output_schema=JudgeFeedback on the agent
Strands structured_output_model=JudgeFeedback on the agent
MAF response_format json_object, one added instruction line naming the keys, then JudgeFeedback.model_validate_json in the orchestrator

The MAF judge carries the extra line because hosted Phi-4-mini accepts JSON mode and rejects a JSON schema:

    Reply with one JSON object with exactly two keys: "status" ("pass" or "fail") and "feedback".
    """,
    default_options={"response_format": {"type": "json_object"}},
Enter fullscreen mode Exit fullscreen mode

Step 5 — Compare the Loops

ADK composes the loop from agents. LoopAgent runs researcher, judge and a small EscalationChecker that escalates on a pass; SequentialAgent runs the content builder after it:

research_loop = LoopAgent(
    name="research_loop",
    sub_agents=[researcher, judge, escalation_checker],
    max_iterations=3,
)
root_agent = SequentialAgent(
    name="course_creation_pipeline",
    sub_agents=[research_loop, content_builder],
)
Enter fullscreen mode Exit fullscreen mode

Strands draws it as a graph. Conditional edges read the judge's latest reply, and the round limit sits on the fail edge:

b.add_edge("researcher", "judge", condition=researched)
b.add_edge("judge", "researcher", condition=failed)
b.add_edge("judge", "content_builder", condition=passed)
b.add_edge("researcher", "content_builder", condition=passed)
Enter fullscreen mode Exit fullscreen mode

MAF builds a workflow of executors that pass typed messages. The verdict and the round number travel as fields of a Verdict dataclass, and the edges test them:

WorkflowBuilder(start_executor=research, max_iterations=2 * MAX_ROUNDS + 2)
    .add_edge(research, judge)
    .add_edge(judge, research, condition=failed)
    .add_edge(judge, build, condition=passed)
    .build()
Enter fullscreen mode Exit fullscreen mode

The ADK orchestrator is itself an ADK server on port 8004, and a topic goes in through its /run endpoint. The Strands and MAF orchestrators are scripts that take the topic on the command line.


Step 6 — Compare How Each Agent Is Served Over A2A

Stack Server Card path
ADK shared/adk_app.py --a2a agents/<name>, which mounts ADK's A2A executor /a2a/agent/.well-known/agent-card.json
Strands A2AServer(agent, serve_at_root=True).to_fastapi_app() /.well-known/agent-card.json
MAF A hand-built AgentCard, A2AExecutor, and a2a-sdk's Starlette routes /.well-known/agent-card.json

ADK 2 would mount A2A under the agent's folder name, so adk_app.py mounts it at /a2a/agent itself, where the codelab's orchestrator expects it. Strands generates the card. MAF takes the card as written, including its skills and protocol version.


🔎 Tip: A Failed Remote Call Can Look Like a Reply

When a remote agent's task fails, Strands' A2AAgent returns the text Agent execution failed as an ordinary reply, and MAF's A2AAgent returns the task's last history entry, which is the caller's own prompt. Read as a judge verdict, either one parses as a fail and starts another research round.

Both orchestrators here check for it. Strands treats Agent execution failed as an error verdict that matches neither edge, so the graph stops and main exits 1. MAF reads the task state and raises:

for raw in reply.raw_representation or []:
    state = getattr(getattr(raw, "status", None), "state", None)
    if state in (TaskState.TASK_STATE_FAILED, TaskState.TASK_STATE_REJECTED, TaskState.TASK_STATE_CANCELED):
        raise RemoteFailure(f"{agent.name} task {TaskState.Name(state)}")
Enter fullscreen mode Exit fullscreen mode

Step 7 — Run the Same Five Topics Through Each Stack

Five topics went through each stack, one run each, one stack at a time on the same workstation: Curling, Photosynthesis, TCP congestion control, The French Revolution and Sourdough baking. Each run is ./run.sh topic "<topic>", timed from the shell. A script parses every saved output for the exit code, the judge verdicts, the course length and any crash or remote-failure message:

python3 docs/evidence/parse.py
Enter fullscreen mode Exit fullscreen mode
stack runs exit0 course pass_r1 rounds_mean wall_med wall_min wall_max errors
gcp      5     5      5       4        1.20     35.7     29.3     78.3      0
aws      5     5      5       5        1.00     17.0     13.2     22.2      0
maf      5     5      5       5        1.00     42.2     36.0     58.0      0
Enter fullscreen mode Exit fullscreen mode

Every run exited 0 and wrote a course. 14 of 15 passed on the first round; GCP's Sourdough baking run failed once and passed on the second round.

Stack Median seconds Range (s) First-round pass Course characters
Strands on Bedrock 17.0 🥇 13.2–22.2 5 of 5 4,410–8,091
ADK on Vertex AI 35.7 🥈 29.3–78.3 4 of 5 4,772–6,367
MAF on Azure 42.2 🥉 36.0–58.0 5 of 5 2,099–4,528

The two GCP runs over 60 s are Curling at 69.5 s and Sourdough baking at 78.3 s, the second-round run.


Step 8 — Where the Time Goes

The Strands and MAF orchestrators print each stage's seconds. Medians over the five runs:

python3 docs/evidence/stages.py
Enter fullscreen mode Exit fullscreen mode
aws researcher       n=5 median=7.3 min=5.8 max=9.4
aws judge            n=5 median=1.1 min=1.1 max=1.5
aws content_builder  n=5 median=5.8 min=4.0 max=10.3
maf researcher       n=5 median=14.8 min=10.2 max=24.1
maf judge            n=5 median=3.8 min=3.5 max=20.9
maf content_builder  n=5 median=20.3 min=11.3 max=22.7
Enter fullscreen mode Exit fullscreen mode

On MAF the content builder takes the longest. On Strands the researcher takes the longest, and the judge answers in about a second. The ADK orchestrator does not report per-stage times.


🔎 Tip: Azure's Content Filter Can Block a Bare Topic

The MAF researcher logs each search. Curling needed two tries:

INFO:researcher:web_search query='Curling' tries=2 status=completed blocked=False sources=11 secs=11.9
INFO:researcher:web_search query='Photosynthesis' tries=1 status=completed blocked=False sources=11 secs=5.4
Enter fullscreen mode Exit fullscreen mode

Azure's default content filter blocks some result sets for a bare topic. The researcher retries with the topic phrased as a research request, and that search went through.


Step 9 — Compare the Amount of Code

Non-blank, non-comment Python lines per stack:

docs/evidence/loc.sh
Enter fullscreen mode Exit fullscreen mode
stack  agents  orchestrator       serving+auth
gcp       63            84                562
aws      100           100                 88
maf      125           146                102
Enter fullscreen mode Exit fullscreen mode

ADK defines the three agents in the fewest lines. Its serving and auth code is the codelab's own adk_app.py and authenticated_httpx.py, which carry the ADK server's command-line options, Cloud Trace and Cloud Logging settings, Google identity-token auth for Cloud Run, and the A2A mount. The MAF agents carry the most code, for the search middleware and the instructions that have to go into the request message for Phi-4-mini.


Compare and Contrast

ADK on Vertex AI Strands on Bedrock MAF on Azure
Model Gemini 3 Flash preview Nova 2 Lite Phi-4-mini-instruct
Web search Built-in google_search tool nova_grounding inside a @tool Foundry web_search before the model turn
Structured judge output_schema structured_output_model JSON mode, validated in the orchestrator
Loop LoopAgent + SequentialAgent + escalation agent Graph with conditional edges Workflow with typed messages
A2A 1.x google-adk 2.15 Pull request #3923 build agent-framework-a2a 1.0.0b261112
Agent card Mounted at /a2a/agent Generated at the root Hand-built at the root
Median of five runs 35.7 s 17.0 s 42.2 s

So, Which One?

🥇 Strands on Bedrock ran every topic fastest and passed each on the first round; its model calls tools and takes a schema, so the agents port with little change. Its A2A 1.x support comes from an unmerged pull request. 🥈 ADK on Vertex AI needs the least agent code, with search and the loop built in, and it was the only stack to send research back in this set. 🥉 MAF on Azure has A2A 1.x in a published package and the clearest loop, with the verdict carried as a typed field; with Phi-4-mini, search and instructions have to be placed in the request, and it wrote the shortest courses.


Teardown

Nothing is deployed by this repository. Stop the local agents with:

make down
Enter fullscreen mode Exit fullscreen mode

The Foundry deployments bill per token while they exist. make destroy in maf-azure-research-loop deletes the resource group and purges the account.


Summary

The goal of this article was to compare one research, judge and course loop built natively on Google Cloud, AWS and Azure. The key to the solution was keeping the prompts, the JudgeFeedback schema, the three-round limit and A2A 1.x the same on every stack, so the framework, the model and the search route are what differ. The five-topic results were:

  • 🟢 15 of 15 runs exited 0 and wrote a course, with no crashes or remote failures in the outputs or the agent logs.
  • 🟢 Strands with Nova 2 Lite had the lowest median, 17.0 s; ADK with Gemini 35.7 s; MAF with Phi-4-mini 42.2 s.
  • 🟢 ADK defines the three agents in 63 lines, against 100 for Strands and 125 for MAF.
  • ⚠️ The judge passed 14 of 15 topics on the first round, so the retry path ran once, on GCP.
  • ⚠️ Azure's content filter blocked the first search for Curling; the rephrased retry went through.
  • ❌ Hosted Phi-4-mini makes no tool calls and rejects a JSON schema, so the MAF researcher and judge need code the other two stacks get from the framework.

Scope: one workstation on 2026-12-01, Python 3.14.7 with all three stacks in one interpreter, Vertex AI location global, Bedrock in us-east-1, Azure AI Foundry in eastus2 with Phi-4-mini-instruct version 1 at GlobalStandard capacity 20 and gpt-4.1-mini at capacity 50. One run per topic per stack, five topics, agents and orchestrators on the workstation calling each cloud's model over the internet. Each stack uses a different model, so the times compare framework and model together, and the model's searches and verdicts vary from run to run.

The strategy for comparing native cloud agent configurations was validated with an incremental step by step approach.


References

Top comments (0)