使用 Join 模式的並行處理
v1.1 Feature展示 v1.1 join 模式——wait_all、wait_any、wait_n 用於並行分支。
4 個節點 · 3 條連接
v1.1joinparallel
視覺化
分派任務system
↓parallel→ 搜尋 Google
↓parallel→ 搜尋 Bing
搜尋 Googleapi
↓parallel→ 合併結果
搜尋 Bingapi
合併結果agent
ex-join-modes.osop.yaml
osop_version: "1.1"
id: "join-modes"
name:"使用 Join 模式的並行處理"
nodes:
- id: "dispatch"
type: "system"
name: "分派任務"
- id: "google"
type: "api"
name: "搜尋 Google"
- id: "bing"
type: "api"
name: "搜尋 Bing"
- id: "merge"
type: "agent"
name: "合併結果"
edges:
- from: "dispatch"
to: "google"
mode: "parallel"
- from: "dispatch"
to: "bing"
mode: "parallel"
- from: "google"
to: "merge"
mode: "parallel"
join_mode: "wait_any"