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:
Hwang
2025-07-04 16:06:21 +08:00
committed by GitHub
parent 296089efc9
commit a485ad5c45
4 changed files with 19 additions and 30 deletions

View File

@@ -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'),
}),