UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

18 lines 741 B
import { FC, ReactNode } from "react"; import { ThreadHistoryAdapter } from "./thread-history/ThreadHistoryAdapter"; import { AttachmentAdapter } from "./attachment/AttachmentAdapter"; import { ModelContextProvider } from "../../../model-context"; export type RuntimeAdapters = { modelContext?: ModelContextProvider; history?: ThreadHistoryAdapter; attachments?: AttachmentAdapter; }; export declare namespace RuntimeAdapterProvider { type Props = { adapters: RuntimeAdapters; children: ReactNode; }; } export declare const RuntimeAdapterProvider: FC<RuntimeAdapterProvider.Props>; export declare const useRuntimeAdapters: () => RuntimeAdapters | null; //# sourceMappingURL=RuntimeAdapterProvider.d.ts.map