MCPcopy Create free account
hub / github.com/apache/maka / hasCompletedGraphYield

Function hasCompletedGraphYield

packages/runtime/src/runtime-runner.ts:774–781  ·  view source on GitHub ↗
(events: readonly RuntimeEvent[])

Source from the content-addressed store, hash-verified

772}
773
774function hasCompletedGraphYield(events: readonly RuntimeEvent[]): boolean {
775 return events.some(
776 (event) =>
777 isTerminalRuntimeEvent(event) &&
778 event.status === 'completed' &&
779 event.actions?.stateDelta?.stopReason === 'graph_yield',
780 );
781}
782
783function failureFromTerminalEvent(event: RuntimeEvent): InvocationFailure | undefined {
784 const status: RuntimeEventStatus | undefined = event.status;

Callers 1

#runInvocationMethod · 0.85

Calls 1

isTerminalRuntimeEventFunction · 0.90

Tested by

no test coverage detected