Function: scrapperArticleToRetrievable()
ts
function scrapperArticleToRetrievable(
article: ScrapperArticleLike,
opts?: ArticleToRetrievableOptions,
recommend?: ArtifactRecommendations,
): RawRetrievable;Defined in: batteries/tools/web_retrieval/index.ts:217
Convert a Scrapper normalised article into a single @nhtio/adk!RawRetrievable.
Parameters
| Parameter | Type | Description |
|---|---|---|
article | ScrapperArticleLike | The Scrapper normalised article. |
opts | ArticleToRetrievableOptions | Trust tier, kind, id prefix, content source, markdown flag, optional spool hook. |
recommend | ArtifactRecommendations | Optional artifact-resolver recommendations. |
Returns
A single RawRetrievable.
Remarks
Long article text is exactly what a reader-backed @nhtio/adk!SpooledArtifact is for: pass a spool hook and the converter offers it the recommended artifact resolver (markdown when asMarkdown, else text/HTML) so the model gets the right forged query tools. Without a hook, content stays inline.