Skip to Content

classifyStockPrice

classifyStockPrice(prompt: string, options: StockPriceClassifierOptions): Promise<StockPriceClassification>

Defined in: src/lib/chat/stockPriceClassifier.ts:46 

Classify whether a prompt needs stock/ETF/index/FX price data.

Domain: traditional financial instruments (equities, indices, ETFs, FX). Crypto is handled by classifyCryptoPrice. Ambiguous prompts (e.g. “gold price”) may fire both — that’s expected; the caller can inject both sets of results.

Parameters

ParameterType

prompt

string

options

StockPriceClassifierOptions

Returns

Promise<StockPriceClassification>

Last updated on