TopicPredictor
type TopicPredictor = (messages) => Promise<string[]>;LLM-based topic predictor. Takes recent conversation messages and returns predicted follow-up queries that should be pre-fetched. When provided, this strategy runs instead of keyword extraction.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”Promise<string[]>