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

Method createSubagent

packages/storage/src/session-store.ts:502–513  ·  view source on GitHub ↗
(
    input: CreateSessionInput,
    initialBoundary?: ExecutionBoundary,
  )

Source from the content-addressed store, hash-verified

500 }
501
502 async createSubagent(
503 input: CreateSessionInput,
504 initialBoundary?: ExecutionBoundary,
505 ): Promise<{ header: SessionHeader; created: boolean }> {
506 await this.ensureReady();
507 assertNoConversationCopyMetadata(input);
508 const result = await this.metadata.createSubagent(
509 buildSessionHeader(this.workspaceRoot, input),
510 initialBoundary,
511 );
512 return { header: result.record.header, created: result.created };
513 }
514
515 async createAgentGraphOperator(
516 input: CreateSessionInput,

Callers

nothing calls this directly

Calls 4

ensureReadyMethod · 0.95
buildSessionHeaderFunction · 0.85
createSubagentMethod · 0.65

Tested by

no test coverage detected