MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeInterruptedEvent

Function makeInterruptedEvent

packages/agent-core/src/loop/run-turn.ts:139–152  ·  view source on GitHub ↗
(
  reason: LoopInterruptReason,
  attemptedSteps: number,
  activeStep: number | undefined,
  message?: string | undefined,
)

Source from the content-addressed store, hash-verified

137}
138
139function makeInterruptedEvent(
140 reason: LoopInterruptReason,
141 attemptedSteps: number,
142 activeStep: number | undefined,
143 message?: string | undefined,
144): LoopTurnInterruptedEvent {
145 return {
146 type: 'turn.interrupted',
147 reason,
148 attemptedSteps,
149 ...(activeStep !== undefined ? { activeStep } : {}),
150 ...(message !== undefined ? { message } : {}),
151 };
152}

Callers 1

runTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected