> This page is for Server SDKs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# enable_functions_on_timeout

> Allow SWAIG function calls when a speaker timeout occurs.

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

**`enabled`** `bool` — default: True

`True` to allow function calls on speaker timeout, `False` to disable.

---

## **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()
```