App
Represents an LLM-backed agentic application.
An App is the top-level container for an agentic system powered by LLMs. It bundles an application name together with the rootAgent that serves as the root of the agent tree, enabling coordination and communication across all agents in the hierarchy. It also carries application-wide configuration, such as plugins and resumabilityConfig, that the runner applies to every session it runs.
appName must start with a letter and may contain only letters, digits, underscores, and hyphens, and must not be the reserved value "user", which is reserved for end-user input. Construction throws IllegalArgumentException if appName does not meet these requirements.
Constructors
Types
Properties
Optional context cache configuration that applies to all LLM agents in the app. When null, context caching is disabled.
Optional configuration controlling context-compaction strategies for sessions of this application. When null, no compaction runs.
Optional resumability configuration applied to the application's sessions. When null, resumability is disabled.