SubagentOptions
Defined in: agent/subagent.ts:54
Options for creating a subagent.
Properties
Section titled “Properties”defaultMaxIterations?
Section titled “defaultMaxIterations?”
optionaldefaultMaxIterations:number
Defined in: agent/subagent.ts:92
Default max iterations if not specified.
Default
Section titled “Default”15defaultModel?
Section titled “defaultModel?”
optionaldefaultModel:string
Defined in: agent/subagent.ts:81
Default model if no other source provides one.
Default
Section titled “Default”"sonnet"gadgets
Section titled “gadgets”gadgets:
AbstractGadget[]
Defined in: agent/subagent.ts:64
Gadgets to register with the subagent.
hooks?
Section titled “hooks?”
optionalhooks:AgentHooks
Defined in: agent/subagent.ts:97
Agent hooks for observers, interceptors, controllers.
maxIterations?
Section titled “maxIterations?”
optionalmaxIterations:number
Defined in: agent/subagent.ts:86
Maximum iterations for the agent loop.
model?
Section titled “model?”
optionalmodel:string
Defined in: agent/subagent.ts:75
Model to use. If not provided, inherits from parent or uses default. Can be a runtime parameter from gadget params.
name:
string
Defined in: agent/subagent.ts:59
Name of the subagent (used for config resolution). Should match the gadget name in CLI config, e.g., “BrowseWeb”.
systemPrompt?
Section titled “systemPrompt?”
optionalsystemPrompt:string
Defined in: agent/subagent.ts:69
System prompt for the subagent.
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: agent/subagent.ts:102
Temperature for LLM calls.