Skip to content

Commit 75945f8

Browse files
hannesrudolphMerge Resolver
authored andcommitted
fix: resolve TypeScript compilation error in askFollowupQuestionTool
- Removed duplicate type definition that was causing syntax errors - Fixed lines 38-42 to have proper TypeScript union type syntax - All tests now passing (260 test files, 3384 tests)
1 parent d776306 commit 75945f8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/core/tools/askFollowupQuestionTool.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ 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-
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
43-
| { "#text": string; "@_mode"?: string } // For backward compatibility with old attribute format
39+
| string // For backward compatibility with old format
40+
| { "#text": string; "@_mode"?: string } // Old attribute format
4441
| { content: string; mode?: string } // New nested element format
4542
| { [key: string]: any } // Fallback for unexpected structures
4643

0 commit comments

Comments
 (0)