stop

View as MarkdownOpen in Claude

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

FunctionResultthis, for chaining.

Example

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