-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.ts
More file actions
49 lines (38 loc) · 1.25 KB
/
settings.ts
File metadata and controls
49 lines (38 loc) · 1.25 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export interface MetadataToolSettings {
anthropicApiKey: string;
anthropicModel: string;
// Field names in frontmatter
tagsFieldName: string;
descriptionFieldName: string;
titleFieldName: string;
// Feature toggles
enableTitle: boolean;
// Content truncation
truncateContent: boolean;
maxTokens: number;
truncateMethod: "head_only" | "head_tail" | "heading";
// Update behavior
updateMethod: "always_regenerate" | "preserve_existing";
// Prompts
tagsPrompt: string;
descriptionPrompt: string;
titlePrompt: string;
}
export const DEFAULT_SETTINGS: MetadataToolSettings = {
anthropicApiKey: "",
anthropicModel: "claude-sonnet-4-6",
tagsFieldName: "tags",
descriptionFieldName: "description",
titleFieldName: "title",
enableTitle: true,
truncateContent: true,
maxTokens: 1000,
truncateMethod: "head_only",
updateMethod: "preserve_existing",
tagsPrompt:
"Select 3-5 relevant tags in lowercase with hyphens instead of spaces (e.g., 'knowledge-management', 'note-taking')",
descriptionPrompt:
"Write a concise but useful summary in 1-2 sentences that captures the main purpose and key points",
titlePrompt:
"Create a simple, concise title with minimal adjectives that clearly states the topic",
};