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

Function dispatchEvent

packages/agent-core/src/loop/events.ts:154–159  ·  view source on GitHub ↗
(event: LoopEvent)

Source from the content-addressed store, hash-verified

152 function dispatchEvent(event: LoopRecordedEvent): Promise<void>;
153 function dispatchEvent(event: LoopLiveOnlyEvent): void;
154 function dispatchEvent(event: LoopEvent): Promise<void> | void {
155 if (isRecordedEvent(event)) {
156 return recordEvent(input, event);
157 }
158 safeEmitLive(input.emitLiveEvent, event);
159 }
160 return dispatchEvent;
161}
162

Callers 4

executeToolFunction · 0.85
runTurnFunction · 0.85
executeLoopStepFunction · 0.85

Calls 3

isRecordedEventFunction · 0.85
recordEventFunction · 0.85
safeEmitLiveFunction · 0.85

Tested by

no test coverage detected