UI of agents

This commit is contained in:
Eng. Elias
2024-02-12 22:26:08 +04:00
parent 8cec2ba613
commit b1ff70007d
9 changed files with 778 additions and 211 deletions

54
src/data/data.ts Normal file
View File

@@ -0,0 +1,54 @@
import { Agent } from "@/types/agent";
export const agents: Array<Agent> = [
{
role: "Senior Software Engineer",
goal: "Create software as needed",
backstory: `
You are a Senior Software Engineer at a leading tech think tank.
Your expertise in programming in python. and do your best to
produce perfect code
`,
tools: ["tool1", "tool2"],
allowDelegation: false,
verbose: true,
image:
"https://cdn.pixabay.com/photo/2021/08/04/13/06/software-developer-6521720_1280.jpg",
},
{
role: "Software Quality Control Engineer",
goal: "create prefect code, by analizing the code that is given for errors",
backstory: `
You are a software engineer that specializes in checking code for errors.
You have an eye for detail and a knack for finding hidden bugs.
You check for missing imports, variable declarations, mismatched brackets and syntax errors.
You also check for security vulnerabilities, and logic errors.
`,
tools: [],
allowDelegation: false,
verbose: true,
image:
"https://cdn.pixabay.com/photo/2021/08/04/13/06/software-developer-6521720_1280.jpg",
},
{
role: "Chief Software Quality Control Engineer",
goal: "Ensure that the code does the job that it is supposed to do",
backstory: `
You feel that programmers always do only half the job, so you are
super dedicate to make high quality code.
`,
tools: [],
allowDelegation: false,
verbose: true,
image:
"https://cdn.pixabay.com/photo/2021/08/04/13/06/software-developer-6521720_1280.jpg",
},
];
export const tools = [
{ text: "tool1", value: "tool1" },
{ text: "tool2", value: "tool2" },
{ text: "tool3", value: "tool3" },
{ text: "tool4", value: "tool4" },
{ text: "tool5", value: "tool5" },
];