Skip to main content

Module session_context

Module session_context 

Source
Expand description

Session Context Tracking (Phase 8 - ENG-70, ENG-71)

Extends session indexing with:

  • Named session creation and management
  • Memory-to-session linking
  • Session-scoped memory search
  • Session summarization
  • Context role tracking (referenced, created, updated)

This enables agents to:

  • Track which memories were used in a session
  • Search within session context
  • Generate session summaries
  • Export session data for analysis

Structs§

CreateSessionInput
Input for creating a new session
SessionContext
Extended session information with context
SessionExport
Session export format
SessionMemoryLink
A memory linked to a session with context information
SessionSearchResult
Result of session search

Enums§

ContextRole
Role of a memory in a session context

Functions§

add_memory_to_session
Add a memory to a session’s context
create_session
Create a new named session
end_session
End a session
export_session
Export a session with all its data
get_session_context
Get a session with all its linked memories
get_session_memories
Get all memories linked to a session
get_sessions_for_memory
Get sessions that reference a specific memory
list_sessions_extended
List sessions with optional filters
remove_memory_from_session
Remove a memory from a session’s context
search_session_memories
Search memories within a session’s context
update_session_context
Update session context (working memory)
update_session_summary
Update session summary