API: extraction/fusion
better-web-search-mcp / extraction/fusion
extraction/fusion#
Functions#
fuseContent()#
fuseContent(
url,title,strategiesResults,metadata?):FusedContent
Defined in: src/extraction/fusion.ts:118
Fuse the results of several extraction strategies into one page extraction.
The strategy with the highest effective confidence and non-empty content becomes the primary body. Structured data and API endpoints from every strategy are merged into the returned object regardless of which strategy won the content race.
Parameters#
| Parameter | Type | Description |
|---|---|---|
url | string | The page URL the strategies were run against. |
title | string | The page title, when known. |
strategiesResults | readonly StrategyResult[] | The per-strategy extraction results. |
metadata | Record<string, string> | Page metadata (title, description, published, author, siteName) to attach to the result. |