mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(core): call copilot in tools (#13024)
fix AI-298 #### PR Dependency Tree * **PR #13024** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Document and code artifact generation tools now use a single prompt field for user input, enabling more flexible content creation powered by AI. * **Bug Fixes** * Improved error handling for missing prompt templates or providers during document and code artifact generation. * **Refactor** * Simplified input schemas for document and code artifact tools, consolidating multiple input fields into a single prompt. * Output schemas updated to remove metadata and other unused fields for a cleaner result. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -39,7 +39,6 @@ interface DocComposeToolResult {
|
||||
title: string;
|
||||
markdown: string;
|
||||
wordCount: number;
|
||||
metadata: Record<string, unknown>;
|
||||
}
|
||||
| ToolError
|
||||
| null;
|
||||
|
||||
Reference in New Issue
Block a user