***

title: stop
slug: /reference/typescript/agents/function-result/stop
description: Stop the agent execution immediately.
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

Stop the agent execution immediately. This halts the AI from processing further
and can be used to interrupt the current speech flow.

## **Parameters**

None.

## **Returns**

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

## **Example**

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

const result = new FunctionResult('Session ending.')
  .stop();
```