跳到主要内容

构建公共临时

构建一个无需身份验证的公共流程。

此端点专门用于无需身份验证的公共流程。它使用 client_id cookie 创建一个确定性的流程 ID,用于跟踪目的。

该端点

  1. 验证所请求的流程在数据库中被标记为公共
  2. 根据 client_id 和 flow_id 创建确定性的 UUID
  3. 使用流程所有者的权限构建流程

要求

  • 该流程必须在数据库中标记为 PUBLIC
  • 请求必须包含 client_id cookie

参数: flow_id: 要构建的公共流程的 UUID background_tasks: 后台任务管理器 inputs: 流程的可选输入值 data: 可选的流程数据 files: 要包含的可选文件 stop_component_id: 可选的停止组件 ID start_component_id: 可选的开始组件 ID log_builds: 是否记录构建过程 flow_name: 可选的流程名称 request: FastAPI 请求对象(需要访问 cookie) queue_service: 用于作业管理的队列服务 event_delivery: 可选的事件传递类型 - 默认为 streaming

返回: 包含 job_id 的字典,可用于轮询构建状态

路径参数
flow_id uuid 必需
查询参数
stop_component_id 停止组件 ID
start_component_id 开始组件 ID
log_builds 记录构建
flow_name 流程名称
event_delivery 事件传递类型

可能的值: [streaming, direct, polling]

请求体
inputs
data
files 文件
响应
200

成功响应

Schema 可选
undefined
422

验证错误

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