wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/base/prompt-editor/types.ts
@@ -1,10 +1,8 @@
import type { Type } from '../../workflow/nodes/llm/types'
import type { Dataset } from './plugins/context-block'
import type { RoleName } from './plugins/history-block'
import type {
  Node,
  NodeOutPutVar,
  ValueSelector,
} from '@/app/components/workflow/types'
export type Option = {
@@ -56,18 +54,12 @@
  onAddExternalTool?: () => void
}
export type GetVarType = (payload: {
  nodeId: string,
  valueSelector: ValueSelector,
}) => Type
export type WorkflowVariableBlockType = {
  show?: boolean
  variables?: NodeOutPutVar[]
  workflowNodesMap?: Record<string, Pick<Node['data'], 'title' | 'type'>>
  onInsert?: () => void
  onDelete?: () => void
  getVarType?: GetVarType
}
export type MenuTextMatch = {