{"slug": "one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft", "title": "One Research Loop on Three Native Agent Stacks: Google ADK, Strands and Microsoft Agent Framework Compared", "summary": "A developer published a repository that ports the same three-agent research loop — a web researcher, a judge that passes or fails the research for up to three rounds, and a content builder — onto Google ADK 2.15 with Gemini 3 Flash on Vertex AI, Strands Agents with Amazon Nova 2 Lite on Bedrock, and Microsoft Agent Framework 1.26 with Phi-4-mini on Azure AI Foundry. Each agent runs as its own A2A 1.x service on ports 8001-8003, sharing identical prompts, a JudgeFeedback schema and a three-round limit, and all three stacks run the same five topics end to end. The writeup documents dependency conflicts across the shared interpreter, including Strands' watchdog<7 pin breaking ADK's watchdog>=7 requirement and google-adk's OpenTelemetry caps, resolved by installing Strands with --no-deps and avoiding -U upgrades.", "body_md": "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.\n\nRepository: [https://github.com/xbill9/multicloud-agent-loop](https://github.com/xbill9/multicloud-agent-loop)\n\nThe loop comes from Google's ADK 2.0 and A2A codelab, updated in [multi-agent-loop](https://github.com/xbill9/multi-agent-loop). It was ported to AWS in [strands-bedrock-research-loop](https://github.com/xbill9/strands-bedrock-research-loop) and to Azure in [maf-azure-research-loop](https://github.com/xbill9/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.\n\nEvery 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.\n\n| Folder | Framework | Model | Web search | \n|---|---|---|---|\n| `gcp/` | Google ADK 2.15 | `gemini-3-flash-preview` on Vertex AI | ADK `google_search` | \n| `aws/` | Strands Agents (A2A 1.x build) | `us.amazon.nova-2-lite-v1:0` on Bedrock | `nova_grounding` | \n| `maf/` | Microsoft Agent Framework 1.26 | `Phi-4-mini-instruct` on Azure AI Foundry | Foundry `web_search` on`gpt-4.1-mini` | \n\n`python3` on your machine. No Docker and no virtualenv are needed.`gcloud auth application-default login`, `aws login` or `az login`.` 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.\nThe versions used throughout:\n\n```\nPython 3.14.7\na2a-sdk                                    1.4.0\nagent-framework-a2a                        1.0.0b261112\nagent-framework-core                       1.26.0\nagent-framework-openai                     1.18.2\nazure-identity                             1.27.0\nboto3                                      1.44.16\ngoogle-adk                                 2.15.1\ngoogle-genai                               2.34.0\nopenai                                     3.60.0\nstrands-agents                             1.66.0+pr3923\n```\n\nEach stack has its own `requirements.txt`, and `make install` puts it into the active `python3`:\n\n```\nmake install STACK=gcp\nmake install STACK=aws\nmake install STACK=maf\n```\n\nAll 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.\n\nThe 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.\n\ngoogle-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.\n\n`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:\n\n```\nmake smoke\ngcp researcher UP   http://localhost:8001/a2a/agent/.well-known/agent-card.json\ngcp judge UP   http://localhost:8002/a2a/agent/.well-known/agent-card.json\ngcp content_builder UP   http://localhost:8003/a2a/agent/.well-known/agent-card.json\ngcp orchestrator UP   http://localhost:8004\naws researcher UP   http://localhost:8001/.well-known/agent-card.json\naws judge UP   http://localhost:8002/.well-known/agent-card.json\naws content_builder UP   http://localhost:8003/.well-known/agent-card.json\nmaf researcher UP   http://localhost:8001/.well-known/agent-card.json\nmaf judge UP   http://localhost:8002/.well-known/agent-card.json\nmaf content_builder UP   http://localhost:8003/.well-known/agent-card.json\nsmoke OK\n```\n\nThe card paths already show one difference. ADK serves A2A under `/a2a/agent`; Strands and MAF serve it at the root.\n\nEach researcher has the same instruction and a different route to the web.\n\nADK hands Gemini the built-in search tool:\n\n```\nresearcher = Agent(\n    name=\"researcher\",\n    model=MODEL,\n    description=\"Gathers information on a topic using Google Search.\",\n    instruction=\"\"\"...\"\"\",\n    tools=[google_search],\n)\n```\n\nStrands 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:\n\n``` php\n@tool\ndef web_search(query: str) -> str:\n    resp = _bedrock.converse(\n        modelId=MODEL_ID,\n        messages=[{\"role\": \"user\", \"content\": [{\"text\": query}]}],\n        toolConfig={\"tools\": [{\"systemTool\": {\"name\": \"nova_grounding\"}}]},\n    )\n```\n\nHosted 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:\n\n``` python\nclass SearchFirst(AgentMiddleware):\n    async def process(self, context: AgentContext, call_next) -> None:\n        for i in range(len(context.messages) - 1, -1, -1):\n            m = context.messages[i]\n            if m.role == \"user\" and m.text:\n                results = await asyncio.to_thread(web_search, query_for(m.text))\n                context.messages[i] = Message(\n                    \"user\", [f\"{m.text}\\n\\nWeb search results for this request:\\n\\n{results}\"]\n                )\n                break\n        await call_next()\n```\n\nThe judge's reply drives the loop, so each stack has to get `JudgeFeedback` out of its model.\n\n| Stack | How the judge returns `JudgeFeedback` | \n|---|---|\n| ADK | `output_schema=JudgeFeedback` on the agent | \n| Strands | `structured_output_model=JudgeFeedback` on the agent | \n| MAF | `response_format`` json_object` , one added instruction line naming the keys, then`JudgeFeedback.model_validate_json` in the orchestrator | \n\nThe MAF judge carries the extra line because hosted Phi-4-mini accepts JSON mode and rejects a JSON schema:\n\n```\n    Reply with one JSON object with exactly two keys: \"status\" (\"pass\" or \"fail\") and \"feedback\".\n    \"\"\",\n    default_options={\"response_format\": {\"type\": \"json_object\"}},\n```\n\nADK 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:\n\n```\nresearch_loop = LoopAgent(\n    name=\"research_loop\",\n    sub_agents=[researcher, judge, escalation_checker],\n    max_iterations=3,\n)\nroot_agent = SequentialAgent(\n    name=\"course_creation_pipeline\",\n    sub_agents=[research_loop, content_builder],\n)\n```\n\nStrands draws it as a graph. Conditional edges read the judge's latest reply, and the round limit sits on the fail edge:\n\n```\nb.add_edge(\"researcher\", \"judge\", condition=researched)\nb.add_edge(\"judge\", \"researcher\", condition=failed)\nb.add_edge(\"judge\", \"content_builder\", condition=passed)\nb.add_edge(\"researcher\", \"content_builder\", condition=passed)\n```\n\nMAF 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:\n\n```\nWorkflowBuilder(start_executor=research, max_iterations=2 * MAX_ROUNDS + 2)\n    .add_edge(research, judge)\n    .add_edge(judge, research, condition=failed)\n    .add_edge(judge, build, condition=passed)\n    .build()\n```\n\nThe 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.\n\n| Stack | Server | Card path | \n|---|---|---|\n| ADK | `shared/adk_app.py --a2a agents/<name>` , which mounts ADK's A2A executor | `/a2a/agent/.well-known/agent-card.json` | \n| Strands | `A2AServer(agent, serve_at_root=True).to_fastapi_app()` | `/.well-known/agent-card.json` | \n| MAF | A hand-built `AgentCard` ,`A2AExecutor` , and a2a-sdk's Starlette routes | `/.well-known/agent-card.json` | \n\nADK 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.\n\nWhen 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.\n\nBoth 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:\n\n```\nfor raw in reply.raw_representation or []:\n    state = getattr(getattr(raw, \"status\", None), \"state\", None)\n    if state in (TaskState.TASK_STATE_FAILED, TaskState.TASK_STATE_REJECTED, TaskState.TASK_STATE_CANCELED):\n        raise RemoteFailure(f\"{agent.name} task {TaskState.Name(state)}\")\n```\n\nFive 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:\n\n```\npython3 docs/evidence/parse.py\nstack runs exit0 course pass_r1 rounds_mean wall_med wall_min wall_max errors\ngcp      5     5      5       4        1.20     35.7     29.3     78.3      0\naws      5     5      5       5        1.00     17.0     13.2     22.2      0\nmaf      5     5      5       5        1.00     42.2     36.0     58.0      0\n```\n\nEvery 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.\n\n| Stack | Median seconds | Range (s) | First-round pass | Course characters | \n|---|---|---|---|---|\n| Strands on Bedrock | 17.0 🥇 | 13.2–22.2 | 5 of 5 | 4,410–8,091 | \n| ADK on Vertex AI | 35.7 🥈 | 29.3–78.3 | 4 of 5 | 4,772–6,367 | \n| MAF on Azure | 42.2 🥉 | 36.0–58.0 | 5 of 5 | 2,099–4,528 | \n\nThe two GCP runs over 60 s are Curling at 69.5 s and Sourdough baking at 78.3 s, the second-round run.\n\nThe Strands and MAF orchestrators print each stage's seconds. Medians over the five runs:\n\n```\npython3 docs/evidence/stages.py\naws researcher       n=5 median=7.3 min=5.8 max=9.4\naws judge            n=5 median=1.1 min=1.1 max=1.5\naws content_builder  n=5 median=5.8 min=4.0 max=10.3\nmaf researcher       n=5 median=14.8 min=10.2 max=24.1\nmaf judge            n=5 median=3.8 min=3.5 max=20.9\nmaf content_builder  n=5 median=20.3 min=11.3 max=22.7\n```\n\nOn 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.\n\nThe MAF researcher logs each search. Curling needed two tries:\n\n```\nINFO:researcher:web_search query='Curling' tries=2 status=completed blocked=False sources=11 secs=11.9\nINFO:researcher:web_search query='Photosynthesis' tries=1 status=completed blocked=False sources=11 secs=5.4\n```\n\nAzure'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.\n\nNon-blank, non-comment Python lines per stack:\n\n```\ndocs/evidence/loc.sh\nstack  agents  orchestrator       serving+auth\ngcp       63            84                562\naws      100           100                 88\nmaf      125           146                102\n```\n\nADK 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.\n\n|  | ADK on Vertex AI | Strands on Bedrock | MAF on Azure | \n|---|---|---|---|\n| Model | Gemini 3 Flash preview | Nova 2 Lite | Phi-4-mini-instruct | \n| Web search | Built-in `google_search` tool | `nova_grounding` inside a`@tool` | Foundry `web_search` before the model turn | \n| Structured judge | `output_schema` | `structured_output_model` | JSON mode, validated in the orchestrator | \n| Loop | `LoopAgent` +`SequentialAgent` + escalation agent | Graph with conditional edges | Workflow with typed messages | \n| A2A 1.x | google-adk 2.15 | Pull request #3923 build | `agent-framework-a2a` 1.0.0b261112 | \n| Agent card | Mounted at `/a2a/agent` | Generated at the root | Hand-built at the root | \n| Median of five runs | 35.7 s | 17.0 s | 42.2 s | \n\n🥇 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.\n\nNothing is deployed by this repository. Stop the local agents with:\n\n```\nmake down\n```\n\nThe Foundry deployments bill per token while they exist. `make destroy` in maf-azure-research-loop deletes the resource group and purges the account.\n\nThe 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:\n\nScope: 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.\n\nThe strategy for comparing native cloud agent configurations was validated with an incremental step by step approach.", "url": "https://wpnews.pro/news/one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft", "canonical_source": "https://dev.to/aws-builders/one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft-agent-framework-1479", "published_at": "2026-12-05 18:32:17+00:00", "updated_at": "2026-12-05 18:43:41.028566+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "large-language-models", "ai-tools", "developer-tools"], "entities": ["Google ADK", "Strands Agents", "Microsoft Agent Framework", "Vertex AI", "Amazon Bedrock", "Azure AI Foundry", "Gemini 3 Flash", "Amazon Nova 2 Lite"], "also_reported_by": [], "takeaway": "Running the same three-agent A2A loop on ADK, Strands and Microsoft Agent Framework in one Python interpreter requires installing Strands with --no-deps to keep watchdog on 7.x for ADK and skipping -U so google-adk's OpenTelemetry 1.45.2 caps hold.", "recommendation": {"advice": "When co-installing multiple agent frameworks in one interpreter, pin shared dependencies like watchdog and OpenTelemetry and install conflicting packages with --no-deps instead of upgrading everything.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft", "markdown": "https://wpnews.pro/news/one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft.md", "text": "https://wpnews.pro/news/one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft.txt", "jsonld": "https://wpnews.pro/news/one-research-loop-on-three-native-agent-stacks-google-adk-strands-and-microsoft.jsonld"}}