Skip to content

The open alternative to Salesforce, designed for AI.

410 B
Raw Blame
import { type AgentChatSubscriptionEvent } from 'twenty-shared/ai';

import { createAtomFamilyState } from '@/ui/utilities/state/jotai/utils/createAtomFamilyState';

export const agentChatHandleEventCallbackFamilyState = createAtomFamilyState<
  ((event: AgentChatSubscriptionEvent) => void) | null,
  { threadId: string | null }
>({
  key: 'agentChatHandleEventCallbackFamilyState',
  defaultValue: null,
});