# Package com.google.adk.agents

package com.google.adk.agents

- Related Packages
  Package
  Description
  com.google.adk
- Class
  Description
  ActiveStreamingTool
  Manages streaming tool related resources during invocation.
  BaseAgent
  Base class for all agents.
  BaseAgent.Builder<B extends BaseAgent.Builder<B>>
  Base Builder for all agents.
  BaseAgentConfig
  Base configuration for all agents with subagent support.
  BaseAgentConfig.AgentRefConfig
  Configuration for referencing other agents (subagents).
  BaseAgentConfig.CallbackRef
  Reference to a callback stored in the ComponentRegistry.
  CallbackContext
  The context of various callbacks for an agent invocation.
  Callbacks
  Functional interfaces for agent lifecycle callbacks.
  Callbacks.AfterAgentCallback
  Async callback interface for actions to be performed after an agent has finished running.
  Callbacks.AfterAgentCallbackSync
  Helper interface to allow for sync afterAgentCallback.
  Callbacks.AfterModelCallback
  Callbacks.AfterModelCallbackSync
  Helper interface to allow for sync afterModelCallback.
  Callbacks.AfterToolCallback
  Async callback interface for actions to be performed after a tool has been invoked.
  Callbacks.AfterToolCallbackSync
  Helper interface to allow for sync afterToolCallback.
  Callbacks.BeforeAgentCallback
  Async callback interface for actions to be performed before an agent starts running.
  Callbacks.BeforeAgentCallbackSync
  Helper interface to allow for sync beforeAgentCallback.
  Callbacks.BeforeModelCallback
  Callbacks.BeforeModelCallbackSync
  Helper interface to allow for sync beforeModelCallback.
  Callbacks.BeforeToolCallback
  Async callback interface for actions to be performed before a tool is invoked.
  Callbacks.BeforeToolCallbackSync
  Helper interface to allow for sync beforeToolCallback.
  Callbacks.OnModelErrorCallback
  Async callback interface for handling errors that occur during an LLM model call.
  Callbacks.OnModelErrorCallbackSync
  Helper interface to allow for sync onModelErrorCallback.
  Callbacks.OnToolErrorCallback
  Async callback interface for handling errors that occur during a tool invocation.
  Callbacks.OnToolErrorCallbackSync
  Helper interface to allow for sync onToolErrorCallback.
  CallbackUtil
  Utility methods for normalizing agent callbacks.
  ConfigAgentUtils
  Utility class for loading agent configurations from YAML files.
  ConfigAgentUtils.ConfigurationException
  Exception thrown when configuration is invalid.
  ContextCacheConfig
  Configuration for context caching across all agents in an app.
  Instruction
  Represents an instruction that can be provided to an agent to guide its behavior.
  Instruction.Provider
  Returns an instruction dynamically constructed from the given context.
  Instruction.Static
  Plain instruction directly provided to the agent.
  InvocationContext
  The context for an agent invocation.
  InvocationContext.Builder
  Builder for `InvocationContext`.
  LiveRequest
  Represents a request to be sent to a live connection to the LLM model.
  LiveRequest.Builder
  Builder for constructing `LiveRequest` instances.
  LiveRequestQueue
  A queue of live requests to be sent to the model.
  LlmAgent
  The LLM-based agent.
  LlmAgent.Builder
  Builder for `LlmAgent`.
  LlmAgent.IncludeContents
  Enum to define if contents of previous events should be included in requests to the underlying LLM.
  LlmAgentConfig
  Configuration for LlmAgent.
  LoopAgent
  An agent that runs its sub-agents sequentially in a loop.
  LoopAgent.Builder
  Builder for `LoopAgent`.
  LoopAgentConfig
  Configuration for LoopAgent.
  ParallelAgent
  A shell agent that runs its sub-agents in parallel in isolated manner.
  ParallelAgent.Builder
  Builder for `ParallelAgent`.
  ParallelAgentConfig
  Configuration for ParallelAgent.
  Planner
  Strategy interface for planning which sub-agent(s) to execute next.
  PlannerAction
  Represents the next action a `Planner` wants the `PlannerAgent` to take.
  PlannerAction.Done
  Plan is complete, no result to emit.
  PlannerAction.DoneWithResult
  Plan is complete with a final text result.
  PlannerAction.NoOp
  Skip this iteration (no-op).
  PlannerAction.RunAgents
  Run the specified sub-agent(s).
  PlannerAgent
  An agent that delegates execution planning to a `Planner` strategy.
  PlannerAgent.Builder
  Builder for `PlannerAgent`.
  PlanningContext
  Context provided to a `Planner` during the planning loop.
  ReadonlyContext
  Provides read-only access to the context of an agent run.
  RunConfig
  Configuration to modify an agent's LLM's underlying behavior.
  RunConfig.Builder
  Builder for `RunConfig`.
  RunConfig.StreamingMode
  Streaming mode for the runner.
  RunConfig.ToolExecutionMode
  Tool execution mode for the runner, when they are multiple tools requested (by the models or callbacks).
  SequentialAgent
  An agent that runs its sub-agents sequentially.
  SequentialAgent.Builder
  Builder for `SequentialAgent`.
  SequentialAgentConfig
  Configuration for SequentialAgent.