Skip to content
Discussion options

You must be logged in to vote

You can use add_fan_in_edges from document_analyzer and policy_verifier to fraud_detector.

.add_fan_in_edges([document_analyzer, policy_verifier], fraud_detector)

This requires the output types of document_analyzer and policy_verifier to be the same, and the handler in fraud_detector in this case should handle a list of that output type.

Alternatively, you can add edges directly to fraud_detector:

.add_edge(document_analyzer, fraud_detector)
`add_edge(policy_verifier, fraud_detector)

But in fraud_detector, you need to keep track of the previous inputs from either one of the source executors, and only start the real work when both inputs are available.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by moonbox3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python workflows Related to Workflows in agent-framework
2 participants
Converted from issue

This discussion was converted from issue #1428 on October 13, 2025 17:09.