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 SessionModifier and TypeMethodDescriptionInvocationContext.session()Returns the session associated with this invocation.Methods 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, for removal: This API element is subject to removal in a future version.static InvocationContextInvocationContext.create(BaseSessionService sessionService, BaseArtifactService artifactService, String invocationId, BaseAgent agent, Session session, com.google.genai.types.Content userContent, RunConfig runConfig) Deprecated, for removal: This API element is subject to removal in a future version.UseInvocationContext.builder()instead.Sets the session associated with this invocation.Constructors in com.google.adk.agents with parameters of type SessionModifierConstructorDescriptionInvocationContext(BaseSessionService sessionService, BaseArtifactService artifactService, BaseMemoryService memoryService, Plugin pluginManager, Optional<LiveRequestQueue> liveRequestQueue, Optional<String> branch, String invocationId, BaseAgent agent, Session session, Optional<com.google.genai.types.Content> userContent, RunConfig runConfig, boolean endInvocation) Deprecated, for removal: This API element is subject to removal in a future version.UseInvocationContext.builder()instead.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, for removal: This API element is subject to removal in a future version.UseInvocationContext.builder()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.CompletableFirestoreMemoryService.addSessionToMemory(Session session) Adds a session to memory.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> Deprecated, for removal: This API element is subject to removal in a future version.Use runAsync with sessionId.io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, Map<String, Object> stateDelta) Deprecated, for removal: This API element is subject to removal in a future version.Use runAsync with sessionId.protected io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsyncImpl(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, Map<String, Object> stateDelta) Runs the agent asynchronously 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) Deprecated.default io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(String appName, String userId, Map<String, Object> state, String sessionId) Creates a new session with the specified parameters.io.reactivex.rxjava3.core.Single<Session> FirestoreSessionService.createSession(String appName, String userId, ConcurrentMap<String, Object> state, String sessionId) Creates a new session in Firestore.io.reactivex.rxjava3.core.Single<Session> FirestoreSessionService.createSession(String appName, String userId, Map<String, Object> state, String sessionId) Creates a new session in Firestore.io.reactivex.rxjava3.core.Single<Session> InMemorySessionService.createSession(String appName, String userId, @Nullable Map<String, Object> state, @Nullable String sessionId) 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.Single<Session> VertexAiSessionService.createSession(String appName, String userId, Map<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> FirestoreSessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> configOpt) Retrieves a session by appName, userId, and sessionId from Firestore.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> FirestoreSessionService.appendEvent(Session session, Event event) Appends an event to a session, updating the session state and persisting to Firestore.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 -
Uses of Session in com.google.adk.summarizer
Methods in com.google.adk.summarizer with parameters of type SessionModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableEventCompactor.compact(Session session, BaseSessionService sessionService) Compacts events in the given session.io.reactivex.rxjava3.core.CompletableSlidingWindowEventCompactor.compact(Session session, BaseSessionService sessionService) Runs compaction for SlidingWindowCompactor.io.reactivex.rxjava3.core.CompletableTailRetentionEventCompactor.compact(Session session, BaseSessionService sessionService) -
Uses of Session in com.google.adk.web.controller
Methods in com.google.adk.web.controller that return SessionModifier and TypeMethodDescriptionSessionController.createSession(String appName, String userId, SessionRequest body) Creates a new session where the ID is generated by the service.SessionController.createSessionWithId(String appName, String userId, String sessionId, SessionRequest body) Creates a new session with a specific ID provided by the client.SessionController.getSession(String appName, String userId, String sessionId) Retrieves a specific session by its ID.Methods in com.google.adk.web.controller that return types with arguments of type SessionModifier and TypeMethodDescriptionSessionController.listSessions(String appName, String userId) Lists all non-evaluation sessions for a given app and user.
InvocationContext.builder()instead.