Skip to content
Discussion options

You must be logged in to vote

Stefan (@Tornhoof) Hope it is not too late. Based on what I found, you can chain fan-outs and fan-ins, but the key is that a FanInBarrierEdge is what creates the synchronization point.

So the pattern:

.AddFanOutEdge(orchestrator, researchAgents)
.AddFanInBarrierEdge(researchAgents, collector)
.AddFanOutEdge(collector, summaryAgents)

works because collector receives the combined results before starting the next fan-out.

For your second case, where each research agent should have its own summary fan-out/fan-in path, you would need separate edges for each branch rather than one shared fan-in:

researchA → summaryA1, summaryA2 → collectorA
researchB → summaryB1, summaryB2 → collectorB

The wor…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tornhoof
Comment options

Answer selected by Tornhoof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants