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

Method loadContextSession

src/agent/Agent.ts:629–635  ·  view source on GitHub ↗

* 加载现有的上下文会话

(sessionId: string)

Source from the content-addressed store, hash-verified

627 * 加载现有的上下文会话
628 */
629 public async loadContextSession(sessionId: string): Promise<boolean> {
630 const contextComponent = this.getContextComponent();
631 if (!contextComponent) {
632 throw new Error('上下文组件未启用');
633 }
634 return await contextComponent.loadSession(sessionId);
635 }
636
637 /**
638 * 获取当前上下文会话ID

Callers 2

agentLlmCommandFunction · 0.95
agentWithContextExampleFunction · 0.95

Calls 2

getContextComponentMethod · 0.95
loadSessionMethod · 0.45

Tested by

no test coverage detected