Skip to content

TodoManager

reference
1 min readUpdated

Kind: Class

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

Methods

MethodSignatureReturns
addadd(description: string)TodoItem
addBatchaddBatch(descriptions: string[])TodoItem[]
startstart(id: string)void
completecomplete(id: string, result: string)void
skipskip(id: string, reason: string)void
getAllgetAll()ReadonlyArray<TodoItem>
getPendinggetPending()TodoItem[]
getCurrentgetCurrent()`TodoItem
getStatsgetStats(){ total: number; completed: number; pending: number; inProgress: number; skipped: number }
toContextStringtoContextString()string
serializeserialize()string
deserializedeserialize(json: string)TodoManager

Where it refuses work

  • TodoManager stops the work with an early return when this.items.length === 0.

Was this page helpful?

Download as PDF