Skip to content

bodhi-realtime-agent / InteractiveSubagentConfig

Interface: InteractiveSubagentConfig

Defined in: agent/subagent-session.ts:58

Extends SubagentConfig with interactive session options.

Extends

Properties

createInstance()?

optional createInstance: () => 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

Inherited from

SubagentConfig.createInstance


dispose()?

optional dispose: () => 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>

Inherited from

SubagentConfig.dispose


inputTimeout?

optional inputTimeout: 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:62

System instructions for the subagent's LLM call.

Inherited from

SubagentConfig.instructions


interactive?

optional interactive: boolean

Defined in: agent/subagent-session.ts:60

Whether this subagent supports interactive user input.

Overrides

SubagentConfig.interactive


maxInputRetries?

optional maxInputRetries: number

Defined in: agent/subagent-session.ts:64

Max retries before cancellation on timeout. Default: 3.


maxSteps?

optional maxSteps: number

Defined in: types/agent.ts:66

Maximum number of LLM steps before stopping (default 5).

Inherited from

SubagentConfig.maxSteps


model?

optional model: string

Defined in: types/agent.ts:70

Override the model used for this subagent (defaults to session model).

Inherited from

SubagentConfig.model


name

name: string

Defined in: types/agent.ts:60

Unique name identifying this subagent configuration.

Inherited from

SubagentConfig.name


timeout?

optional timeout: number

Defined in: types/agent.ts:68

Timeout in milliseconds for the entire subagent run.

Inherited from

SubagentConfig.timeout


tools

tools: Record<string, unknown>

Defined in: types/agent.ts:64

Vercel AI SDK tool() definitions available to the subagent.

Inherited from

SubagentConfig.tools

Built with VitePress