Skip to navigation

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 — this, for chaining.

Example

import { FunctionResult } from '@signalwire/sdk';
const result = new FunctionResult('Session ending.')
.stop();