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.
Parameters
Section titled “Parameters”readonly SubagentProfileSpec[]
options
Section titled “options”Returns
Section titled “Returns”Promise<SubAgent[]>