forked from alvinunreal/oh-my-opencode-slim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibrarian.ts
More file actions
27 lines (24 loc) · 686 Bytes
/
Copy pathlibrarian.ts
File metadata and controls
27 lines (24 loc) · 686 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 createLibrarianAgent(
model: string,
customPrompt?: string,
customAppendPrompt?: string,
): AgentDefinition {
let prompt = Prompts.librarian;
if (customPrompt) {
prompt = customPrompt;
} else if (customAppendPrompt) {
prompt = `${Prompts.librarian}\n\n${customAppendPrompt}`;
}
return {
name: 'librarian',
description:
'External documentation and library research. Use for official docs lookup, GitHub examples, and understanding library internals.',
config: {
model,
temperature: 0.1,
prompt,
},
};
}