AgentsLiveWireAgentSessionupdateAgentCopy page|View as Markdown|Open in Claude|More actionsSwap in a new Agent mid-session. The new agent’s instructions replace the previous agent’s prompt on the underlying SignalWire AgentBase. Signature 1updateAgent(agent: Agent<UserData>): void Parameters agentAgentRequiredThe new Agent to bind to this session. Returns void Example 1import { Agent } from '@signalwire/sdk/livewire';23const billingAgent = new Agent({4 instructions: 'You are now a billing specialist. Help the user with invoices and payments.',5});67session.updateAgent(billingAgent);