Uses of Class
org.springframework.ai.session.Session
Packages that use Session
Package
Description
JDBC-backed implementation of
SessionRepository.The contract tests of a
SessionRepository
implementation.-
Uses of Session in org.springframework.ai.session
Methods in org.springframework.ai.session that return SessionModifier and TypeMethodDescriptionSession.Builder.build()DefaultSessionService.create(CreateSessionRequest request) SessionService.create(CreateSessionRequest request) Creates a session with the request's id, a random UUID when it has none, its time to live and its metadata.@Nullable Session@Nullable Session@Nullable Session@Nullable Sessiondefault SessionSessionService.findOrCreate(CreateSessionRequest request) The session with the request's id, created from the request when there is none.Persists session metadata (create or update).Methods in org.springframework.ai.session that return types with arguments of type SessionModifier and TypeMethodDescriptionDefaultSessionService.findByMetadata(String name, String value) InMemorySessionRepository.findByMetadata(String name, String value) SessionRepository.findByMetadata(String name, String value) SessionService.findByMetadata(String name, String value) The sessions whose metadata holdsvalueundername, oldest first, for the keys the store indexes; seeSessionRepository.findByMetadata(java.lang.String, java.lang.String).Methods in org.springframework.ai.session with parameters of type SessionModifier and TypeMethodDescriptionstatic @Nullable StringSessionAttributes.agentModel(Session session) The model of the agent a session runs, ornullwhen none was set.static @Nullable StringThe agent name of a session, ornullwhen none was set.static @Nullable StringSessionAttributes.agentVersion(Session session) The agent version of a session, ornullwhen none was set.static @Nullable StringSessionAttributes.principalName(Session session) The principal name of a session, ornullwhen it has none.Persists session metadata (create or update).booleanInMemorySessionRepository.saveIfAbsent(Session session) booleanSessionRepository.saveIfAbsent(Session session) Inserts the session unless one with the same id exists, atomically: a primary-key-guardedINSERT, or a compare-and-set put. -
Uses of Session in org.springframework.ai.session.compaction
Methods in org.springframework.ai.session.compaction that return SessionModifier and TypeMethodDescriptionCompactionRequest.session()Returns the value of thesessionrecord component.SummaryRequest.session()Returns the value of thesessionrecord component.Methods in org.springframework.ai.session.compaction with parameters of type SessionModifier and TypeMethodDescriptionstatic CompactionRequestCompactionRequest.of(Session session, List<SessionEvent> events) A request for the session and its view, counting the turns.Constructors in org.springframework.ai.session.compaction with parameters of type SessionModifierConstructorDescriptionCompactionRequest(Session session, List<SessionEvent> events, int currentTurnCount) Creates an instance of aCompactionRequestrecord class.SummaryRequest(Session session, List<SessionEvent> priorSummary, List<SessionEvent> covered, List<SessionEvent> preserved) Creates an instance of aSummaryRequestrecord class. -
Uses of Session in org.springframework.ai.session.jdbc
Methods in org.springframework.ai.session.jdbc that return SessionMethods in org.springframework.ai.session.jdbc that return types with arguments of type SessionModifier and TypeMethodDescriptionJdbcSessionRepository.findByMetadata(String name, String value) Methods in org.springframework.ai.session.jdbc with parameters of type Session -
Uses of Session in org.springframework.ai.test.session
Methods in org.springframework.ai.test.session that return SessionModifier and TypeMethodDescriptionprotected SessionAbstractSessionRepositoryContractTests.findSession(String id) The session with the given id, which must exist.protected SessionAbstractSessionRepositoryContractTests.newSession(String principalName) Saves a new session with a random id for the given principal.protected static SessionAbstractSessionRepositoryContractTests.principalSession(String id, String principalName) A session with the given id whose metadata names the principal.