Expand description
Session management.
Public session management API — thin wrappers over SessionManager.
Mirrors the Python cognee/api/v1/session/session.py functions:
get_session, add_feedback, delete_feedback, get_graph_context,
set_graph_context.
Structs§
- Session
Context - Session context passed to retrievers: the session ID and any loaded conversation history (as LLM messages).
- Session
Manager - Orchestrates session operations using an
Arc<dyn SessionStore>. - SessionQA
Entry - A single question-answer entry stored in a session.
- SessionQA
Update - Partial update DTO for a QA entry.
- Used
Graph Element Ids - Graph element IDs that were used to produce the answer for a Q&A entry.
Enums§
Traits§
- Session
Store - Abstraction over session Q&A storage backends (SQLite, Redis, filesystem, etc.).
Functions§
- add_
feedback - Add feedback (text and/or score) to a Q&A entry.
- delete_
feedback - Clear feedback from a Q&A entry.
- get_
graph_ context - Retrieve the graph knowledge snapshot for a session.
- get_
session - Retrieve Q&A history from a session.
- set_
graph_ context - Store (or overwrite) the graph knowledge snapshot for a session.