型・APIリファレンス
    Preparing search index...

    Interface AIChatActions

    AIChat のアクション定義

    interface AIChatActions {
        closeChat: () => void;
        openChat: (payload: AIChatOpenPayload) => void;
        reflectToForm: (messageId: string) => void;
        retryLastMessage: (messageId: string) => Promise<void>;
        sendMessage: (
            userMessage: { entityName: string; message: string; viewName: string },
        ) => Promise<void>;
        setFormData: (formData: Entity) => void;
        switchPrompt: (promptId: string) => void;
        undoReflect: () => void;
        updateReflectMessage: (
            params: {
                messageId: string;
                reflectResult: ReflectResult;
                reflectType: ReflectType;
                systemMessage: string;
            },
        ) => void;
        updateSession: (currentValue: null | ReflectValue | ReflectValue[]) => void;
    }
    Index

    Properties

    closeChat: () => void

    チャットパネルを閉じる

    openChat: (payload: AIChatOpenPayload) => void

    チャットパネルを開く

    reflectToForm: (messageId: string) => void

    AIの回答をフォームに反映する

    retryLastMessage: (messageId: string) => Promise<void>

    最後のエラーメッセージをリトライする

    sendMessage: (
        userMessage: { entityName: string; message: string; viewName: string },
    ) => Promise<void>

    メッセージを送信する

    setFormData: (formData: Entity) => void

    フォームデータを送信用に更新する

    switchPrompt: (promptId: string) => void

    利用中のプロンプトを切り替える

    undoReflect: () => void

    直前の反映を取り消す

    updateReflectMessage: (
        params: {
            messageId: string;
            reflectResult: ReflectResult;
            reflectType: ReflectType;
            systemMessage: string;
        },
    ) => void

    反映結果でメッセージ状態を更新する

    updateSession: (currentValue: null | ReflectValue | ReflectValue[]) => void

    現在の反映対象値を更新する