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) static InvocationContextInvocationContext.create(BaseSessionService sessionService, BaseArtifactService artifactService, String invocationId, BaseAgent agent, Session session, com.google.genai.types.Content userContent, RunConfig runConfig) -
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 -
Uses of Session in com.google.adk.web
Methods in com.google.adk.web that return SessionModifier and TypeMethodDescriptionCreates a new session where the ID is generated by the service.AdkWebServer.AgentController.createSessionWithId(String appName, String userId, String sessionId, Map<String, Object> state) Creates a new session with a specific ID provided by the client.AdkWebServer.AgentController.getSession(String appName, String userId, String sessionId) Retrieves a specific session by its ID.Methods in com.google.adk.web that return types with arguments of type SessionModifier and TypeMethodDescriptionAdkWebServer.AgentController.listSessions(String appName, String userId) Lists all non-evaluation sessions for a given app and user.