Skip to content

CircleDetector

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/autonomous/circle-detector.ts

Methods

MethodSignatureReturns
recordTurnrecordTurn(record: TurnRecord)void
analyzeanalyze()CircleDetectionResult
getProgressDeltagetProgressDelta()number
suggestBudgetExtensionsuggestBudgetExtension(currentTurn: number, maxTurns: number)number
resetreset()void
getWindowgetWindow()readonly TurnRecord[]

Where it refuses work

  • CircleDetector stops the work with an early return when this.window.length < this.minTurnsBeforeDetection.
  • CircleDetector stops the work with an early return when signals.length === 0.
  • CircleDetector stops the work with an early return when currentTurn < Math.floor(maxTurns * 0.8).

Was this page helpful?

Download as PDF