> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # stop > Stop the agent execution immediately. [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(); ``` > Stop the agent execution immediately.