forked from alvinunreal/oh-my-opencode-slim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdesigner.ts
More file actions
27 lines (24 loc) · 664 Bytes
/
Copy pathdesigner.ts
File metadata and controls
27 lines (24 loc) · 664 Bytes
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
import { Prompts } from '../prompts/index';
import type { AgentDefinition } from './orchestrator';
export function createDesignerAgent(
model: string,
customPrompt?: string,
customAppendPrompt?: string,
): AgentDefinition {
let prompt = Prompts.designer;
if (customPrompt) {
prompt = customPrompt;
} else if (customAppendPrompt) {
prompt = `${Prompts.designer}\n\n${customAppendPrompt}`;
}
return {
name: 'designer',
description:
'UI/UX design and implementation. Use for styling, responsive design, component architecture and visual polish.',
config: {
model,
temperature: 0.7,
prompt,
},
};
}