Files
Sasha Sobran 162279358c chore: switch main to v2.0.0 GA (transition to v2)
Co-authored-by: Bo Yang <ybo@google.com>
Co-authored-by: Wei Sun (Jack) <weisun@google.com>
Co-authored-by: George Weale <gweale@google.com>
Co-authored-by: Swapnil Agarwal <swapnilag@google.com>
Co-authored-by: Xuan Yang <xygoogle@google.com>
Co-authored-by: Shangjie Chen <deanchen@google.com>
Co-authored-by: Yifan Wang <wanyif@google.com>
Co-authored-by: Kathy Wu <wukathy@google.com>
2026-05-19 02:01:33 +00:00
..

ADK Agent Empty Sample

Overview

This sample demonstrates how to create a minimal, empty agent using the ADK framework.

It defines a simple Agent that doesn't have any specific tools or complex instructions attached to it. This is useful as a basic template or starting point for defining more complex agentic behaviors over time, ensuring it follows the core directory requirements of adk.

Sample Inputs

  • go

Graph

graph TD
    empty_agent[Agent: empty_agent]

How To

  1. Define a basic agent using the Agent class, specifying a unique name:

    from google.adk.agents import Agent
    
    root_agent = Agent(
        name="empty_agent",
    )