Skip to content

SubagentOptions

Defined in: agent/subagent.ts:54

Options for creating a subagent.

optional defaultMaxIterations: number

Defined in: agent/subagent.ts:92

Default max iterations if not specified.

15

optional defaultModel: string

Defined in: agent/subagent.ts:81

Default model if no other source provides one.

"sonnet"

gadgets: AbstractGadget[]

Defined in: agent/subagent.ts:64

Gadgets to register with the subagent.


optional hooks: AgentHooks

Defined in: agent/subagent.ts:97

Agent hooks for observers, interceptors, controllers.


optional maxIterations: number

Defined in: agent/subagent.ts:86

Maximum iterations for the agent loop.


optional model: 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”.


optional systemPrompt: string

Defined in: agent/subagent.ts:69

System prompt for the subagent.


optional temperature: number

Defined in: agent/subagent.ts:102

Temperature for LLM calls.