Skip to content

SessionManager

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/session/session-manager.ts

Methods

MethodSignatureReturns
createIdcreateId()string
savesave(id: string, ctx: SessionSaveContext)string
resumeresume(id: string)`ResumedSession
listlist()SessionMeta[]
deletedelete(id: string)boolean
latestlatest()`SessionMeta
getMetagetMeta(id: string)`SessionMeta
loadSnapshotloadSnapshot(id: string)`SessionSnapshot

Where it refuses work

  • SessionManager stops the work with an early return when !resolvedId.
  • SessionManager stops the work with an early return when !snapshot.
  • SessionManager stops the work with an early return when existingTitle.
  • SessionManager stops the work with an early return when !firstUser.

Was this page helpful?

Download as PDF