MCPcopy Create free account
hub / github.com/echoVic/blade-code / streamChat

Method streamChat

src/agent/Agent.ts:211–216  ·  view source on GitHub ↗

* 流式聊天

(
    messages: LLMMessage[],
    onChunk: (chunk: string) => void
  )

Source from the content-addressed store, hash-verified

209 * 流式聊天
210 */
211 public async streamChat(
212 messages: LLMMessage[],
213 onChunk: (chunk: string) => void
214 ): Promise<string> {
215 return await this.llmManager.streamChat(messages, onChunk);
216 }
217
218 /**
219 * 系统提示词聊天

Callers 4

startBasicAssistantFunction · 0.95
answerSingleQuestionFunction · 0.45
startInteractiveChatFunction · 0.45
startChatLoopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected