forked from alvinunreal/oh-my-opencode-slim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathorchestrator.ts
More file actions
31 lines (28 loc) · 730 Bytes
/
Copy pathorchestrator.ts
File metadata and controls
31 lines (28 loc) · 730 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
28
29
30
31
import type { AgentConfig } from '@opencode-ai/sdk';
import { Prompts } from '../prompts/index';
export interface AgentDefinition {
name: string;
description?: string;
config: AgentConfig;
}
export function createOrchestratorAgent(
model: string,
customPrompt?: string,
customAppendPrompt?: string,
): AgentDefinition {
const prompt =
customPrompt ??
(customAppendPrompt
? `${Prompts.orchestrator}\n\n${customAppendPrompt}`
: Prompts.orchestrator);
return {
name: 'orchestrator',
description:
'AI coding orchestrator that delegates tasks to specialist agents for optimal quality, speed, and cost',
config: {
model,
temperature: 0.1,
prompt,
},
};
}