Merge branch 'plugins/beta' into dev/plugin-deploy

This commit is contained in:
Yeuoly 2025-02-10 21:13:59 +08:00
commit f6472e8709
2 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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] = []