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

Method addUserMessage

src/agent/ContextComponent.ts:212–216  ·  view source on GitHub ↗

* 添加用户消息

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

Source from the content-addressed store, hash-verified

210 * 添加用户消息
211 */
212 public async addUserMessage(content: string, metadata?: Record<string, any>): Promise<void> {
213 this.ensureReady();
214 await this.contextManager!.addMessage('user', content, metadata);
215 this.log(`添加用户消息: ${content.substring(0, 50)}...`);
216 }
217
218 /**
219 * 添加助手消息

Callers 1

Calls 3

ensureReadyMethod · 0.95
logMethod · 0.95
addMessageMethod · 0.45

Tested by

no test coverage detected