Skip to content
1 min read · 221 words

Interface: SearxngResponseContext

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

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 artifactConstructor).

Properties

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