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

Method generateCode

src/agent/LLMManager.ts:196–199  ·  view source on GitHub ↗

* 代码生成

(description: string, language: string = 'javascript')

Source from the content-addressed store, hash-verified

194 * 代码生成
195 */
196 public async generateCode(description: string, language: string = 'javascript'): Promise<string> {
197 const prompt = `请用 ${language} 语言生成代码,要求:${description}。只返回代码,不要解释。`;
198 return await this.chat(prompt);
199 }
200
201 /**
202 * 文本摘要

Callers

nothing calls this directly

Calls 1

chatMethod · 0.95

Tested by

no test coverage detected