# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.klai.studio/reference/actions-processor/actions_overview/llmquerystop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
