Skip to content
1 min read · 222 words

Interface: SearxngResponseContext

Defined in: batteries/tools/searxng/index.ts:108

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

Remarks

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

Properties

PropertyModifierTypeDescriptionDefined in
formatpublic"raw" | "normalized"The effective payload shape for this call.batteries/tools/searxng/index.ts:118
output?publicstringWhen set, used verbatim as the tool's output (overrides serialisation).batteries/tools/searxng/index.ts:120
rawpublicunknownThe parsed SearXNG JSON body. Mutable (used when format is raw).batteries/tools/searxng/index.ts:114
requestreadonlySearxngRequestContextThe request context as it was sent (post-input-pipeline).batteries/tools/searxng/index.ts:112
resultspublicSearxngResult[]The normalised result list. Mutable — filter, redact, or re-rank.batteries/tools/searxng/index.ts:116
stashreadonlyMap<string, unknown>Cross-stage scratch space; carried over from the request context.batteries/tools/searxng/index.ts:122
toolNamereadonlystringThe tool's name (read-only).batteries/tools/searxng/index.ts:110