Uses of Class
com.google.adk.sessions.Session
Packages that use Session
Package
Description
-
Uses of Session in com.google.adk.agents
Methods in com.google.adk.agents that return SessionMethods in com.google.adk.agents with parameters of type SessionModifier and TypeMethodDescriptionstatic 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.Constructors in com.google.adk.agents with parameters of type SessionModifierConstructorDescriptionInvocationContext(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 instead -
Uses of Session in com.google.adk.memory
Methods in com.google.adk.memory with parameters of type SessionModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableBaseMemoryService.addSessionToMemory(Session session) Adds a session to the memory service.io.reactivex.rxjava3.core.CompletableInMemoryMemoryService.addSessionToMemory(Session session) -
Uses of Session in com.google.adk.runner
Methods in com.google.adk.runner with parameters of type SessionModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<Event> Runs the agent in the standard mode using a provided Session object.io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Runs the agent in live mode, appending generated events to the session. -
Uses of Session in com.google.adk.sessions
Methods in com.google.adk.sessions that return SessionMethods in com.google.adk.sessions that return types with arguments of type SessionModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(String appName, String userId) Creates a new session with the specified application name and user ID, using a default state (null) and allowing the service to generate a unique session ID.io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(String appName, String userId, ConcurrentMap<String, Object> state, String sessionId) Creates a new session with the specified parameters.io.reactivex.rxjava3.core.Single<Session> InMemorySessionService.createSession(String appName, String userId, @Nullable ConcurrentMap<String, Object> state, @Nullable String sessionId) io.reactivex.rxjava3.core.Single<Session> VertexAiSessionService.createSession(String appName, String userId, ConcurrentMap<String, Object> state, String sessionId) io.reactivex.rxjava3.core.Maybe<Session> BaseSessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> config) Retrieves a specific session, optionally filtering the events included.io.reactivex.rxjava3.core.Maybe<Session> InMemorySessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> configOpt) io.reactivex.rxjava3.core.Maybe<Session> VertexAiSessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> config) abstract com.google.common.collect.ImmutableList<Session> ListSessionsResponse.sessions()Methods in com.google.adk.sessions with parameters of type SessionModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Event> BaseSessionService.appendEvent(Session session, Event event) Appends an event to an in-memory session object and updates the session's state based on the event's state delta, if applicable.io.reactivex.rxjava3.core.Single<Event> InMemorySessionService.appendEvent(Session session, Event event) io.reactivex.rxjava3.core.Single<Event> VertexAiSessionService.appendEvent(Session session, Event event) default io.reactivex.rxjava3.core.CompletableBaseSessionService.closeSession(Session session) Closes a session.Method parameters in com.google.adk.sessions with type arguments of type Session
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