← All work

Multi-Agent Platform on Google ADK

A 10-module agent platform: orchestration patterns, MCP tool servers, cloud deployment, tracing, and a production chat app with streaming.

PythonGoogle ADKGeminiAmazon BedrockMCPFastAPIReactPostgreSQLVertex AI

The problem

The team needed a reliable way to build agent systems: which orchestration pattern fits which task, how agents reach real tools and data, how to deploy and observe them, and how to put one behind a real login in a real UI.

Production chat request path

  1. 1Sign in

    JWT or Microsoft SSO; refresh tokens; rate limiting

  2. 2Send

    React chat posts to /api/chat/stream

  3. 3Invoke

    FastAPI calls the Amazon Bedrock agent with streaming on

  4. 4Stream

    Chunks flow back to the browser over Server-Sent Events

  5. 5Persist

    Sessions and messages saved to PostgreSQL

Key decisions

Parallel fan-out, then synthesize

A ParallelAgent runs CPU, memory and disk sub-agents at once and writes to shared session state. A SequentialAgent then hands that state to a synthesizer, replacing three sequential tool calls.

Pick the pattern by task shape

Sequential pipelines for staged work (validate → score → recommend leads), loop agents for generate → review → refine, and hierarchical delegation when a coordinator routes to specialists.

Tools behind MCP

Database tools run as a separate MCP server process that ADK agents consume over stdio, with every tool call, response and error logged.

Observability from day one

OpenTelemetry spans for agent runs, sessions and tool calls, exported to Google Cloud Trace, to see where time goes in a multi-step agent.

Built on Google's samples, extended for production

The travel-planner and A2A modules start from Google's Apache-2.0 ADK samples. The production chat app (auth, Bedrock streaming, persistence) is built on top of those patterns.

Outcome

  • ✓ Agents deployed to Vertex AI Agent Engine and Cloud Run.
  • ✓ Production chat app with Bedrock streaming, persistent history and SSO.
  • ✓ Reusable reference patterns for the team's later agent work.

Built at HiBiz Solutions. Source code is proprietary; this write-up covers architecture and design decisions only.