enableFunctionsOnTimeout

View as MarkdownOpen in Claude

Control whether SWAIG functions can be called when a speaker timeout occurs. When enabled, the agent can invoke functions after the user has been silent for the configured timeout period.

Parameters

enabled
booleanDefaults to true

true to allow function calls on speaker timeout, false to disable.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult()
4 .enableFunctionsOnTimeout(true);