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

Method getContextStats

src/agent/Agent.ts:809–820  ·  view source on GitHub ↗

* 获取上下文统计信息

()

Source from the content-addressed store, hash-verified

807 * 获取上下文统计信息
808 */
809 public async getContextStats(): Promise<{
810 currentSession: string | null;
811 memory: any;
812 cache: any;
813 storage: any;
814 } | null> {
815 const contextComponent = this.getContextComponent();
816 if (!contextComponent) {
817 return null;
818 }
819 return await contextComponent.getStats();
820 }
821
822 // ======================== 工具管理协调方法 ========================
823

Callers 2

agentWithContextExampleFunction · 0.95
startInteractiveChatFunction · 0.80

Calls 2

getContextComponentMethod · 0.95
getStatsMethod · 0.45

Tested by

no test coverage detected