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

langgraph: use input schema from conditional edge #2516

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

Conversation

vbarda
Copy link
Collaborator

@vbarda vbarda commented Nov 22, 2024

No description provided.

# detect input schema annotation in the branch callable
try:
if (
isinstance(branch.path, RunnableCallable)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if it's a RUnnableLambda?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea might need to check for that too just in case

@vbarda vbarda marked this pull request as draft November 22, 2024 20:15
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.

2 participants