Skip to main content

Module chat_session

Module chat_session 

Source
Expand description

Chat session persistence — WAL quins + JSON sidecar under {storage}/Chats/.

Structs§

ChatEnvironment
Snapshot of chat inference scope and LLM-visible capabilities.
ChatMessage
ChatParticipant
ChatSession
ChatSessionShareTarget
Target descriptor for ontology sharing UI (solo chats and group sessions).
ChatSessionSummary
OntologyScopeSummary
Per-ontology scope summary compiled into the chat environment.
SessionMeta

Enums§

ChatError
Role
SessionKind

Functions§

add_participant
append_message
append_message_with_author
append_message_with_options
append_relay_message_with_agent_meta
Ingest a relayed message with pre-set sub-agent metadata (skips local decoration / re-publish).
chats_dir
compact_session_to_q42
compile_session_did
content_hash_u64
The content hash carried on a chat message: FNV-1a q_hash of the content, masked to the 60-bit object space. Public so interop layers (e.g. solid_chat) can reproduce it for imported messages.
create_group_session
create_session
delete_session
get_last_session_id
get_participants
get_session_did
list_session_share_targets
Sessions and groups that can be selected as share targets (each has a stable session_did).
list_sessions
load_session
remove_participant
rename_session
set_last_session_id