mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(server): update tool descriptions and AI prompt (#13032)
update tools description & chat prompt <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated the AFFiNE AI copilot system prompt to reflect support for multiple AI providers and a more concise, structured format with clearer guidelines and modular tags. * **Enhancements** * Improved descriptions for document search and reading tools, providing clearer guidance on when and how to use keyword search, semantic search, and document reading features. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -72,7 +72,8 @@ export const createDocReadTool = (
|
||||
getDoc: (targetId?: string) => Promise<object | undefined>
|
||||
) => {
|
||||
return tool({
|
||||
description: 'Read the content of a doc in the current workspace',
|
||||
description:
|
||||
'Return the complete text and basic metadata of a single document identified by docId; use this when the user needs the full content of a specific file rather than a search result.',
|
||||
parameters: z.object({
|
||||
doc_id: z.string().describe('The target doc to read'),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user