mirror of
https://github.com/langgenius/dify.git
synced 2026-02-01 00:21:14 +08:00
8 lines
220 B
TypeScript
8 lines
220 B
TypeScript
export const genActionId = () => {
|
|
return `a${Date.now().toString(36)}${Math.floor(Math.random() * 36).toString(36)}`
|
|
}
|
|
|
|
export const isOutput = (valueSelector: string[]) => {
|
|
return valueSelector[0] === '$output'
|
|
}
|