***

title: enable_functions_on_timeout
slug: /reference/python/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/python/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="bool" default="True" toc={true}>
  `True` to allow function calls on speaker timeout, `False` to disable.
</ParamField>

## **Returns**

[`FunctionResult`][functionresult] — self, for chaining.

## **Example**

```python {11}
from signalwire import AgentBase
from signalwire import FunctionResult

agent = AgentBase(name="my-agent", route="/agent")
agent.set_prompt_text("You are a helpful assistant.")

@agent.tool(name="enable_escalation_on_timeout", description="Enable function calls on timeout")
def enable_escalation_on_timeout(args, raw_data):
    return (
        FunctionResult("I'll help you with that.")
        .enable_functions_on_timeout(enabled=True)
    )

agent.serve()
```