Server SDKs
Build AI agents, control calls, send messages, and more
Configure the answer verb (phase 2) with optional settings. Use this to customize answer behavior such as setting a maximum call duration.
Answer verb configuration (e.g., { max_duration: 3600 }).
{ max_duration: 3600 }
AgentBase — Returns this for method chaining.
AgentBase
this
1import { AgentBase } from '@signalwire/sdk';23const agent = new AgentBase({ name: 'support', route: '/support' });4agent.setPromptText('You are a helpful assistant.');5agent.addAnswerVerb({ max_duration: 3600 }); // 1 hour max call duration6await agent.serve();