Skip to content
1 min read · 222 words

Interface: SearxngResponseContext

Defined in: src/batteries/tools/searxng/index.ts:110

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