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 TypeClassDescriptionclassThe LLM-based agent.classAn agent that runs its sub-agents sequentially in a loop.classA shell agent that runs its sub-agents in parallel in isolated manner.classAn 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 BaseAgentBaseAgent.findSubAgent(String name) Recursively search sub agent by name.static BaseAgentBaseAgent.fromConfig(BaseAgentConfig config, String configAbsPath) Creates a new agent instance from a configuration object.static BaseAgentConfigAgentUtils.fromConfig(String configPath) Load agent from a YAML config file path.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 BaseAgentModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList<BaseAgent> ConfigAgentUtils.resolveSubAgents(List<BaseAgentConfig.AgentRefConfig> subAgentConfigs, String configAbsPath) Resolves subagent configurations into actual BaseAgent instances.BaseAgent.subAgents()Methods in com.google.adk.agents with parameters of type BaseAgentModifier and TypeMethodDescriptionvoidstatic InvocationContextInvocationContext.create(BaseSessionService sessionService, BaseArtifactService artifactService, BaseAgent agent, Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Deprecated.static InvocationContextInvocationContext.create(BaseSessionService sessionService, BaseArtifactService artifactService, String invocationId, BaseAgent agent, Session session, com.google.genai.types.Content userContent, RunConfig runConfig) Deprecated.protected voidBaseAgent.parentAgent(BaseAgent parentAgent) Sets the parent agent.Method parameters in com.google.adk.agents with type arguments of type BaseAgentModifier and TypeMethodDescriptionConstructors in com.google.adk.agents with parameters of type BaseAgentModifierConstructorDescriptionInvocationContext(BaseSessionService sessionService, BaseArtifactService artifactService, BaseMemoryService memoryService, PluginManager pluginManager, Optional<LiveRequestQueue> liveRequestQueue, Optional<String> branch, String invocationId, BaseAgent agent, Session session, Optional<com.google.genai.types.Content> userContent, RunConfig runConfig, boolean endInvocation) InvocationContext(BaseSessionService sessionService, BaseArtifactService artifactService, BaseMemoryService memoryService, Optional<LiveRequestQueue> liveRequestQueue, Optional<String> branch, String invocationId, BaseAgent agent, Session session, Optional<com.google.genai.types.Content> userContent, RunConfig runConfig, boolean endInvocation) Deprecated.Use theInvocationContext(com.google.adk.sessions.BaseSessionService, com.google.adk.artifacts.BaseArtifactService, com.google.adk.memory.BaseMemoryService, java.util.Optional<com.google.adk.agents.LiveRequestQueue>, java.util.Optional<java.lang.String>, java.lang.String, com.google.adk.agents.BaseAgent, com.google.adk.sessions.Session, java.util.Optional<com.google.genai.types.Content>, com.google.adk.agents.RunConfig, boolean)constructor with PluginManager directly insteadConstructor 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.plugins
Methods in com.google.adk.plugins with parameters of type BaseAgentModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> BasePlugin.afterAgentCallback(BaseAgent agent, CallbackContext callbackContext) Callback executed after an agent's primary logic has completed.io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> LoggingPlugin.afterAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> BasePlugin.beforeAgentCallback(BaseAgent agent, CallbackContext callbackContext) Callback executed before an agent's primary logic is invoked.io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> LoggingPlugin.beforeAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> PluginManager.runAfterAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> PluginManager.runBeforeAgentCallback(BaseAgent agent, CallbackContext callbackContext) -
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) InMemoryRunner(BaseAgent agent, String appName, List<BasePlugin> plugins) Runner(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService) Deprecated.Use the constructor withBaseMemoryServiceinstead even if with a null if you don't need the memory service.Runner(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService, BaseMemoryService memoryService) Creates a newRunner.Runner(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService, BaseMemoryService memoryService, List<BasePlugin> plugins) Creates a newRunnerwith a list of plugins. -
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.utils
Methods in com.google.adk.utils that return types with arguments of type BaseAgentModifier and TypeMethodDescriptionComponentRegistry.resolveAgentClass(String agentClassName) Resolves the agent class based on the agent class name from the configuration.ComponentRegistry.resolveAgentInstance(String name) Resolves an agent instance from the registry.
InvocationContext(com.google.adk.sessions.BaseSessionService, com.google.adk.artifacts.BaseArtifactService, com.google.adk.memory.BaseMemoryService, java.util.Optional<com.google.adk.agents.LiveRequestQueue>, java.util.Optional<java.lang.String>, java.lang.String, com.google.adk.agents.BaseAgent, com.google.adk.sessions.Session, java.util.Optional<com.google.genai.types.Content>, com.google.adk.agents.RunConfig, boolean)constructor directly instead