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
Adds participant.
append_message
Appends a message.
append_message_with_author
Appends a message with an author.
append_message_with_options
Appends a 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
Chats directory.
compact_session_to_q42
Compacts a session to q42.
compile_session_did
Compiles the 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
Creates group-session.
create_session
Creates session.
delete_session
Deletes a session.
get_last_session_id
Gets last-session-id.
get_participants
Gets participants.
get_session_did
Gets session-did.
list_session_share_targets
Sessions and groups that can be selected as share targets (each has a stable session_did).
list_sessions
Lists chat sessions.
load_session
Loads session.
remove_participant
Removes participant.
rename_session
Renames a session.
set_last_session_id
Sets last-session-id.