Class InMemoryRunner
java.lang.Object
com.google.adk.runner.Runner
com.google.adk.runner.InMemoryRunner
The class for the in-memory GenAi runner, using in-memory artifact and session services.
-
Nested Class Summary
Nested classes/interfaces inherited from class Runner
Runner.Builder -
Constructor Summary
ConstructorsConstructorDescriptionInMemoryRunner(BaseAgent agent) InMemoryRunner(BaseAgent agent, String appName) InMemoryRunner(BaseAgent agent, String appName, List<? extends Plugin> plugins) -
Method Summary
Methods inherited from class Runner
agent, appName, artifactService, builder, close, memoryService, node, pluginManager, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsyncImpl, runLive, runLive, runLive, runLiveImpl, sessionServiceModifier and TypeMethodDescriptionagent()appName()static Runner.Builderbuilder()io.reactivex.rxjava3.core.Completableclose()Closes all plugins, code executors, and releases any resources.@Nullable BaseMemoryServicenode()Returns the workflow node this runner runs, or empty when it runs an agent tree.io.reactivex.rxjava3.core.Flowable<Event> runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage) io.reactivex.rxjava3.core.Flowable<Event> runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) io.reactivex.rxjava3.core.Flowable<Event> io.reactivex.rxjava3.core.Flowable<Event> runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) Runs the agent with an invocation-based mode.io.reactivex.rxjava3.core.Flowable<Event> runAsync(String userId, String sessionId, @Nullable String invocationId, @Nullable com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) Runs the agent, resuming an existing invocation instead of starting a new one.protected io.reactivex.rxjava3.core.Flowable<Event> runAsyncImpl(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) Runs the agent asynchronously using a provided Session object.io.reactivex.rxjava3.core.Flowable<Event> runLive(SessionKey sessionKey, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Retrieves the session and runs the agent in live mode.io.reactivex.rxjava3.core.Flowable<Event> runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Runs the agent in live mode.io.reactivex.rxjava3.core.Flowable<Event> runLive(String userId, String sessionId, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Retrieves the session and runs the agent in live mode.protected io.reactivex.rxjava3.core.Flowable<Event> runLiveImpl(Session session, @Nullable LiveRequestQueue liveRequestQueue, RunConfig runConfig) Runs the agent in live mode, appending generated events to the session.
-
Constructor Details
-
InMemoryRunner
-
InMemoryRunner
-
InMemoryRunner
-