Skip to main content
Connect a Google Agent Development Kit (ADK) agent to Civic using streamable HTTP transport. Reference implementations are available in Python (Claude), TypeScript (Gemini), and Go (Gemini).

Architecture

Prerequisites

Get Your Credentials

How to generate a Civic token and configure toolkit URL parameters

Environment Variables

All implementations require:
Plus an LLM API key depending on the language — see each tab below.
Requirements: Python 3.10+, uv (recommended) or pip, an Anthropic API key

Installation

Additional env var

Connecting to Civic

ADK has native Anthropic model support via google.adk.models.anthropic_llm.Claude — no LiteLlm dependency needed. Register Claude with the model registry and reference the model by string:

Running the Agent

Option A: ADK web consoleADK ships with a built-in development UI:
Open http://localhost:8000 and select civic_agent from the dropdown.Option B: Programmatic runner
Use types.Part(text=...) — not types.Part.from_text(...). The from_text class method was removed in recent versions of the Google Gen AI SDK.

Production Configuration

Lock to a specific toolkit using the profile URL parameter:

Reference Implementation

google-adk-reference-implementation-civic

Complete implementations in Python, TypeScript, and Go with deployment guides

Next Steps

Agent Deployment

Production deployment guide: profile locking, URL params, authentication

Guardrails

Constrain what tools your agent can call

Audit Trail

Query what your agent did via Civic Chat

Get Credentials

Token generation and URL parameter reference