diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 36403ddf..fc455170 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -3413,6 +3413,12 @@ export default { collapseRaw: 'Collapse original', expandRaw: 'Expand original', noWebContent: 'No web content fetched', + webFetchStatusSuccess: 'Fetched', + webFetchStatusFailed: 'Failed', + webFetchStatusSkipped: 'Skipped', + webFetchErrorCode: 'Error code', + webFetchRetryable: 'Retryable', + webFetchSummaryFailed: 'Summary failed', lengthChars: '{value} characters', lengthThousands: '{value}k characters', lengthTenThousands: '{value} ten-thousand characters', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 153d5c91..fdcd4c3e 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1092,6 +1092,12 @@ export default { collapseRaw: "收起原文", expandRaw: "展开原文", noWebContent: "未获取到网页内容", + webFetchStatusSuccess: "抓取成功", + webFetchStatusFailed: "抓取失败", + webFetchStatusSkipped: "已跳过", + webFetchErrorCode: "错误码", + webFetchRetryable: "可重试", + webFetchSummaryFailed: "摘要失败", lengthChars: "{value} 字", lengthThousands: "{value} 千字", lengthTenThousands: "{value} 万字", diff --git a/frontend/src/types/tool-results.ts b/frontend/src/types/tool-results.ts index 20d90f57..1614e1dd 100644 --- a/frontend/src/types/tool-results.ts +++ b/frontend/src/types/tool-results.ts @@ -198,10 +198,18 @@ export interface WebSearchResultsData { export interface WebFetchResultItem { url: string; prompt?: string; + status?: 'success' | 'failed' | 'skipped'; + retryable?: boolean; + error_code?: string; + error_message?: string; summary?: string; + summary_status?: string; + summary_error_code?: string; + summary_error_message?: string; raw_content?: string; content_length?: number; method?: string; + /** @deprecated use error_message */ error?: string; } @@ -210,6 +218,10 @@ export interface WebFetchResultsData { display_type: 'web_fetch_results'; results: WebFetchResultItem[]; count?: number; + successful_count?: number; + failed_count?: number; + skipped_count?: number; + all_failed?: boolean; } // Grep knowledge aggregation item (legacy, grouped by knowledge_id) diff --git a/frontend/src/views/chat/components/tool-results/WebFetchResults.vue b/frontend/src/views/chat/components/tool-results/WebFetchResults.vue index 5f1e3f91..8a065251 100644 --- a/frontend/src/views/chat/components/tool-results/WebFetchResults.vue +++ b/frontend/src/views/chat/components/tool-results/WebFetchResults.vue @@ -22,7 +22,12 @@ {{ $t('chat.unknownLink') }}
-