(options: Partial<ContextManagerOptions> = {})
| 5 | * 创建配置好的上下文管理器 |
| 6 | */ |
| 7 | export function createContextManager(options: Partial<ContextManagerOptions> = {}): ContextManager { |
| 8 | return new ContextManager(options); |
| 9 | } |
| 10 | |
| 11 | /** |
| 12 | * 将上下文数据格式化为适合 Prompt 的字符串 |