Confused about the meaning of Graph edges #632
Unanswered
sergio-onemedical
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
The documentation states that "Edges define dependencies and information flow between nodes". As such, I was expecting that a node would execute only when all of its dependencies are met, but that's not the behavior that's implemented.
Graph._is_node_ready_with_conditions
returns True when any of the node dependencies are met rather than when all dependencies are met.Here's a quick example that demonstrates what I'd consider to be unintuitive behavior. When the code runs, agent3 doesn't see the output of agent2, and doesn't know what to do.
Could someone help me clarify whether this is a bug or a misunderstanding on my part about what edges are supposed to mean?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions