PredictivePreFetcher
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PredictivePreFetcher(config): PredictivePreFetcher;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”PredictivePreFetcher
Methods
Section titled “Methods”prefetch()
Section titled “prefetch()”prefetch(messages): Promise<{ keywords: string[]; resultCount: number;}>;Predict follow-up topics from the conversation and pre-fetch relevant content into the cache. Runs in the background — the returned promise can be fire-and-forget.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Recent conversation messages (role + content pairs). |
Returns
Section titled “Returns”Promise<{
keywords: string[];
resultCount: number;
}>
Keywords that were used for pre-fetching.