Kind: Class
Source: atloria-monorepo/libs/agent-core/src/autonomous/session-journal.ts
Methods
| Method | Signature | Returns |
|---|---|---|
add | add(turn: number, type: JournalEntryType, content: string) | JournalEntry |
read | read() | string |
format | format() | string |
cleanup | cleanup() | void |
getGoal | getGoal() | string |
count | count() | number |
getAll | getAll() | readonly JournalEntry[] |
getFilePath | getFilePath() | string |
Where it refuses work
SessionJournalstops the work with an early return whenfs.existsSync(this.filePath).SessionJournalstops the work with an early return whenthis.entries.length === 0.
When something fails
SessionJournalhandles failure in 3 places: it discards it silently in all 3.
Was this page helpful?