EscalationLadder
Defined in: escalation/ladder.ts:73
Escalation Ladder - intelligently routes tasks through 7 levels
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EscalationLadder(
config?):EscalationLadder
Defined in: escalation/ladder.ts:79
Parameters
Section titled “Parameters”config?
Section titled “config?”Partial<EscalationConfig>
Returns
Section titled “Returns”EscalationLadder
Methods
Section titled “Methods”getAllStates()
Section titled “getAllStates()”getAllStates():
EscalationState[]
Defined in: escalation/ladder.ts:241
Get all states
Returns
Section titled “Returns”getConfig()
Section titled “getConfig()”getConfig():
EscalationConfig
Defined in: escalation/ladder.ts:255
Get configuration
Returns
Section titled “Returns”getCostTracker()
Section titled “getCostTracker()”getCostTracker():
CostTracker
Defined in: escalation/ladder.ts:248
Get cost tracker
Returns
Section titled “Returns”getState()
Section titled “getState()”getState(
taskId):EscalationState
Defined in: escalation/ladder.ts:227
Get state for a task
Parameters
Section titled “Parameters”taskId
Section titled “taskId”string
Returns
Section titled “Returns”process()
Section titled “process()”process(
task):Promise<ProcessResult>
Defined in: escalation/ladder.ts:96
Process a task through the escalation ladder
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<ProcessResult>
registerHandler()
Section titled “registerHandler()”registerHandler(
level,handler):this
Defined in: escalation/ladder.ts:88
Register a handler for a specific level
Parameters
Section titled “Parameters”handler
Section titled “handler”Returns
Section titled “Returns”this
resetState()
Section titled “resetState()”resetState(
taskId):void
Defined in: escalation/ladder.ts:234
Reset state for a task
Parameters
Section titled “Parameters”taskId
Section titled “taskId”string
Returns
Section titled “Returns”void
updateConfig()
Section titled “updateConfig()”updateConfig(
update):void
Defined in: escalation/ladder.ts:262
Update configuration
Parameters
Section titled “Parameters”update
Section titled “update”Partial<EscalationConfig>
Returns
Section titled “Returns”void