diff --git a/src/core/tools/askFollowupQuestionTool.ts b/src/core/tools/askFollowupQuestionTool.ts index 93e6b120e9..43ad48f8e2 100644 --- a/src/core/tools/askFollowupQuestionTool.ts +++ b/src/core/tools/askFollowupQuestionTool.ts @@ -36,11 +36,8 @@ export async function askFollowupQuestionTool( if (follow_up) { // Define the actual structure returned by the XML parser for both formats type ParsedSuggestion = -type ParsedSuggestion = - | string // For backward compatibility with old format - | { "#text": string; "@_mode"?: string } // Old attribute format - | { content: string; mode?: string } // New nested element format - | { "#text": string; "@_mode"?: string } // For backward compatibility with old attribute format + | string // For backward compatibility with old format + | { "#text": string; "@_mode"?: string } // Old attribute format | { content: string; mode?: string } // New nested element format | { [key: string]: any } // Fallback for unexpected structures