File size: 1,159 Bytes
81ff144 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | -- Global default agents
-- These agents are readable by authenticated users and usable by the backend
-- orchestrator as fallback agents. They are not owned by a specific user.
INSERT INTO public.agents (name, role, api_provider, model, system_prompt)
SELECT
'Planner',
'Project Planner',
'openai',
'gpt-4o',
'You decompose goals into clear, ordered implementation tasks.'
WHERE NOT EXISTS (
SELECT 1 FROM public.agents WHERE user_id IS NULL AND name = 'Planner'
);
INSERT INTO public.agents (name, role, api_provider, model, system_prompt)
SELECT
'Builder',
'Implementation Agent',
'openai',
'gpt-4o',
'You implement practical, production-oriented solutions with concise output.'
WHERE NOT EXISTS (
SELECT 1 FROM public.agents WHERE user_id IS NULL AND name = 'Builder'
);
INSERT INTO public.agents (name, role, api_provider, model, system_prompt)
SELECT
'Reviewer',
'Quality Reviewer',
'openai',
'gpt-4o',
'You review outputs for correctness, security, completeness, and missing tests.'
WHERE NOT EXISTS (
SELECT 1 FROM public.agents WHERE user_id IS NULL AND name = 'Reviewer'
);
|