@assistant-ui/react
Version:
TypeScript/React library for AI Chat
24 lines • 1.31 kB
TypeScript
import type { AppendMessage, PendingAttachment } from "../../../types/index.js";
import type { AttachmentAdapter } from "../adapters/attachment/index.js";
import type { DictationAdapter } from "../adapters/speech/SpeechAdapterTypes.js";
import type { ThreadComposerRuntimeCore } from "../core/ComposerRuntimeCore.js";
import type { ThreadRuntimeCore } from "../core/ThreadRuntimeCore.js";
import { BaseComposerRuntimeCore } from "./BaseComposerRuntimeCore.js";
export declare class DefaultThreadComposerRuntimeCore extends BaseComposerRuntimeCore implements ThreadComposerRuntimeCore {
private runtime;
private _canCancel;
get canCancel(): boolean;
get attachments(): readonly PendingAttachment[];
protected getAttachmentAdapter(): AttachmentAdapter | undefined;
protected getDictationAdapter(): DictationAdapter | undefined;
constructor(runtime: Omit<ThreadRuntimeCore, "composer"> & {
adapters?: {
attachments?: AttachmentAdapter | undefined;
dictation?: DictationAdapter | undefined;
} | undefined;
});
connect(): import("../../..").Unsubscribe;
handleSend(message: Omit<AppendMessage, "parentId" | "sourceId">): Promise<void>;
handleCancel(): Promise<void>;
}
//# sourceMappingURL=DefaultThreadComposerRuntimeCore.d.ts.map