API: extraction/learn

better-web-search-mcp


better-web-search-mcp / extraction/learn

extraction/learn#

Functions#

recordApiPatterns()#

recordApiPatterns(url, captured, cache): void

Defined in: src/extraction/learn.ts:59

Record discovered API patterns for a domain after a browser render.

Parameters#

ParameterType
urlstring
capturedreadonly CapturedApiResponse[]
cacheCache | undefined

Returns#

void


toBestMethod()#

toBestMethod(method): BestMethod

Defined in: src/extraction/learn.ts:21

Map a router method to the domain-profile best_method value.

Parameters#

ParameterType
methodRouterMethod

Returns#

BestMethod


updateDomainProfile()#

updateDomainProfile(url, html, method, cache): void

Defined in: src/extraction/learn.ts:34

Update the domain profile after a successful extraction.

Parameters#

ParameterType
urlstring
htmlstring
methodRouterMethod
cacheCache | undefined

Returns#

void