forked from alvinunreal/oh-my-opencode-slim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoracle.ts
More file actions
27 lines (24 loc) · 664 Bytes
/
Copy pathoracle.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 createOracleAgent(
model: string,
customPrompt?: string,
customAppendPrompt?: string,
): AgentDefinition {
let prompt = Prompts.oracle;
if (customPrompt) {
prompt = customPrompt;
} else if (customAppendPrompt) {
prompt = `${Prompts.oracle}\n\n${customAppendPrompt}`;
}
return {
name: 'oracle',
description:
'Strategic technical advisor. Use for architecture decisions, complex debugging, code review, and engineering guidance.',
config: {
model,
temperature: 0.1,
prompt,
},
};
}