* 获取格式化的上下文
(filterOptions?: ContextFilter)
| 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字符串 |
no test coverage detected