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

Method run

packages/runtime/src/runtime-runner.ts:197–203  ·  view source on GitHub ↗

* Run one invocation end-to-end and return a structured result. * * Event order is guaranteed: normal invocations collect the initial user * RuntimeEvent before any flow event; continuations collect only new events. * By default collection stops at the first * terminal RuntimeEvent; c

(request: InvocationRequest)

Source from the content-addressed store, hash-verified

195 * events can opt into full draining through RuntimeRunnerDeps.
196 */
197 async run(request: InvocationRequest): Promise<InvocationResult> {
198 const continuation = request.continuation;
199 if (continuation !== undefined) {
200 throw continuationAdmissionRequired();
201 }
202 return this.#runInvocation(snapshotInvocationRequest(request, { continuation }), 'normal');
203 }
204
205 async #runInvocation(
206 request: InvocationRequest,

Callers 1

runAgentTurnMethod · 0.95

Calls 3

#runInvocationMethod · 0.95

Tested by

no test coverage detected