@@ -384,69 +384,69 @@ export const tokenLaunchEvaluator: Evaluator = {
384
384
console . log ( "[Evaluator Response Check]" , significantProgressMade , isReadyToLaunch , lastAction , lastActionWasComponentUpdate )
385
385
if ( ( significantProgressMade && isReadyToLaunch ) ) {
386
386
387
- console . log ( "[tokenLaunchEvaluator] Significant progress detected, generating response" ) ;
387
+ console . log ( "[tokenLaunchEvaluator] Significant progress detected, check if response needed " ) ;
388
388
389
- let responseContext ;
389
+ // let responseContext;
390
390
391
- if ( isReadyToLaunch ) {
392
- responseContext = composeContext ( {
393
- state : {
394
- ...state ,
395
- tokenDetails : updatedLaunchDetails
396
- } ,
397
- template : `
398
- You are a friendly token launch assistant.
399
- All requirements for the token launch have been met! Generate a message that:
400
- 1. Shows excitement that the launch is ready to proceed
401
- 2. Summarizes the key details of the token:
402
- - Name: ${ updatedLaunchDetails . name }
403
- - Ticker: ${ updatedLaunchDetails . ticker } }
404
- - Chain: ${ updatedLaunchDetails . chain }
405
- - Fee Share: ${ updatedLaunchDetails . feeShare } %
406
- - Receiver: ${ updatedLaunchDetails . receiver . ensName ? updatedLaunchDetails . receiver . ensName + `(${ updatedLaunchDetails . receiver . address } )` : updatedLaunchDetails . receiver . address }
407
- 3. Keeps response under 280 characters, so truncated and summarize the data above as necessary.
408
- 3. Asks the user to type "FLAUNCH IT" to confirm and launch the token
391
+ // if (isReadyToLaunch) {
392
+ // responseContext = composeContext({
393
+ // state: {
394
+ // ...state,
395
+ // tokenDetails: updatedLaunchDetails
396
+ // },
397
+ // template: `
398
+ // You are a friendly token launch assistant.
399
+ // All requirements for the token launch have been met! Generate a message that:
400
+ // 1. Shows excitement that the launch is ready to proceed
401
+ // 2. Summarizes the key details of the token:
402
+ // - Name: ${updatedLaunchDetails.name}
403
+ // - Ticker: ${updatedLaunchDetails.ticker}}
404
+ // - Chain: ${updatedLaunchDetails.chain}
405
+ // - Fee Share: ${updatedLaunchDetails.feeShare}%
406
+ // - Receiver: ${updatedLaunchDetails.receiver.ensName ? updatedLaunchDetails.receiver.ensName + `(${updatedLaunchDetails.receiver.address})` : updatedLaunchDetails.receiver.address}
407
+ // 3. Keeps response under 280 characters, so truncated and summarize the data above as necessary.
408
+ // 3. Asks the user to type "FLAUNCH IT" to confirm and launch the token
409
409
410
- Keep it concise, friendly, and in your character's voice. Be casual and excited!
411
- ` ,
412
- templatingEngine : "handlebars"
413
- } ) ;
414
- } else {
415
- // Get the missing fields
416
- const missingFields = requiredFields
417
- . filter ( field => ! isFieldComplete ( field , updatedLaunchDetails [ field ] ) )
418
- . map ( field => field === 'imageUri' ? 'image' : field ) ;
410
+ // Keep it concise, friendly, and in your character's voice. Be casual and excited!
411
+ // `,
412
+ // templatingEngine: "handlebars"
413
+ // });
414
+ // } else {
415
+ // // Get the missing fields
416
+ // const missingFields = requiredFields
417
+ // .filter(field => !isFieldComplete(field, updatedLaunchDetails[field]))
418
+ // .map(field => field === 'imageUri' ? 'image' : field);
419
419
420
- responseContext = composeContext ( {
421
- state : {
422
- ...state ,
423
- tokenDetails : updatedLaunchDetails ,
424
- missingFields : missingFields . join ( ', ' )
425
- } ,
426
- template : `
427
- You are a friendly token launch assistant.
428
- Create a brief message that:
429
- 1. Acknowledges the progress made so far on the token launch
430
- 2. Mentions what information has been received successfully
431
- 3. CLEARLY states what is still needed to complete the launch: {{missingFields}}
420
+ // responseContext = composeContext({
421
+ // state: {
422
+ // ...state,
423
+ // tokenDetails: updatedLaunchDetails,
424
+ // missingFields: missingFields.join(', ')
425
+ // },
426
+ // template: `
427
+ // You are a friendly token launch assistant.
428
+ // Create a brief message that:
429
+ // 1. Acknowledges the progress made so far on the token launch
430
+ // 2. Mentions what information has been received successfully
431
+ // 3. CLEARLY states what is still needed to complete the launch: {{missingFields}}
432
432
433
- Keep it concise, friendly, and in your character's voice.
434
- ` ,
435
- templatingEngine : "handlebars"
436
- } ) ;
437
- }
433
+ // Keep it concise, friendly, and in your character's voice.
434
+ // `,
435
+ // templatingEngine: "handlebars"
436
+ // });
437
+ // }
438
438
439
- const responseText = await generateMessageResponse ( {
440
- runtime,
441
- context : responseContext ,
442
- modelClass : ModelClass . LARGE
443
- } ) ;
444
- console . log ( "[Evaluator Response]" )
445
- await callback ( {
446
- text : responseText . text ,
447
- action : isReadyToLaunch ? "LAUNCH_READY" : "LAUNCH_PROGRESS_UPDATE" ,
448
- inReplyTo : message . content . inReplyTo || null
449
- } ) ;
439
+ // const responseText = await generateMessageResponse({
440
+ // runtime,
441
+ // context: responseContext,
442
+ // modelClass: ModelClass.LARGE
443
+ // });
444
+ // console.log("[Evaluator Response]:\n", responseText.text )
445
+ // await callback({
446
+ // text: responseText.text,
447
+ // action: isReadyToLaunch ? "LAUNCH_READY" : "LAUNCH_PROGRESS_UPDATE",
448
+ // inReplyTo: message.content.inReplyTo || null
449
+ // });
450
450
}
451
451
} ,
452
452
examples : [
0 commit comments