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

Method getFormattedContext

src/agent/ContextComponent.ts:266–273  ·  view source on GitHub ↗

* 获取格式化的上下文

(filterOptions?: ContextFilter)

Source from the content-addressed store, hash-verified

264 * 获取格式化的上下文
265 */
266 public async getFormattedContext(filterOptions?: ContextFilter): Promise<{
267 context: ContextData;
268 compressed?: CompressedContext;
269 tokenCount: number;
270 }> {
271 this.ensureReady();
272 return await this.contextManager!.getFormattedContext(filterOptions);
273 }
274
275 /**
276 * 获取上下文为Prompt字符串

Callers 2

getContextForPromptMethod · 0.95

Calls 1

ensureReadyMethod · 0.95

Tested by

no test coverage detected