---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/searxng/interfaces/SearxngResponseContext.md
description: >-
  Mutable context handed to each output-pipeline stage **after** the response
  JSON is parsed.
---

# Interface: SearxngResponseContext

Defined in: [batteries/tools/searxng/index.ts:94](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L94)

Mutable context handed to each output-pipeline stage **after** the response JSON is parsed.

## Remarks

Stages reshape, redact, enrich, or re-rank [SearxngResponseContext.results](#property-results), mutate the
raw body, or set [SearxngResponseContext.output](#property-output) to override the serialised string
verbatim (e.g. to render markdown that matches a markdown `artifactConstructor`).

## Properties

| Property                                  | Modifier   | Type                                                | Description                                                             | Defined in                                                                                                                        |
| ----------------------------------------- | ---------- | --------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|  `format`     | `public`   | `"raw"` | `"normalized"`                           | The effective payload shape for this call.                              | [batteries/tools/searxng/index.ts:104](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L104) |
|  `output?`    | `public`   | `string`                                            | When set, used verbatim as the tool's output (overrides serialisation). | [batteries/tools/searxng/index.ts:106](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L106) |
|  `raw`           | `public`   | `unknown`                                           | The parsed SearXNG JSON body. Mutable (used when `format` is `raw`).    | [batteries/tools/searxng/index.ts:100](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L100) |
|  `request`   | `readonly` | [`SearxngRequestContext`](SearxngRequestContext.md) | The request context as it was sent (post-input-pipeline).               | [batteries/tools/searxng/index.ts:98](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L98)   |
|  `results`   | `public`   | [`SearxngResult`](SearxngResult.md)\[]               | The normalised result list. Mutable — filter, redact, or re-rank.       | [batteries/tools/searxng/index.ts:102](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L102) |
|  `stash`       | `readonly` | `Map`<`string`, `unknown`>                        | Cross-stage scratch space; carried over from the request context.       | [batteries/tools/searxng/index.ts:108](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L108) |
|  `toolName` | `readonly` | `string`                                            | The tool's name (read-only).                                            | [batteries/tools/searxng/index.ts:96](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/tools/searxng/index.ts#L96)   |
