Skip to content

TrajectoryLogger

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/tracing/trajectory-logger.ts

Methods

MethodSignatureReturns
attachattach(session: AttachableSession)void
recordrecord(event: string, data: Record<string, unknown>)void
getEntriesgetEntries()TrajectoryEntry[]
toJSONLtoJSONL()string
flushflush()void
clearclear()void

Where it refuses work

  • TrajectoryLogger stops the work with an early return when e.delta.
  • TrajectoryLogger stops the work with an early return when !this.config.outputPath.
  • TrajectoryLogger stops the work with an early return when this.flushedCount >= this.entries.length.

Was this page helpful?

Download as PDF