-- Seed Test Data for Frontend Integration -- Date: 2025-10-26 -- Purpose: Create 5 sample agents for frontend testing -- Enum Reference: -- AgentType: CodeGenerator=0, CodeReviewer=1, Debugger=2, Documenter=3, Custom=4 -- AgentStatus: Active=0, Inactive=1, Error=2 -- ModelProviderType: CloudApi=0, LocalEndpoint=1, Custom=2 -- Insert 5 sample agents with different configurations INSERT INTO "Agents" ( "Id", "Name", "Description", "Type", "ModelProvider", "ModelName", "ProviderType", "ModelEndpoint", "ApiKeyEncrypted", "Temperature", "MaxTokens", "SystemPrompt", "EnableMemory", "ConversationWindowSize", "Status", "IsDeleted", "CreatedAt", "UpdatedAt" ) VALUES -- Agent 1: Local Ollama Phi (Code Generator - Active) (gen_random_uuid(), 'Code Generator - Phi', 'Local AI using Ollama Phi for code generation', 0, 'ollama', 'phi', 1, 'http://localhost:11434', NULL, 0.7, 4000, 'You are a helpful AI coding assistant specializing in code generation.', true, 10, 0, false, NOW(), NOW()), -- Agent 2: OpenAI GPT-4 (Code Reviewer - Inactive) (gen_random_uuid(), 'Code Reviewer - GPT-4', 'Cloud-based OpenAI GPT-4 for code review', 1, 'openai', 'gpt-4', 0, NULL, 'encrypted-api-key-placeholder', 0.3, 8000, 'You are an expert code reviewer. Analyze code for bugs, performance issues, and best practices.', true, 20, 1, false, NOW(), NOW()), -- Agent 3: Anthropic Claude (Debugger - Active) (gen_random_uuid(), 'Debugger - Claude 3.5', 'Anthropic Claude 3.5 Sonnet for debugging', 2, 'anthropic', 'claude-3.5-sonnet', 0, NULL, 'encrypted-api-key-placeholder', 0.5, 6000, 'You are a debugging expert. Help identify and fix bugs in code.', true, 15, 0, false, NOW(), NOW()), -- Agent 4: Local Phi (Documenter - Active) (gen_random_uuid(), 'Documenter - Phi', 'Local documentation generation assistant', 3, 'ollama', 'phi', 1, 'http://localhost:11434', NULL, 0.8, 4000, 'You generate clear, comprehensive documentation for code and APIs.', false, 5, 0, false, NOW(), NOW()), -- Agent 5: Custom Assistant (Error state for testing) (gen_random_uuid(), 'Custom Assistant', 'General purpose AI assistant', 4, 'ollama', 'phi', 1, 'http://localhost:11434', NULL, 0.7, 4000, 'You are a helpful AI assistant.', true, 10, 2, false, NOW(), NOW()); -- Verify insertion SELECT "Name", "Type", "Status", "ProviderType", "ModelProvider" || '/' || "ModelName" AS "Model" FROM "Agents" WHERE "IsDeleted" = false ORDER BY "CreatedAt" DESC;