UNPKG

@assistant-ui/react

Version:

Typescript/React library for AI Chat

16 lines 739 B
import { ComponentType } from "react"; import type { ModelContextProvider } from "../../model-context/ModelContextTypes"; import type { Unsubscribe } from "../../types/Unsubscribe"; import { ThreadListRuntimeCore } from "./ThreadListRuntimeCore"; export type AssistantRuntimeCore = { readonly threads: ThreadListRuntimeCore; registerModelContextProvider: (provider: ModelContextProvider) => Unsubscribe; /** * EXPERIMENTAL: A component that is rendered inside the AssistantRuntimeProvider. * * Note: This field is expected to never change. * To update the component, use a zustand store. */ readonly RenderComponent?: ComponentType | undefined; }; //# sourceMappingURL=AssistantRuntimeCore.d.ts.map