> For the complete documentation index, see [llms.txt](https://docs.klai.studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.klai.studio/reference/actions-processor/actions_overview/llmquerystop.md).

# llmQueryStop

`llmQueryStop` requests that an active `/llm/query` stream stop.

## Expected Options

| Key                | Type     | Description                                                        |
| ------------------ | -------- | ------------------------------------------------------------------ |
| `options.streamId` | `string` | Stream identifier returned or tracked by the active LLM query flow |

## Example

```json
{
  "action": "llmQueryStop",
  "options": {
    "streamId": "stream_123"
  }
}
```

## Behavior Notes

* If `streamId` is missing, BetterForms logs a warning and exits gracefully.
* When `streamId` is present, BetterForms calls the `llm/query/stop` service.
* Failures are handled gracefully so the UI can request stop without needing to trap every stop-state edge case itself.

## Related Pages

* [assistantStop](/reference/actions-processor/actions_overview/assistantstop.md)
* [Klai Streaming API (LLM Query)](/reference/apis-and-services/streaming-proxy/bf-streaming-api-llm-query.md)
