Skip to content

The open alternative to Salesforce, designed for AI.

338 B
Raw Blame
import { type AiChatError } from '@/ai/types/AiChatError';
import { createAtomFamilyState } from '@/ui/utilities/state/jotai/utils/createAtomFamilyState';

export const agentChatErrorFamilyState = createAtomFamilyState<
  AiChatError | null,
  { threadId: string | null }
>({
  key: 'agentChatErrorFamilyState',
  defaultValue: null,
});