mirror of https://github.com/langgenius/dify.git
Merge branch 'plugins/beta' into dev/plugin-deploy
This commit is contained in:
commit
f6472e8709
|
|
@ -125,7 +125,7 @@ class ToolInvokeMessage(BaseModel):
|
|||
|
||||
class VariableMessage(BaseModel):
|
||||
variable_name: str = Field(..., description="The name of the variable")
|
||||
variable_value: str = Field(..., description="The value of the variable")
|
||||
variable_value: Any = Field(..., description="The value of the variable")
|
||||
stream: bool = Field(default=False, description="Whether the variable is streamed")
|
||||
|
||||
@model_validator(mode="before")
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import type { NodeTracing } from '@/types/workflow'
|
|||
import formatParallelNode from '../parallel'
|
||||
function addChildrenToIterationNode(iterationNode: NodeTracing, childrenNodes: NodeTracing[]): NodeTracing {
|
||||
const details: NodeTracing[][] = []
|
||||
childrenNodes.forEach((item) => {
|
||||
childrenNodes.forEach((item, index) => {
|
||||
if (!item.execution_metadata) return
|
||||
const { parallel_mode_run_id, iteration_index = 0 } = item.execution_metadata
|
||||
const runIndex: number = (parallel_mode_run_id || iteration_index) as number
|
||||
const { iteration_index = 0 } = item.execution_metadata
|
||||
const runIndex: number = iteration_index || index
|
||||
if (!details[runIndex])
|
||||
details[runIndex] = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue