File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ export async function askFollowupQuestionTool(
3636 if ( follow_up ) {
3737 // Define the actual structure returned by the XML parser for both formats
3838 type ParsedSuggestion =
39- | string // For backward compatibility with old format or when stopNodes is used
39+ type ParsedSuggestion =
40+ | string // For backward compatibility with old format
41+ | { "#text" : string ; "@_mode" ?: string } // Old attribute format
42+ | { content: string ; mode?: string } // New nested element format
4043 | { "#text" : string ; "@_mode" ?: string } // For backward compatibility with old attribute format
4144 | { content: string ; mode?: string } // New nested element format
4245 | { [ key : string ] : any } // Fallback for unexpected structures
You can’t perform that action at this time.
0 commit comments