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
| Interface | Description |
|---|---|
| AssistantMessage | - |
| CreateSessionManagerOptions | Per-session-manager configuration. |
| Session | Per-session ergonomic facade returned by SessionManager.create / SessionManager.get. |
| SessionCounters | Counter 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. |
| SessionExportOptions | Options threaded into Session.export({...}). |
| SessionManager | Surface returned by createSessionManager. |
| SessionMemoryFacade | Subset 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. |
| SessionRecordCassetteOptions | Options accepted by Session.recordToolCassette({...}). |
| SystemMessage | - |
| ToolMessage | - |
| UserMessage | - |
Type Aliases
| Type Alias | Description |
|---|---|
| MessageContent | A single multimodal content part attached to a chat-style message. |
Functions
| Function | Description |
|---|---|
| createSessionManager | Build a session manager. The manager is the public entry point; sessions are obtained via manager.create(...) / manager.get(...). |