UNPKG

koishi-plugin-satori-ai

Version:

基于 Satori 适配器的智能对话插件,具备用户画像、长期记忆、常识管理和好感度系统

15 lines (14 loc) 584 B
import { Context, Session } from 'koishi'; import { Sat } from './types'; export declare class WeatherManager { private ctx; private config; private lastFetchTime; private weatherCache; constructor(ctx: Context, config: Sat.Config, lastFetchTime?: Map<string, number>, weatherCache?: Map<string, string>); private generateJWT; private fetchJson; updateLocation(session: Session, location: string): Promise<string | void>; getWeatherInfo(session: Session): Promise<string | null>; buildWeatherPrompt(session: Session): Promise<string | null>; }