Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/sessions / facade

facade

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.
SessionMessageWithMetadataA stored message paired with its persisted identity (RP-5). The core Message type carries no id / timestamp; these come from the store row.
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(...).