MCPcopy Create free account
hub / github.com/Noumena-Network/code / startInProcessTeammate

Function startInProcessTeammate

src/utils/swarm/inProcessRunner.ts:1545–1553  ·  view source on GitHub ↗
(config: InProcessRunnerConfig)

Source from the content-addressed store, hash-verified

1543 * @param config - Runner configuration
1544 */
1545export function startInProcessTeammate(config: InProcessRunnerConfig): void {
1546 // Extract agentId before the closure so the catch handler doesn't retain
1547 // the full config object (including toolUseContext) while the promise is
1548 // pending - which can be hours for a long-running teammate.
1549 const agentId = config.identity.agentId
1550 void runInProcessTeammate(config).catch(error => {
1551 logForDebugging(`[inProcessRunner] Unhandled error in ${agentId}: ${error}`)
1552 })
1553}

Callers 2

handleSpawnInProcessFunction · 0.85
spawnMethod · 0.85

Calls 2

runInProcessTeammateFunction · 0.85
logForDebuggingFunction · 0.50

Tested by

no test coverage detected