Skip to content

RealtimeAgentConfiguration

type RealtimeAgentConfiguration<TContext> = Partial<Omit<AgentConfiguration<TContext, TextOutput>,
| "model"
| "handoffs"
| "modelSettings"
| "outputType"
| "toolUseBehavior"
| "resetToolChoice"
| "outputGuardrails"
| "inputGuardrails"
| "model">> & object;
optional handoffs: (
| RealtimeAgent
| Handoff)[];

Any other RealtimeAgent instances the agent is able to hand off to.

name: string;

The name of your realtime agent.

optional voice: string;

The voice intended to be used by the agent. If another agent already spoke during the RealtimeSession, changing the voice during a handoff will fail.

Type Parameter Default type

TContext

UnknownContext