createCryptoPricePreProcessor
createCryptoPricePreProcessor(
options:CryptoPricePreProcessorOptions):PromptPreProcessor
Defined in: src/lib/chat/cryptoPriceClassifier.ts:105
Build a pre-processor that runs crypto-price classification on the shared
embedding provided by runToolLoop, and — if the classifier decides the
prompt is asking for prices — invokes the caller-supplied
fetchCryptoPriceData and injects the result into the conversation.
Domain: crypto only. For stocks/ETFs/FX use createStockPricePreProcessor.
The SDK does not run the price lookup itself; the caller wires up
whichever provider they want (CoinGecko, DexScreener, an on-chain
oracle, etc.).
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Last updated on