UNPKG

@hashbrownai/core

Version:

Runtime helpers for Hashbrown AI

25 lines 1.14 kB
import { Chat } from '../models'; import { s } from '../schema'; import { KnownModelIds } from '../utils'; export interface ConfigState { apiUrl: string; model: KnownModelIds; system: string; debounce: number; responseSchema?: s.HashbrownType; middleware?: Chat.Middleware[]; emulateStructuredOutput: boolean; retries: number; } export declare const reducer: (state: ConfigState | undefined, action: { type: string; }) => ConfigState; export declare const selectApiUrl: (state: ConfigState) => string; export declare const selectModel: (state: ConfigState) => KnownModelIds; export declare const selectSystem: (state: ConfigState) => string; export declare const selectDebounce: (state: ConfigState) => number; export declare const selectResponseSchema: (state: ConfigState) => s.HashbrownType<unknown> | undefined; export declare const selectMiddleware: (state: ConfigState) => Chat.Middleware[] | undefined; export declare const selectEmulateStructuredOutput: (state: ConfigState) => boolean; export declare const selectRetries: (state: ConfigState) => number; //# sourceMappingURL=config.reducer.d.ts.map