Skip to content

SessionJournal

reference
1 min readUpdated

Kind: Class

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

Methods

MethodSignatureReturns
addadd(turn: number, type: JournalEntryType, content: string)JournalEntry
readread()string
formatformat()string
cleanupcleanup()void
getGoalgetGoal()string
countcount()number
getAllgetAll()readonly JournalEntry[]
getFilePathgetFilePath()string

Where it refuses work

  • SessionJournal stops the work with an early return when fs.existsSync(this.filePath).
  • SessionJournal stops the work with an early return when this.entries.length === 0.

When something fails

  • SessionJournal handles failure in 3 places: it discards it silently in all 3.

Was this page helpful?

Download as PDF