UNPKG

@visactor/vmind

Version:

<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu

17 lines (16 loc) 656 B
import type { BaseContext } from '../types/atom'; import type { AtomName } from '../types/atom'; import type { LLMResponse, ToolMessage } from '../types/llm'; import { type ILLMOptions, type LLMMessage } from '../types/llm'; export declare class LLMManage { options: ILLMOptions; historys: Record<string, BaseContext[]>; constructor(options: ILLMOptions); getDefaultOptions(): ILLMOptions; updateOptions(options: ILLMOptions): void; run(name: AtomName, messages: LLMMessage[], tools?: ToolMessage[]): Promise<LLMResponse | { error: any; }>; parseTools(res: LLMResponse): any; parseJson(res: LLMResponse): any; }