Skip to content

EscalationLadder

Defined in: escalation/ladder.ts:73

Escalation Ladder - intelligently routes tasks through 7 levels

new EscalationLadder(config?): EscalationLadder

Defined in: escalation/ladder.ts:79

Partial<EscalationConfig>

EscalationLadder

getAllStates(): EscalationState[]

Defined in: escalation/ladder.ts:241

Get all states

EscalationState[]


getConfig(): EscalationConfig

Defined in: escalation/ladder.ts:255

Get configuration

EscalationConfig


getCostTracker(): CostTracker

Defined in: escalation/ladder.ts:248

Get cost tracker

CostTracker


getState(taskId): EscalationState

Defined in: escalation/ladder.ts:227

Get state for a task

string

EscalationState


process(task): Promise<ProcessResult>

Defined in: escalation/ladder.ts:96

Process a task through the escalation ladder

Task

Promise<ProcessResult>


registerHandler(level, handler): this

Defined in: escalation/ladder.ts:88

Register a handler for a specific level

EscalationLevel

LevelHandler

this


resetState(taskId): void

Defined in: escalation/ladder.ts:234

Reset state for a task

string

void


updateConfig(update): void

Defined in: escalation/ladder.ts:262

Update configuration

Partial<EscalationConfig>

void