Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / SessionScope

Interface: SessionScope

Defined in: packages/core/src/types/session-scope.ts:11

Identifies a logical conversational scope: who the user is, which agent is in charge, and (when known) which session they're inside.

Used as a parameter to almost every Memory / Sessions API. The agent and session fields are optional because some scopes are user-wide (e.g. shared facts attached to a user, not a particular agent).

Stable

Properties

PropertyModifierTypeDescriptionDefined in
agentId?readonlystringIdentifier of the agent owning the scope, when applicable.packages/core/src/types/session-scope.ts:15
sessionId?readonlystringIdentifier of the session, when applicable.packages/core/src/types/session-scope.ts:17
userIdreadonlystringStable identifier of the user (single-user-per-process by default).packages/core/src/types/session-scope.ts:13