From d776306625699490cd08fb435d9e12c325891182 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Sat, 9 Aug 2025 14:14:56 -0600 Subject: [PATCH] Update src/core/tools/askFollowupQuestionTool.ts Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> --- src/core/tools/askFollowupQuestionTool.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/tools/askFollowupQuestionTool.ts b/src/core/tools/askFollowupQuestionTool.ts index b61bf1ec86..93e6b120e9 100644 --- a/src/core/tools/askFollowupQuestionTool.ts +++ b/src/core/tools/askFollowupQuestionTool.ts @@ -36,7 +36,10 @@ export async function askFollowupQuestionTool( if (follow_up) { // Define the actual structure returned by the XML parser for both formats type ParsedSuggestion = - | string // For backward compatibility with old format or when stopNodes is used +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 | { content: string; mode?: string } // New nested element format | { [key: string]: any } // Fallback for unexpected structures