You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gui): improve agent creation with AI-assisted function calling
- AI-assisted mode: Uses completions API with function calling to generate
complete agent config (name, description, tools, model, prompt)
- Manual mode: Removed permission mode selector, focusing on agent
description and tool selection
- Added optimized system prompt for generating autonomous agents
- Agents no longer include tools requiring user interaction/ask
// Function definition for agent generation via OpenAI-style function calling
20
+
constAGENT_GENERATION_FUNCTION={
21
+
name: "generate_agent_config",
22
+
description: "Generate a complete agent configuration based on the user's description",
23
+
parameters: {
24
+
type: "object",
25
+
properties: {
26
+
name: {
27
+
type: "string",
28
+
description: "A short, lowercase, hyphenated name for the agent (e.g., 'code-reviewer', 'test-writer')"
29
+
},
30
+
description: {
31
+
type: "string",
32
+
description: "A brief description of when this agent should be used and what it does"
33
+
},
34
+
tools: {
35
+
type: "array",
36
+
items: {type: "string"},
37
+
description: "List of tools the agent should have access to. Available tools: Read, Create, Edit, Glob, Grep, Execute, LS, WebSearch, FetchUrl, TodoWrite"
38
+
},
39
+
model: {
40
+
type: "string",
41
+
enum: ["inherit","sonnet","opus","haiku"],
42
+
description: "The model to use for this agent"
43
+
},
44
+
prompt: {
45
+
type: "string",
46
+
description: "The system prompt that defines this agent's behavior, expertise, and guidelines"
47
+
}
48
+
},
49
+
required: ["name","description","tools","prompt"]
50
+
}
51
+
};
52
+
16
53
interfaceAgentsManagerProps{
17
54
visible: boolean;
18
55
onClose: ()=>void;
@@ -38,13 +75,6 @@ const MODELS = [
38
75
{id: "haiku",label: "Haiku (fastest)"},
39
76
];
40
77
41
-
constPERMISSIONS=[
42
-
{id: "default",label: "Default - normal prompts"},
0 commit comments