chore(llm): always mention note type

This commit is contained in:
Elian Doran
2026-03-30 17:16:49 +03:00
parent 911c1bdd0c
commit 8ea1b7afba

View File

@@ -105,8 +105,7 @@ function buildNoteHint(noteId: string): string | null {
return null;
}
const typeInfo = note.type !== "text" ? ` (type: ${note.type})` : "";
return `The user is currently viewing a note titled "${note.title}"${typeInfo}. Use the get_current_note tool to read its content if needed.`;
return `The user is currently viewing a ${note.type} note titled "${note.title}". Use the get_current_note tool to read its content if needed.`;
}
export class AnthropicProvider implements LlmProvider {