bodhi-realtime-agent / SubagentConfig
Interface: SubagentConfig
Defined in: types/agent.ts:58
Configuration for a background subagent that runs via the Vercel AI SDK. Subagents handle long-running tool calls asynchronously while Gemini continues speaking.
Extended by
Properties
createInstance()?
optionalcreateInstance: () =>SubagentConfig
Defined in: types/agent.ts:77
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
SubagentConfig
dispose()?
optionaldispose: () =>void|Promise<void>
Defined in: types/agent.ts:79
Optional cleanup function called when the subagent run ends (success, error, or abort).
Returns
void | Promise<void>
instructions
instructions:
string
Defined in: types/agent.ts:62
System instructions for the subagent's LLM call.
interactive?
optionalinteractive:boolean
Defined in: types/agent.ts:72
When true, a SubagentSession with user interaction capabilities is created.
maxSteps?
optionalmaxSteps:number
Defined in: types/agent.ts:66
Maximum number of LLM steps before stopping (default 5).
model?
optionalmodel:string
Defined in: types/agent.ts:70
Override the model used for this subagent (defaults to session model).
name
name:
string
Defined in: types/agent.ts:60
Unique name identifying this subagent configuration.
timeout?
optionaltimeout:number
Defined in: types/agent.ts:68
Timeout in milliseconds for the entire subagent run.
tools
tools:
Record<string,unknown>
Defined in: types/agent.ts:64
Vercel AI SDK tool() definitions available to the subagent.