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

Method addAssistantMessage

src/agent/ContextComponent.ts:221–225  ·  view source on GitHub ↗

* 添加助手消息

(content: string, metadata?: Record<string, any>)

Source from the content-addressed store, hash-verified

219 * 添加助手消息
220 */
221 public async addAssistantMessage(content: string, metadata?: Record<string, any>): Promise<void> {
222 this.ensureReady();
223 await this.contextManager!.addMessage('assistant', content, metadata);
224 this.log(`添加助手消息: ${content.substring(0, 50)}...`);
225 }
226
227 /**
228 * 添加系统消息

Callers 2

chatWithContextMethod · 0.80
smartChatWithContextMethod · 0.80

Calls 3

ensureReadyMethod · 0.95
logMethod · 0.95
addMessageMethod · 0.45

Tested by

no test coverage detected