import { BaseMessage } from '@langchain/core/messages'; import { AgentGraphLLMResponse, AgentGraphModel, StreamChunkCallback } from '../model/AgentGraphModel'; import { CreateAgentOptions } from '../types/type'; export declare class LLMModel extends AgentGraphModel { private options; constructor(options: CreateAgentOptions); callApi(prompt: string): Promise; /** * 流式调用 API:发送 stream: true,自动适配多种响应格式(SSE / NDJSON / 普通 JSON)。 */ /** * 流式调用 API:发送 stream: true * 适配 SSE 格式,解析内容增量、思考过程以及最终的 Token 统计 */ callApiStream(prompt: string, lastMsg: BaseMessage, onChunk: StreamChunkCallback): Promise; }