Skip to content
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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

tests: use send twice in a sequence #3060

wants to merge 6 commits into from

Conversation

eyurtsev
Copy link
Contributor

No description provided.

@eyurtsev eyurtsev changed the title tests: use send twice in a row? tests: use send twice in a sequence Jan 16, 2025
return {"best_selected_joke": best_joke}

builder = StateGraph(OverallState)
builder.add_conditional_edges("__start__", generate_jokes, ["generate_joke"])
Copy link
Contributor Author

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'

  1. This should probably work
  2. We should've called these "add_routing_node" in retrospect

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)
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant