feat: Add web search results handling and enhance knowledge retrieval features
- Introduced a new endpoint to fetch chunks by ID, improving access to specific knowledge base entries. - Updated tool result types to include web search results, enhancing the display capabilities in the chat component. - Enhanced the AgentStreamDisplay component to support rendering web search results with improved HTML formatting. - Implemented logic for managing web search result summaries and citations, ensuring a cohesive user experience. - Refactored session management to accommodate new web search functionalities, improving overall system integration.
This commit is contained in:
@@ -55,6 +55,12 @@
|
||||
:data="toolData as DatabaseQueryData"
|
||||
/>
|
||||
|
||||
<!-- Web Search Results Display -->
|
||||
<WebSearchResults
|
||||
v-else-if="displayType === 'web_search_results'"
|
||||
:data="toolData as WebSearchResultsData"
|
||||
/>
|
||||
|
||||
<!-- Fallback: Display raw output -->
|
||||
<div v-else class="fallback-output">
|
||||
<div class="detail-output">{{ output }}</div>
|
||||
@@ -74,7 +80,8 @@ import type {
|
||||
GraphQueryResultsData,
|
||||
ThinkingData,
|
||||
PlanData,
|
||||
DatabaseQueryData
|
||||
DatabaseQueryData,
|
||||
WebSearchResultsData
|
||||
} from '@/types/tool-results';
|
||||
|
||||
import SearchResults from './tool-results/SearchResults.vue';
|
||||
@@ -86,6 +93,7 @@ import GraphQueryResults from './tool-results/GraphQueryResults.vue';
|
||||
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';
|
||||
|
||||
interface Props {
|
||||
displayType?: DisplayType;
|
||||
|
||||
Reference in New Issue
Block a user