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

Method chatWithSystem

src/agent/LLMManager.ts:185–191  ·  view source on GitHub ↗

* 系统提示词聊天

(systemPrompt: string, userMessage: string)

Source from the content-addressed store, hash-verified

183 * 系统提示词聊天
184 */
185 public async chatWithSystem(systemPrompt: string, userMessage: string): Promise<string> {
186 const messages: LLMMessage[] = [
187 { role: 'system', content: systemPrompt },
188 { role: 'user', content: userMessage },
189 ];
190 return await this.conversation(messages);
191 }
192
193 /**
194 * 代码生成

Callers

nothing calls this directly

Calls 1

conversationMethod · 0.95

Tested by

no test coverage detected