We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00351ad commit 05cb2fdCopy full SHA for 05cb2fd
1 file changed
packages/core/src/ai/tools.ts
@@ -791,7 +791,7 @@ function createSearchAllNotesTool(): ToolDefinition {
791
bookTitle: bookMap.get(n.bookId) || "Unknown",
792
chapterTitle: n.chapterTitle,
793
highlightedText: n.type === "highlight_note" ? (n as any).highlightedText : undefined,
794
- tags: n.tags,
+ tags: n.type === "note" ? (n as any).tags : undefined,
795
createdAt: n.createdAt,
796
})),
797
};
0 commit comments