***

title: enableFunctionsOnTimeout
slug: /reference/typescript/agents/function-result/enable-functions-on-timeout
description: Allow SWAIG function calls when a speaker timeout occurs.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[functionresult]: /docs/server-sdks/reference/typescript/agents/function-result

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**

<ParamField path="enabled" type="boolean" default="true" toc={true}>
  `true` to allow function calls on speaker timeout, `false` to disable.
</ParamField>

## **Returns**

[`FunctionResult`][functionresult] -- `this`, for chaining.

## **Example**

```typescript {4}
import { FunctionResult } from '@signalwire/sdk';

const result = new FunctionResult()
  .enableFunctionsOnTimeout(true);
```