Commit 9c70befa authored by Joel's avatar Joel

chore: move node type to self struct

parent fcadb807
import type { LLMNodeData } from '../../types'
import { MemoryRole } from '../../types'
import type { LLMNodeData } from './types'
import { Resolution } from '@/types/app'
export const mockLLMNodeData: LLMNodeData = {
......
import type { Resolution } from '@/types/app'
import type { Memory, ModelConfig, PromptItem, ValueSelector, Variable } from '@/app/components/workflow/types'
export type LLMNodeData = {
title: string
desc: string
type: string
model: ModelConfig
variables: Variable[]
prompt: PromptItem[] | PromptItem
memory: Memory
context: {
enabled: boolean
size: number
}
vision: {
enabled: boolean
variable_selector: ValueSelector
configs: {
detail: Resolution
}
}
}
import type { Node as ReactFlowNode } from 'reactflow'
import type { Resolution } from '@/types/app'
export enum BlockEnum {
Start = 'start',
......@@ -62,27 +61,6 @@ export type Memory = {
}
}
export type LLMNodeData = {
title: string
desc: string
type: string
model: ModelConfig
variables: Variable[]
prompt: PromptItem[] | PromptItem
memory: Memory
context: {
enabled: boolean
size: number
}
vision: {
enabled: boolean
variable_selector: ValueSelector
configs: {
detail: Resolution
}
}
}
export type Var = {
variable: string
type: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment