bodhi-realtime-agent / InteractiveSubagentConfig
Interface: InteractiveSubagentConfig
Defined in: agent/subagent-session.ts:58
Extends SubagentConfig with interactive session options.
Extends
Properties
createInstance()?
optionalcreateInstance: () =>SubagentConfig
Defined in: types/agent.ts:94
Optional factory that returns an isolated subagent config instance per handoff. Use this when tool state must not be shared across concurrent background runs.
Returns
Inherited from
dispose()?
optionaldispose: () =>void|Promise<void>
Defined in: types/agent.ts:96
Optional cleanup function called when the subagent run ends (success, error, or abort).
Returns
void | Promise<void>
Inherited from
inputTimeout?
optionalinputTimeout:number
Defined in: agent/subagent-session.ts:62
Timeout per waitForInput() call in ms. Default: 120_000 (2 min).
instructions
instructions:
string
Defined in: types/agent.ts:76
System instructions for the subagent's LLM call.
Inherited from
interactive?
optionalinteractive:boolean
Defined in: agent/subagent-session.ts:60
Whether this subagent supports interactive user input.
Overrides
maxInputRetries?
optionalmaxInputRetries:number
Defined in: agent/subagent-session.ts:64
Max retries before cancellation on timeout. Default: 3.
maxSteps?
optionalmaxSteps:number
Defined in: types/agent.ts:80
Maximum number of LLM steps before stopping (default 5).
Inherited from
name
name:
string
Defined in: types/agent.ts:74
Unique name identifying this subagent configuration.
Inherited from
reasoningModel?
optionalreasoningModel:LanguageModelV1
Defined in: types/agent.ts:87
Optional Vercel AI SDK text model for this subagent’s generateText relay. When omitted, the session default (VoiceSessionConfig.model) is used.
Inherited from
timeout?
optionaltimeout:number
Defined in: types/agent.ts:82
Timeout in milliseconds for the entire subagent run.
Inherited from
tools
tools:
Record<string,unknown>
Defined in: types/agent.ts:78
Vercel AI SDK tool() definitions available to the subagent.