Uses of Class
com.tnsai.session.AgentSession
Packages that use AgentSession
Package
Description
Session history and knowledge extraction for agents.
Knowledge extraction from agent sessions.
Session replay functionality.
-
Uses of AgentSession in com.tnsai.session
Methods in com.tnsai.session that return AgentSessionModifier and TypeMethodDescriptionAgentSession.addAssistantMessage(String content) Adds an assistant message turn.AgentSession.addMetadata(String key, Object value) Adds metadata to the session.Adds a tag to the session.Adds multiple tags.AgentSession.addToolCall(String toolName, Map<String, Object> arguments) Adds a tool call turn.AgentSession.addToolResult(String toolName, String result) Adds a tool result turn.AgentSession.addTurn(ConversationTurn turn) Adds a turn to the session.AgentSession.addUserMessage(String content) Adds a user message turn.static AgentSessionAgentSession.restore(String id, String agentName, Instant startTime, Instant endTime, String projectPath, List<ConversationTurn> turns, Map<String, Object> metadata, List<String> tags, SessionOutcome outcome) Restores a session from saved data.SessionSearchResult.session()Returns the value of thesessionrecord component.static AgentSessionStarts a new session.static AgentSessionStarts a new session with custom ID.Methods in com.tnsai.session that return types with arguments of type AgentSessionModifier and TypeMethodDescriptionFileSessionStore.findByAgent(String agentName) SessionStore.findByAgent(String agentName) Lists sessions for a specific agent.FileSessionStore.findByDate(LocalDate date) SessionStore.findByDate(LocalDate date) Lists sessions for a specific date.FileSessionStore.findByDateRange(LocalDate startDate, LocalDate endDate) SessionStore.findByDateRange(LocalDate startDate, LocalDate endDate) Lists sessions in a date range.FileSessionStore.findByOutcome(SessionOutcome outcome) SessionStore.findByOutcome(SessionOutcome outcome) Lists sessions with a specific outcome.FileSessionStore.findByProject(String projectPath) SessionStore.findByProject(String projectPath) Lists sessions for a specific project.Lists sessions with a specific tag.SearchableFileSessionStore.findByToolUsage(String toolName) SearchableSessionStore.findByToolUsage(String toolName) Searches for sessions containing a specific tool call.FileSessionStore.findRecent(int limit) SessionStore.findRecent(int limit) Gets the most recent sessions.Loads a session by ID.Methods in com.tnsai.session with parameters of type AgentSessionModifier and TypeMethodDescriptionstatic SessionSearchResultSessionSearchResult.of(AgentSession session) Creates a result with just the session.static SessionSearchResultSessionSearchResult.of(AgentSession session, double score) Creates a result with score.voidFileSessionStore.save(AgentSession session) voidSessionStore.save(AgentSession session) Saves a session.static SessionSearchResultSessionSearchResult.withMatches(AgentSession session, double score, List<SessionSearchResult.MatchedTurn> matchedTurns) Creates a result with matched turns.Constructors in com.tnsai.session with parameters of type AgentSessionModifierConstructorDescriptionSessionSearchResult(AgentSession session, double score, List<SessionSearchResult.MatchedTurn> matchedTurns, List<String> highlights) Creates an instance of aSessionSearchResultrecord class. -
Uses of AgentSession in com.tnsai.session.consolidation
Methods in com.tnsai.session.consolidation with parameters of type AgentSessionModifier and TypeMethodDescriptionMemoryConsolidationPipeline.consolidate(AgentSession session) Consolidates a session's memory.AutoConsolidationManager.onMessageAdded(AgentSession session, int estimatedTokens) Called when a message is added to the conversation.AutoConsolidationManager.onSessionEnd(AgentSession session) Called when a session ends. -
Uses of AgentSession in com.tnsai.session.extraction
Methods in com.tnsai.session.extraction with parameters of type AgentSessionModifier and TypeMethodDescriptiondefault List<ExtractedKnowledge> KnowledgeExtractor.extract(AgentSession session) Extracts all types of knowledge from a session.KnowledgeExtractor.extract(AgentSession session, Set<ExtractionType> types) Extracts specific types of knowledge from a session.LLMKnowledgeExtractor.extract(AgentSession session, Set<ExtractionType> types) Method parameters in com.tnsai.session.extraction with type arguments of type AgentSessionModifier and TypeMethodDescriptiondefault List<ExtractedKnowledge> KnowledgeExtractor.extractAll(List<AgentSession> sessions) Extracts knowledge from multiple sessions.default List<ExtractedKnowledge> KnowledgeExtractor.extractAll(List<AgentSession> sessions, Set<ExtractionType> types) Extracts knowledge from multiple sessions with specific types. -
Uses of AgentSession in com.tnsai.session.replay
Methods in com.tnsai.session.replay that return AgentSessionMethods in com.tnsai.session.replay with parameters of type AgentSessionModifier and TypeMethodDescriptionstatic SessionReplaySessionReplay.of(AgentSession session) Creates a replay for the given session.