diff --git a/packages/backend/server/src/plugins/copilot/tools/doc-edit.ts b/packages/backend/server/src/plugins/copilot/tools/doc-edit.ts index 20ec4b76c6..7cca03bf4f 100644 --- a/packages/backend/server/src/plugins/copilot/tools/doc-edit.ts +++ b/packages/backend/server/src/plugins/copilot/tools/doc-edit.ts @@ -51,7 +51,15 @@ Important Instructions: - When inserting, follow the same format as a replacement, but ensure the new block_id does not conflict with existing IDs. - When replacing content, always keep the original block_id unchanged. - When deleting content, only use the format , and only for valid block_id present in the original content. -- Each list item should be a block. +- Each top-level list item should be a block. Like this: + \`\`\`markdown + + * Item 1 + * SubItem 1 + + 1. Item 1 + 1. SubItem 1 + \`\`\` - Your task is to return a list of block-level changes needed to fulfill the user's intent. - **Each change in code_edit must be completely independent: each code_edit entry should only perform a single, isolated change, and must not include the effects of other changes. For example, the updates for a delete operation should only show the context related to the deletion, and must not include any content modified by other operations (such as bolding or insertion). This ensures that each change can be applied independently and in any order.**