dify/web/models/try-app.ts
Joel b9f718005c
feat: frontend part of support try apps (#31287)
Co-authored-by: CodingOnStar <hanxujiang@dify.ai>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
2026-01-22 18:16:37 +08:00

22 lines
511 B
TypeScript

import type { Viewport } from 'reactflow'
import type { Edge, Node } from '@/app/components/workflow/types'
import type { SiteInfo } from '@/models/share'
import type { AppModeEnum, ModelConfig } from '@/types/app'
export type TryAppInfo = {
name: string
description: string
mode: AppModeEnum
site: SiteInfo
model_config: ModelConfig
deleted_tools: { id: string, tool_name: string }[]
}
export type TryAppFlowPreview = {
graph: {
nodes: Node[]
edges: Edge[]
viewport: Viewport
}
}