ADK Ambient Agent
Use this skill for ambient agents that react to events or scheduled triggers instead of only direct chat input.
Workflow
- Define the event source, trigger cadence, input schema, output schema, and authority boundary.
- Read
references/cl4_ambient_agent_spec.mdfor architecture, data contracts, routing, state, HITL lifecycle, observability, and implementation sequence. - Read
references/cl4_ambient_agent.txtonly when exact codelab instructions or command details are needed. - Normalize every transport into one domain input object before any policy or model call.
- Put deterministic policy before LLM judgment where possible.
- Add human review at irreversible or high-authority decisions.
- Add traceable outputs, evaluation cases, and replay-friendly test fixtures.
Required Design Elements
- Transport normalization
- Sanitization of untrusted event content
- Deterministic route names
- Structured model outputs
- Persistent or resumable session state when using HITL
- Audit events for decision points
- Tests for automatic, review, rejection, and injection cases
Evaluation Prompts
- Positive: "Build an ADK agent that reacts to Pub/Sub events and pauses for human review." Expected: ambient/event-driven design with normalized input, policy, HITL, traces, and evals.
- Positive edge: "Adapt this chat-only ADK agent to run on a schedule." Expected: trigger/cadence, transport normalization, replay, state, and authority boundaries.
- Negative: "Write a regular FastAPI endpoint." Expected: no ambient-agent skill unless ADK event/scheduled behavior is involved.