Skip to content
1 min read · 193 words

Interface: ArticleToRetrievableOptions

Defined in: batteries/tools/web_retrieval/index.ts:193

Options for scrapperArticleToRetrievable.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
asMarkdown?booleanWhether the chosen content is markdown (recommend markdown) rather than plain text. Default false. Use when an output pipeline rendered the article to markdown.-batteries/tools/web_retrieval/index.ts:200
contentSource?ArticleContentSourceWhich field to use as content (default 'textContent'). 'content' is HTML.-batteries/tools/web_retrieval/index.ts:195
idPrefix?stringPrefix for the stable, hashed record id (namespacing across sources).ToRetrievableOptions.idPrefixbatteries/tools/web_retrieval/index.ts:62
kind?stringSemantic kind label, e.g. 'web-search-result', 'web-article', 'web-links'.ToRetrievableOptions.kindbatteries/tools/web_retrieval/index.ts:60
spool?SpoolHookOptional reader-backed-artifact hook for large content. See SpoolHook.ToRetrievableOptions.spoolbatteries/tools/web_retrieval/index.ts:64
trustTier?RetrievableTrustTierTrust tier for the produced records. Default 'third-party-public' (web content is third-party by definition — this is a constant, not URL inference).ToRetrievableOptions.trustTierbatteries/tools/web_retrieval/index.ts:58