@assistant-ui/react
Version:
Typescript/React library for AI Chat
16 lines (13 loc) • 388 B
text/typescript
import {
Attachment,
PendingAttachment,
CompleteAttachment,
} from "../../../types/AttachmentTypes";
export type AttachmentAdapter = {
accept: string;
add(state: {
file: File;
}): Promise<PendingAttachment> | AsyncGenerator<PendingAttachment, void>;
remove(attachment: Attachment): Promise<void>;
send(attachment: PendingAttachment): Promise<CompleteAttachment>;
};