setPostProcess

View as MarkdownOpen in Claude

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

postProcess
booleanRequired

true to let the AI respond once more before executing actions. false to execute actions immediately.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult('Processing your request.');
4result.setPostProcess(true);