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

Function resolveTeammateModel

src/tools/shared/spawnMultiAgent.ts:94–102  ·  view source on GitHub ↗
(
  inputModel: string | undefined,
  leaderModel: string | null,
)

Source from the content-addressed store, hash-verified

92 * Exported for testing.
93 */
94export function resolveTeammateModel(
95 inputModel: string | undefined,
96 leaderModel: string | null,
97): string {
98 if (inputModel === 'inherit') {
99 return leaderModel ?? getDefaultTeammateModel(leaderModel)
100 }
101 return inputModel ?? getDefaultTeammateModel(leaderModel)
102}
103
104// ============================================================================
105// Types

Callers 3

handleSpawnSplitPaneFunction · 0.85
handleSpawnInProcessFunction · 0.85

Calls 1

getDefaultTeammateModelFunction · 0.85

Tested by

no test coverage detected