createStockPricePreProcessor
createStockPricePreProcessor(
options:StockPricePreProcessorOptions):PromptPreProcessor
Defined in: src/lib/chat/stockPriceClassifier.ts:105
Build a pre-processor that runs stock-price classification on the shared
embedding provided by runToolLoop, and — if the classifier decides the
prompt is asking for quotes — invokes the caller-supplied
fetchStockPriceData and injects the result into the conversation.
Domain: stocks, ETFs, indices, FX. For crypto use
createCryptoPricePreProcessor. The SDK does not run the lookup itself;
the caller wires up whichever provider they want (Twelve Data, Alpha
Vantage, Finnhub, etc.).
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Last updated on