Uses of Class
com.google.adk.agents.BaseAgent
Packages that use BaseAgent
Package
Description
-
Uses of BaseAgent in com.google.adk.agents
Subclasses of BaseAgent in com.google.adk.agentsModifier and TypeClassDescriptionclass
The LLM-based agent.class
An agent that runs its sub-agents sequentially in a loop.class
A shell agent that runs its sub-agents in parallel in isolated manner.class
An agent that runs its sub-agents sequentially.Methods in com.google.adk.agents that return BaseAgentModifier and TypeMethodDescriptionInvocationContext.agent()
Finds an agent (this or descendant) by name.@Nullable BaseAgent
BaseAgent.findSubAgent
(String name) Recursively search sub agent by name.BaseAgent.parentAgent()
Retrieves the parent agent in the agent tree.BaseAgent.rootAgent()
Returns the root agent for this agent by traversing up the parent chain.Methods in com.google.adk.agents that return types with arguments of type BaseAgentMethods in com.google.adk.agents with parameters of type BaseAgentModifier and TypeMethodDescriptionvoid
static InvocationContext
InvocationContext.create
(BaseSessionService sessionService, BaseArtifactService artifactService, BaseAgent agent, Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) static InvocationContext
InvocationContext.create
(BaseSessionService sessionService, BaseArtifactService artifactService, String invocationId, BaseAgent agent, Session session, com.google.genai.types.Content userContent, RunConfig runConfig) protected void
BaseAgent.parentAgent
(BaseAgent parentAgent) Sets the parent agent.Method parameters in com.google.adk.agents with type arguments of type BaseAgentModifier and TypeMethodDescriptionConstructor parameters in com.google.adk.agents with type arguments of type BaseAgentModifierConstructorDescriptionBaseAgent
(String name, String description, List<? extends BaseAgent> subAgents, List<Callbacks.BeforeAgentCallback> beforeAgentCallback, List<Callbacks.AfterAgentCallback> afterAgentCallback) Creates a new BaseAgent. -
Uses of BaseAgent in com.google.adk.runner
Methods in com.google.adk.runner that return BaseAgentConstructors in com.google.adk.runner with parameters of type BaseAgentModifierConstructorDescriptionInMemoryRunner
(BaseAgent agent) InMemoryRunner
(BaseAgent agent, String appName) Runner
(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService) Creates a newRunner
. -
Uses of BaseAgent in com.google.adk.tools
Methods in com.google.adk.tools with parameters of type BaseAgentConstructors in com.google.adk.tools with parameters of type BaseAgent -
Uses of BaseAgent in com.google.adk.web
Methods in com.google.adk.web that return types with arguments of type BaseAgentModifier and TypeMethodDescriptionAgentCompilerLoader.loadAgents()
Discovers, compiles, and loads agents from the configured source directory.AdkWebServer.loadedAgentRegistry
(AgentCompilerLoader loader, AgentLoadingProperties props) Methods in com.google.adk.web with parameters of type BaseAgentModifier and TypeMethodDescriptionAgentGraphGenerator.getAgentGraphDotSource
(BaseAgent rootAgent, List<List<String>> highlightPairs) Generates the DOT source string for the agent graph.Constructor parameters in com.google.adk.web with type arguments of type BaseAgentModifierConstructorDescriptionAgentController
(BaseSessionService sessionService, BaseArtifactService artifactService, Map<String, BaseAgent> agentRegistry, AdkWebServer.ApiServerSpanExporter apiServerSpanExporter, AdkWebServer.RunnerService runnerService) Constructs the AgentController.RunnerService
(Map<String, BaseAgent> agentRegistry, BaseArtifactService artifactService, BaseSessionService sessionService)