Uses of Class
com.google.genkit.ai.agent.Session
Packages that use Session
Package
Description
This package provides types for the Genkit agents feature, including enums and models for agent
state snapshots, agent execution lifecycle, and agent-related operations.
-
Uses of Session in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return SessionModifier and TypeMethodDescriptionstatic Session<?> AgentSessionContext.current()Returns theSessioncurrently bound to this thread, ornullif none.SessionRunner.session()Returns the underlying session.Methods in com.google.genkit.ai.agent with parameters of type SessionModifier and TypeMethodDescriptionstatic <T> TExecutesbodywithsessionbound to the current thread context and returns the result.static voidExecutesbodywithsessionbound to the current thread context.Constructors in com.google.genkit.ai.agent with parameters of type SessionModifierConstructorDescriptionSessionRunner(Session<S> session, SessionStore<S> store, SessionStoreOptions opts) Constructs a new SessionRunner.SessionRunner(Session<S> session, SessionStore<S> store, SessionStoreOptions opts, String seedSnapshotId) Constructs a new SessionRunner seeded with the id of the snapshot the session was resumed from. -
Uses of Session in com.google.genkit.ai.agent.internal
Methods in com.google.genkit.ai.agent.internal that return SessionModifier and TypeMethodDescriptionSessionResolver.Resolution.session()Returns the resolved session, ornullif this is a failure resolution.Methods in com.google.genkit.ai.agent.internal with parameters of type SessionModifier and TypeMethodDescriptionvoidAttaches this emitter to a Session.static <S> SessionResolver.Resolution<S> Creates a successful resolution wrapping the given session.static <S> SessionResolver.Resolution<S> Creates a successful resolution wrapping the given session and the id of the snapshot it was resolved (resumed) from.