Server SDKs
Build AI agents, control calls, send messages, and more
Swap in a new Agent mid-session. The new agent’s instructions replace the previous agent’s prompt on the underlying SignalWire AgentBase.
Agent
AgentBase
1updateAgent(agent: Agent<UserData>): void
The new Agent to bind to this session.
void
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);