Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

353 B
Raw Blame
import type {AVArchiveRenderData, AVRenderData, AVRenderResult} from "../../../types/api";

// 渲染响应包含视图时才进入界面更新,保留视图不存在的独立错误载荷。
export const isAVRenderData = (data: AVRenderResult | AVArchiveRenderData): data is AVRenderData | AVArchiveRenderData => {
    return !!data && !!data.view;
};