Server SDKs
Build AI agents, control calls, send messages, and more
Set or replace the response text after construction. The response is the text the AI speaks back to the caller after the function executes.
Text for the AI to speak to the caller.
FunctionResult — this, for chaining.
FunctionResult
this
1import { FunctionResult } from '@signalwire/sdk';23const result = new FunctionResult();4result.setResponse('Your order has been confirmed.');