Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/sessions / facade

facade

createSessionManager(...) and the Session facade — the hybrid facade-with-state surface for the sessions module. Per the single-source-of-truth principle, this package OWNS sessions / agents / handoffs / workflow attachments / audit metadata, and DELEGATES message CRUD to @graphorin/memory.session. There is no duplicate session_messages table, no separate FTS index, and no message cache in this package.

Interfaces

InterfaceDescription
AssistantMessage-
CreateSessionManagerOptionsPer-session-manager configuration.
SessionPer-session ergonomic facade returned by SessionManager.create / SessionManager.get.
SessionCountersCounter receiver used by the commentary sanitizer + the cassette audit emissions. Defaults to a no-op. Hook your @graphorin/observability meter into this when wiring the session manager into a server.
SessionExportOptionsOptions threaded into Session.export({...}).
SessionManagerSurface returned by createSessionManager.
SessionMemoryFacadeSubset of the Memory.session surface this package consumes. Kept structural so callers can pass either the Memory facade from @graphorin/memory or any custom shim with the same shape.
SessionRecordCassetteOptionsOptions accepted by Session.recordToolCassette({...}).
SystemMessage-
ToolMessage-
UserMessage-

Type Aliases

Type AliasDescription
MessageContentA single multimodal content part attached to a chat-style message.

Functions

FunctionDescription
createSessionManagerBuild a session manager. The manager is the public entry point; sessions are obtained via manager.create(...) / manager.get(...).