UNPKG

@hashbrownai/core

Version:

Runtime helpers for Hashbrown AI

29 lines 1.02 kB
export interface ThreadState { threadId: string | undefined; isLoadingThread: boolean; isSavingThread: boolean; loadingThreadError: { error: string; stacktrace?: string; } | undefined; savingThreadError: { error: string; stacktrace?: string; } | undefined; } export declare const initialThreadState: ThreadState; export declare const reducer: (state: ThreadState | undefined, action: { type: string; }) => ThreadState; export declare const selectThreadId: (state: ThreadState) => string | undefined; export declare const selectIsLoadingThread: (state: ThreadState) => boolean; export declare const selectIsSavingThread: (state: ThreadState) => boolean; export declare const selectThreadLoadError: (state: ThreadState) => { error: string; stacktrace?: string; } | undefined; export declare const selectThreadSaveError: (state: ThreadState) => { error: string; stacktrace?: string; } | undefined; //# sourceMappingURL=thread.reducer.d.ts.map