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

error #1

Closed
codingaslu opened this issue Jul 15, 2024 · 1 comment
Closed

error #1

codingaslu opened this issue Jul 15, 2024 · 1 comment

Comments

@codingaslu
Copy link

langgraph.errors.InvalidUpdateError: Must write to at least one of ['emails', 'viewed_emails_ids', 'ready_emails', 'email_sender', 'email_category', 'email_subject', 'generated_email', 'rag_questions', 'retrieved_infos', 'review', 'trials']

@kaymen99
Copy link
Owner

The code run without error on my side, i don't know where the error is coming from yet (could be a langgraph update) but I have a quick fix for it (following the discussion here), you should initialize any state variable when calling the app, update main.py with this:

print(Fore.GREEN + "Starting workflow..." + Style.RESET_ALL)
for output in app.stream({"trials": 0}):
    for key, value in output.items():
        pprint(Fore.CYAN + f"Finished running: {key}:" + Style.RESET_ALL)

It should work fine for now, I will try to understand where the issue is coming from.

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

No branches or pull requests

2 participants