|
1 | 1 | /** |
2 | | - * Redis AI Agent Builder JavaScript |
| 2 | + * AI Agent Builder JavaScript |
3 | 3 | * Handles chat interface and code generation |
4 | 4 | */ |
5 | 5 |
|
|
410 | 410 |
|
411 | 411 | // Handle special responses from coming soon message |
412 | 412 | if (input === 'wait') { |
413 | | - addMessage('Thanks for checking out the Redis AI Agent Builder. Come back when your preferred language is supported!', 'bot'); |
| 413 | + addMessage('Thanks for checking out the AI Agent Builder. Come back when your preferred language is supported!', 'bot'); |
414 | 414 | return; |
415 | 415 | } |
416 | 416 |
|
|
480 | 480 | const config = CONFIG.models[selectedModel]; |
481 | 481 |
|
482 | 482 | addMessage(`Perfect! ${config.description}`, 'bot'); |
483 | | - addMessage('🎉 I have everything I need! Generating your Redis AI agent code...', 'bot'); |
| 483 | + addMessage('🎉 I have everything I need! Generating your AI agent code...', 'bot'); |
484 | 484 |
|
485 | 485 | // Generate code |
486 | 486 | setTimeout(() => { |
|
498 | 498 | function generateAndDisplayCode() { |
499 | 499 | const code = generateAgentCode(conversationState.selections); |
500 | 500 |
|
501 | | - addMessage('✅ Your Redis AI agent code is ready! You can copy or download it below.', 'bot'); |
| 501 | + addMessage('✅ Your AI agent code is ready! You can copy or download it below.', 'bot'); |
502 | 502 |
|
503 | 503 | // Show code section |
504 | 504 | displayGeneratedCode(code, conversationState.selections); |
|
560 | 560 | } |
561 | 561 |
|
562 | 562 | function getGenericPythonCode(formData) { |
563 | | - return `# ${formData.agentName} - Redis AI Agent |
| 563 | + return `# ${formData.agentName} - AI Agent |
564 | 564 | # Generated for ${CONFIG.agentTypes[formData.agentType].description} |
565 | 565 |
|
566 | 566 | import redis |
@@ -597,7 +597,7 @@ if __name__ == "__main__": |
597 | 597 | } |
598 | 598 |
|
599 | 599 | function getGenericJavaScriptCode(formData) { |
600 | | - return `// ${formData.agentName} - Redis AI Agent |
| 600 | + return `// ${formData.agentName} - AI Agent |
601 | 601 | // Generated for ${CONFIG.agentTypes[formData.agentType].description} |
602 | 602 |
|
603 | 603 | const redis = require('redis'); |
@@ -640,7 +640,7 @@ module.exports = ${formData.agentName.replace(/\s+/g, '')};`; |
640 | 640 | } |
641 | 641 |
|
642 | 642 | function getGenericJavaCode(formData) { |
643 | | - return `// ${formData.agentName} - Redis AI Agent |
| 643 | + return `// ${formData.agentName} - AI Agent |
644 | 644 | // Generated for ${CONFIG.agentTypes[formData.agentType].description} |
645 | 645 |
|
646 | 646 | import redis.clients.jedis.Jedis; |
@@ -680,7 +680,7 @@ public class ${formData.agentName.replace(/\s+/g, '')} { |
680 | 680 | } |
681 | 681 |
|
682 | 682 | function getGenericCSharpCode(formData) { |
683 | | - return `// ${formData.agentName} - Redis AI Agent |
| 683 | + return `// ${formData.agentName} - AI Agent |
684 | 684 | // Generated for ${CONFIG.agentTypes[formData.agentType].description} |
685 | 685 |
|
686 | 686 | using StackExchange.Redis; |
|
0 commit comments