Class App

java.lang.Object
com.google.adk.apps.App

public class App extends Object
Represents an LLM-backed agentic application.

An App is the top-level container for an agentic system powered by LLMs. It manages a root agent (rootAgent), which serves as the root of an agent tree, enabling coordination and communication across all agents in the hierarchy. The plugins are application-wide components that provide shared capabilities and services to the entire system.

  • Method Details

    • name

      public String name()
    • rootAgent

      public BaseAgent rootAgent()
    • rootNode

      @Experimental public Optional<Node> rootNode()
      Returns the workflow node the app runs, or empty when it runs an agent tree. When it runs a node, rootAgent() returns a NodeViewAgent that stands in for it.
    • plugins

      public List<? extends Plugin> plugins()
    • eventsCompactionConfig

      public @Nullable EventsCompactionConfig eventsCompactionConfig()
    • contextCacheConfig

      public @Nullable ContextCacheConfig contextCacheConfig()
    • resumabilityConfig

      @Experimental public @Nullable ResumabilityConfig resumabilityConfig()
    • toBuilder

      public App.Builder toBuilder()
      Returns a builder holding this app's settings. For an app that runs a node, the builder holds rootNode() rather than the agent that stands in for it. To switch between a root agent and a root node, also clear the current one with null.
    • builder

      public static App.Builder builder()