Skip to content

Commit d776306

Browse files
hannesrudolphroomote[bot]
authored andcommitted
Update src/core/tools/askFollowupQuestionTool.ts
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent 0d2e8d3 commit d776306

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/tools/askFollowupQuestionTool.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)