contaigents
Version:
Modular AI Content Ecosystem with Audio Generation
41 lines (40 loc) • 1.51 kB
JavaScript
/**
* Test Agent Instructions
*
* This script shows what instructions the agent will see for image generation
*/
import { ToolManager } from '../services/tools/ToolManager.js';
async function testAgentInstructions() {
console.log('🤖 Testing Agent Instructions for Image Generation');
console.log('='.repeat(60));
const toolManager = new ToolManager();
const instructions = toolManager.generateToolInstructions();
console.log('📋 Full Tool Instructions that the Agent will see:');
console.log('-'.repeat(60));
console.log(instructions);
console.log('-'.repeat(60));
// Check if our guidance is included
if (instructions.includes('IMAGE GENERATION BEST PRACTICES')) {
console.log('✅ Image generation guidance is included in agent instructions');
}
else {
console.log('❌ Image generation guidance is missing');
}
if (instructions.includes('PROMPT ENHANCEMENT REQUIREMENTS')) {
console.log('✅ Prompt enhancement requirements are included');
}
else {
console.log('❌ Prompt enhancement requirements are missing');
}
if (instructions.includes('DETAILED, creative text prompt')) {
console.log('✅ Enhanced prompt parameter description is included');
}
else {
console.log('❌ Enhanced prompt parameter description is missing');
}
}
// Run if called directly
if (import.meta.url === `file://${process.argv[1]}`) {
testAgentInstructions();
}