@box/box-ai-content-answers 0.112.0 → 0.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ import { AgentListResponse } from '@box/box-ai-agent-selector';
|
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { BoxAiContentAnswersProps } from '../../box-ai-content-answers';
|
|
5
5
|
import { AgentType, RecordActionType } from '../../types';
|
|
6
|
-
export type IntelligenceModalProps = ModalProps & BoxAiContentAnswersProps & {
|
|
6
|
+
export type IntelligenceModalProps = ModalProps & Omit<BoxAiContentAnswersProps, 'variant'> & {
|
|
7
7
|
/** API callback to send to AI Studio Agent Selector */
|
|
8
8
|
getAIStudioAgents?(): Promise<AgentListResponse>;
|
|
9
9
|
/** Flag to indicate if the host application has custom suggested questions */
|
|
@@ -25,8 +25,8 @@ export declare enum REQUEST_STATE {
|
|
|
25
25
|
export type StyleVariant = 'modal' | 'sidebar';
|
|
26
26
|
export type RetryQuestion = (question: QuestionType, aiAgent?: unknown | undefined) => void;
|
|
27
27
|
export type SendErrorLog = ({ eventType, message, origin, sendTrace }: EventLogOptions) => void;
|
|
28
|
-
export type StopQuestion = (question
|
|
29
|
-
export type SubmitQuestion = (question: QuestionType, aiAgent?: unknown | undefined) => void;
|
|
28
|
+
export type StopQuestion = (question?: QuestionType) => void;
|
|
29
|
+
export type SubmitQuestion = (question: QuestionType, aiAgent?: unknown | undefined, shouldCreateQuestion?: boolean) => void;
|
|
30
30
|
export type HandleScrollToBottomType = (behavior: string, streamingAnswer: boolean) => void;
|
|
31
31
|
export type ItemClickHandler = (fileId: CitationResponseRecordType, title: CitationResponseRecordType) => void;
|
|
32
32
|
export type WelcomeMessageProps = {
|