Skip to Content

classifyWeather

classifyWeather(prompt: string, options: WeatherClassifierOptions): Promise<WeatherClassification>

Defined in: src/lib/chat/weatherClassifier.ts:44 

Classify whether a prompt needs weather data.

Covers forecasts, temperature, precipitation, wind, humidity, UV, AQI, marine, flood, climate — anything OpenMeteo-shaped.

Parameters

ParameterType

prompt

string

options

WeatherClassifierOptions

Returns

Promise<WeatherClassification>

Last updated on