MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getFunctionResultClearingSection

Function getFunctionResultClearingSection

src/constants/prompts.ts:821–839  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

819}
820
821function 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
838Old tool results will be automatically cleared from context to free up space. The ${config.keepRecent} most recent results are always kept.`
839}
840
841const 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

Callers 1

getSystemPromptFunction · 0.85

Calls 1

featureFunction · 0.85

Tested by

no test coverage detected