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

Method reserveChildRun

packages/runtime/src/runtime-kernel.ts:2965–2984  ·  view source on GitHub ↗
(
    activeKey: string,
    sessionId: string,
    header: SessionHeader,
    systemPrompt: string,
    tools: readonly MakaTool[],
    run: AgentRun,
    execution: PendingExecutionClaim,
  )

Source from the content-addressed store, hash-verified

2963 }
2964
2965 private async reserveChildRun(
2966 activeKey: string,
2967 sessionId: string,
2968 header: SessionHeader,
2969 systemPrompt: string,
2970 tools: readonly MakaTool[],
2971 run: AgentRun,
2972 execution: PendingExecutionClaim,
2973 ): Promise<BackendGeneration> {
2974 const active = await this.ensureChildActive(
2975 activeKey,
2976 sessionId,
2977 header,
2978 systemPrompt,
2979 tools,
2980 execution,
2981 );
2982 this.reserveGenerationRun(active, run);
2983 return active;
2984 }
2985
2986 private createBackendGeneration(
2987 sessionId: string,

Callers 2

startChildTurnClaimedMethod · 0.95

Calls 2

ensureChildActiveMethod · 0.95
reserveGenerationRunMethod · 0.95

Tested by

no test coverage detected