feat: Implement manual knowledge editing and enhance knowledge base features

- Added functionality for manual knowledge entry, allowing users to create and edit Markdown content directly in the browser.
- Introduced new API endpoints for creating and updating manual knowledge entries.
- Enhanced UI components to support the new manual knowledge editor, including integration with existing knowledge base features.
- Updated knowledge retrieval logic to accommodate manual entries, ensuring seamless user experience across knowledge types.
- Improved agent configuration to support custom system prompts, enhancing flexibility in agent responses.
This commit is contained in:
wizardchen
2025-11-12 21:27:56 +08:00
parent a342a0aa14
commit 69f3f30d83
36 changed files with 3495 additions and 412 deletions
@@ -61,6 +61,12 @@
:data="toolData as WebSearchResultsData"
/>
<!-- Web Fetch Results Display -->
<WebFetchResults
v-else-if="displayType === 'web_fetch_results'"
:data="toolData as WebFetchResultsData"
/>
<!-- Fallback: Display raw output -->
<div v-else class="fallback-output">
<div class="fallback-header">
@@ -86,7 +92,8 @@ import type {
ThinkingData,
PlanData,
DatabaseQueryData,
WebSearchResultsData
WebSearchResultsData,
WebFetchResultsData
} from '@/types/tool-results';
import SearchResults from './tool-results/SearchResults.vue';
@@ -99,6 +106,7 @@ import ThinkingDisplay from './tool-results/ThinkingDisplay.vue';
import PlanDisplay from './tool-results/PlanDisplay.vue';
import DatabaseQuery from './tool-results/DatabaseQuery.vue';
import WebSearchResults from './tool-results/WebSearchResults.vue';
import WebFetchResults from './tool-results/WebFetchResults.vue';
interface Props {
displayType?: DisplayType;