Interface: ScrapperResponseContext<R>
Defined in: src/batteries/tools/scrapper/shared.ts:147
Mutable context handed to each output-pipeline stage after the response JSON is parsed.
Type Parameters
| Type Parameter | Description |
|---|---|
R | The verb's normalised result type (article object or links payload). |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
format | public | "raw" | "normalized" | The effective payload shape for this call. | src/batteries/tools/scrapper/shared.ts:157 |
output? | public | string | When set, used verbatim as the tool's output (overrides serialisation). | src/batteries/tools/scrapper/shared.ts:159 |
raw | public | unknown | The parsed Scrapper JSON body. Mutable (used when format is raw). | src/batteries/tools/scrapper/shared.ts:153 |
request | readonly | ScrapperRequestContext | The request context as it was sent (post-input-pipeline). | src/batteries/tools/scrapper/shared.ts:151 |
result | public | R | The normalised result. Mutable — reshape, redact, enrich. | src/batteries/tools/scrapper/shared.ts:155 |
stash | readonly | Map<string, unknown> | Cross-stage scratch space; carried over from the request context. | src/batteries/tools/scrapper/shared.ts:161 |
toolName | readonly | string | The tool's name (read-only). | src/batteries/tools/scrapper/shared.ts:149 |