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

Method chat

src/agent/LLMManager.ts:137–144  ·  view source on GitHub ↗

* 基础聊天

(message: string)

Source from the content-addressed store, hash-verified

135 * 基础聊天
136 */
137 public async chat(message: string): Promise<string> {
138 this.ensureLLMAvailable();
139
140 this.log(`发送消息: ${message.substring(0, 50)}...`);
141 const response = await this.llm!.sendMessage(message);
142 this.log(`收到回复: ${response.substring(0, 50)}...`);
143 return response;
144 }
145
146 /**
147 * 多轮对话

Callers 7

generateCodeMethod · 0.95
summarizeMethod · 0.95
reviewCodeMethod · 0.95
analyzeSentimentMethod · 0.95
askMethod · 0.95
demonstrateLLMManagerFunction · 0.95
streamChatMethod · 0.45

Calls 2

ensureLLMAvailableMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected