box-ui-elements
Version:
Box UI Elements
13 lines (10 loc) • 604 B
text/typescript
import { type QuestionType , type SuggestedQuestionType } from '@box/box-ai-content-answers';
import { type AgentState } from '@box/box-ai-agent-selector';
export type BoxAISidebarCache = {
agents: AgentState,
encodedSession: string | null,
questions: QuestionType[],
shouldShowLandingPage: boolean,
suggestedQuestions: SuggestedQuestionType[],
};
export type BoxAISidebarCacheSetter = (key: 'agents' | 'encodedSession' | 'questions' | 'shouldShowLandingPage' | 'suggestedQuestions', value: AgentState | QuestionType[] | SuggestedQuestionType[] | string | boolean | null) => void;