File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,9 @@ const plugin: Plugin = (async (ctx) => {
1818 ( globalThis as any ) . AI_SDK_LOG_WARNINGS = false
1919 }
2020
21- // Initialize core components
2221 const logger = new Logger ( config . debug )
2322 const state = createSessionState ( )
2423
25- // Log initialization
2624 logger . info ( "DCP initialized" , {
2725 strategies : config . strategies ,
2826 } )
@@ -31,7 +29,7 @@ const plugin: Plugin = (async (ctx) => {
3129 "experimental.chat.system.transform" : async ( _input : unknown , output : { system : string [ ] } ) => {
3230 const discardEnabled = config . strategies . discardTool . enabled
3331 const extractEnabled = config . strategies . extractTool . enabled
34-
32+
3533 let promptName : string
3634 if ( discardEnabled && extractEnabled ) {
3735 promptName = "system/system-prompt-both"
@@ -40,9 +38,9 @@ const plugin: Plugin = (async (ctx) => {
4038 } else if ( extractEnabled ) {
4139 promptName = "system/system-prompt-extract"
4240 } else {
43- return // No context management tools enabled
41+ return
4442 }
45-
43+
4644 const syntheticPrompt = loadPrompt ( promptName )
4745 output . system . push ( syntheticPrompt )
4846 } ,
You can’t perform that action at this time.
0 commit comments