(model: string)
| 819 | } |
| 820 | |
| 821 | function getFunctionResultClearingSection(model: string): string | null { |
| 822 | if (!feature('CACHED_MICROCOMPACT') || !getCachedMCConfigForFRC) { |
| 823 | return null |
| 824 | } |
| 825 | const config = getCachedMCConfigForFRC() |
| 826 | const isModelSupported = config.supportedModels?.some(pattern => |
| 827 | model.includes(pattern), |
| 828 | ) |
| 829 | if ( |
| 830 | !config.enabled || |
| 831 | !config.systemPromptSuggestSummaries || |
| 832 | !isModelSupported |
| 833 | ) { |
| 834 | return null |
| 835 | } |
| 836 | return `# Function Result Clearing |
| 837 | |
| 838 | Old tool results will be automatically cleared from context to free up space. The ${config.keepRecent} most recent results are always kept.` |
| 839 | } |
| 840 | |
| 841 | const SUMMARIZE_TOOL_RESULTS_SECTION = `When working with tool results, write down any important information you might need later in your response, as the original tool result may be cleared later.` |
| 842 |
no test coverage detected