@dmp/chat-components
    Preparing search index...

    Interface ChatResponse

    interface ChatResponse {
        cancelRequest: () => void;
        destroy: () => void;
        errorMessage: Ref<string | null>;
        followUpMessages: Ref<
            Map<string, { data: string[]; type: FollowUpMessageType }>,
        >;
        getUsageInfo: (messageId: string) => Promise<UsageInfo | null>;
        getWelcomeMessageKey: (locale: LocaleType) => string;
        initialize: (config: ChatConfig) => Promise<void>;
        isLoading: Ref<boolean>;
        isWelcomeMessageKey: (key: string) => boolean;
        messages: Ref<any[]>;
        sendMessage: (message: string) => Promise<void>;
        setCallbackFns: (newCallbackFns: ServiceCallbacks) => void;
        streamingContent: Ref<string>;
        streamingMessageId: Ref<string>;
        updateHeaders: (headers: Record<string, string>) => void;
        usageInfo: Ref<Map<string, UsageInfo>>;
        user: Ref<User>;
    }
    Index

    Properties

    cancelRequest: () => void
    destroy: () => void
    errorMessage: Ref<string | null>
    followUpMessages: Ref<
        Map<string, { data: string[]; type: FollowUpMessageType }>,
    >
    getUsageInfo: (messageId: string) => Promise<UsageInfo | null>
    getWelcomeMessageKey: (locale: LocaleType) => string
    initialize: (config: ChatConfig) => Promise<void>
    isLoading: Ref<boolean>
    isWelcomeMessageKey: (key: string) => boolean
    messages: Ref<any[]>
    sendMessage: (message: string) => Promise<void>
    setCallbackFns: (newCallbackFns: ServiceCallbacks) => void
    streamingContent: Ref<string>
    streamingMessageId: Ref<string>
    updateHeaders: (headers: Record<string, string>) => void
    usageInfo: Ref<Map<string, UsageInfo>>
    user: Ref<User>