Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/sessions / facade
facade
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. |
| SessionMessageWithMetadata | A stored message paired with its persisted identity (RP-5). The core Message type carries no id / timestamp; these come from the store row. |
| 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(...). |