Uses of Class
com.google.genkit.ai.agent.SessionState
Packages that use SessionState
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 SessionState in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return SessionStateModifier and TypeMethodDescriptionSessionState.Builder.build()AgentInit.getState()Returns the initial session state.AgentOutput.getState()Returns the session state.Session.getState()Returns a deep copy of the current session state.SessionRunner.getState()Returns a deep copy of the current session state.SessionSnapshot.getState()Returns the session state at this snapshot.SessionRunner.lastGoodState()Returns the session state as of the last successful turn, ornullif no successful turn has completed.AgentResponse.state()Returns the full session state at the end of the turn.ClientTransform.transformState(SessionState<S> state) Transforms the given session state before it is returned to the caller.Methods in com.google.genkit.ai.agent with parameters of type SessionStateModifier and TypeMethodDescriptionvoidAgentInit.setState(SessionState<S> state) Sets the initial session state.voidAgentOutput.setState(SessionState<S> state) Sets the session state.voidSessionSnapshot.setState(SessionState<S> state) Sets the session state.AgentInit.Builder.state(SessionState<S> state) AgentOutput.Builder.state(SessionState<S> state) SessionSnapshot.Builder.state(SessionState<S> state) ClientTransform.transformState(SessionState<S> state) Transforms the given session state before it is returned to the caller.Constructors in com.google.genkit.ai.agent with parameters of type SessionStateModifierConstructorDescriptionSession(SessionState<S> initialState) Constructs a new Session from the given initial state.