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

Method addSystemMessage

src/agent/ContextComponent.ts:230–234  ·  view source on GitHub ↗

* 添加系统消息

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

Source from the content-addressed store, hash-verified

228 * 添加系统消息
229 */
230 public async addSystemMessage(content: string, metadata?: Record<string, any>): Promise<void> {
231 this.ensureReady();
232 await this.contextManager!.addMessage('system', content, metadata);
233 this.log(`添加系统消息: ${content.substring(0, 50)}...`);
234 }
235
236 /**
237 * 添加工具调用记录

Callers

nothing calls this directly

Calls 3

ensureReadyMethod · 0.95
logMethod · 0.95
addMessageMethod · 0.45

Tested by

no test coverage detected