跳到主内容

构建节点

已弃用

此端点已弃用,并可能在未来的 API 版本中移除。

构建一个节点,而不是整个图。

参数: flow_id (str): 流程ID。 vertex_id (str): 要构建的节点ID。 background_tasks (BackgroundTasks): 后台任务依赖项。 inputs (Optional[InputValueRequest], 可选): 节点的输入值。默认为 None。 files (List[str], 可选): 要使用的文件。默认为 None。 current_user (Any, 可选): 当前用户依赖项。默认为 Depends(get_current_active_user)。

返回: VertexBuildResponse: 包含构建的节点信息的响应。

抛出: HTTPException: 如果构建节点时发生错误。

路径参数
flow_id uuid 必需
vertex_id 节点ID 必需
请求体
inputs
files 文件
响应
200

成功响应

Schema 可选
id ID 可选
inactivated_vertices 非活动节点 可选
next_vertices_ids 下一个节点ID 可选
top_level_vertices 顶级节点 可选
valid 有效
params 参数 可选
data 对象
timestamp 时间戳 可选
422

验证错误

Schema 可选
detail 对象[] 可选
loc undefined[]
msg 消息
type 错误类型
Search