Fix: Added the ability to download files in the agent message reply function. (#11281)

### What problem does this PR solve?

Fix: Added the ability to download files in the agent message reply
function.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-14 19:50:01 +08:00
committed by GitHub
parent db4fd19c82
commit 996b5fe14e
11 changed files with 108 additions and 5 deletions

View File

@ -1,4 +1,5 @@
import { MessageType } from '@/constants/chat';
import { IAttachment } from '@/hooks/use-send-message';
export interface PromptConfig {
empty_response: string;
@ -97,6 +98,7 @@ export interface Message {
data?: any;
files?: File[];
chatBoxId?: string;
attachment?: IAttachment;
}
export interface IReferenceChunk {
@ -126,6 +128,7 @@ export interface IReferenceObject {
export interface IAnswer {
answer: string;
attachment?: IAttachment;
reference?: IReference;
conversationId?: string;
prompt?: string;