Skip to content

buildProfileSubagents

buildProfileSubagents(specs, options): Promise<SubAgent[]>

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/subagentProfiles.ts:82

Turn each SubagentProfileSpec into a deepagents SubAgent whose model + tools + prompt come from the named profile’s resolved config. The returned specs are handed to createDeepAgent({ subagents }); the model — the whole point — is the child profile’s llm, distinct from the parent’s.

readonly SubagentProfileSpec[]

BuildProfileSubagentsOptions

Promise<SubAgent[]>