Skip to content

The open alternative to Salesforce, designed for AI.

399 B
Raw Blame
import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';

export type AgentChatPrepromptMode = 'PREFILL' | 'SEND';

export type AgentChatPreprompt = {
  serializedDocument: string;
  mode: AgentChatPrepromptMode;
};

export const agentChatPrepromptState =
  createAtomState<AgentChatPreprompt | null>({
    key: 'ai/agentChatPrepromptState',
    defaultValue: null,
  });