-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: use send twice in a sequence #3060
base: main
Are you sure you want to change the base?
Conversation
return {"best_selected_joke": best_joke} | ||
|
||
builder = StateGraph(OverallState) | ||
builder.add_conditional_edges("__start__", generate_jokes, ["generate_joke"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fails compilation:
raise ValueError(f"Found edge starting at unknown node '{source}'")
E ValueError: Found edge starting at unknown node 'generate_joke'
- This should probably work
- We should've called these "add_routing_node" in retrospect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But your graph doesn't have a "generate_joke" node? What am I missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If i add a node it requires the state to be overall state (and I think forces the reduce step)
def generate_jokes(state: OverallState): | ||
# Distribute the subjects to the generate_joke node | ||
sends = [Send("generate_joke", {"subject": s}) for s in state["subjects"]] | ||
return Command(goto=sends) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one fails as well -- looks like a bug
No description provided.