@@ -79,20 +79,22 @@ const main = async () => {
7979 /**
8080 * Task function for providing medical info prompt
8181 */
82- const medicalTaskProvideInfo : ExperimentTaskFunction = async ( row : TaskInput ) : Promise < TaskOutput > => {
82+ const medicalTaskProvideInfo : ExperimentTaskFunction = async (
83+ row : TaskInput ,
84+ ) : Promise < TaskOutput > => {
8385 const promptText = provideMedicalInfoPrompt ( row . question as string ) ;
8486 const answer = await generateMedicalAnswer ( promptText ) ;
8587
8688 return {
8789 completion : answer ,
8890 prompt : promptText ,
89- strategy : "provide_info"
91+ strategy : "provide_info" ,
9092 } ;
9193 } ;
9294
9395 // Simple loader utility
9496 const startLoader = ( message : string ) => {
95- const frames = [ '⠋' , '⠙' , '⠹' , '⠸' , '⠼' , '⠴' , '⠦' , '⠧' , '⠇' , '⠏' ] ;
97+ const frames = [ "⠋" , "⠙" , "⠹" , "⠸" , "⠼" , "⠴" , "⠦" , "⠧" , "⠇" , "⠏" ] ;
9698 let i = 0 ;
9799 process . stdout . write ( `\n${ message } ` ) ;
98100 return setInterval ( ( ) => {
@@ -142,14 +144,13 @@ const main = async () => {
142144 stopOnError : false ,
143145 waitForResults : true ,
144146 } ) ;
145-
147+
146148 stopLoader ( loader2 , " ✅ Experiment completed" ) ;
147149
148150 console . log ( `✅ Completed provide info experiment:` ) ;
149151 console . log ( ` - Results: ${ results2 . taskResults . length } ` ) ;
150152 console . log ( ` - Errors: ${ results2 . errors . length } ` ) ;
151153 console . log ( ` - Experiment ID: ${ results2 . experimentId } ` ) ;
152-
153154 } catch ( error ) {
154155 console . error (
155156 "❌ Error in experiment operations:" ,
0 commit comments