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, pluginManager, 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 BaseMemoryServiceio.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.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) 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
-