Event representing an agent handoff (switching from one agent to another).

interface AgentHandoffEvent {
    item: AgentHandoffItem;
    newAgent: voice.Agent<any>;
    oldAgent?: voice.Agent<any>;
    type: "agent_handoff";
}

Properties

newAgent: voice.Agent<any>
oldAgent?: voice.Agent<any>
type: "agent_handoff"