***

title: setPostProcess
slug: /reference/typescript/agents/function-result/set-post-process
description: Enable or disable post-processing on a FunctionResult.
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

Enable or disable post-processing after construction. When post-processing is
enabled, the AI speaks the response and takes one more conversational turn with
the user before executing actions. This is useful for confirmation workflows.

## **Parameters**

<ParamField path="postProcess" type="boolean" required={true} toc={true}>
  `true` to let the AI respond once more before executing actions. `false` to
  execute actions immediately.
</ParamField>

## **Returns**

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

## **Example**

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

const result = new FunctionResult('Processing your request.');
result.setPostProcess(true);
```