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

When using multiple blocks with links, running the agent throws error. #8066

Open
1 task done
navneet35371 opened this issue Sep 16, 2024 · 0 comments
Open
1 task done

Comments

@navneet35371
Copy link

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

MacOS

Which version of AutoGPT are you using?

Master (branch)

What LLM Provider do you use?

Other (detail in issue)

Which area covers your issue best?

Agents

What commit or version are you using?

5a7193c

Describe your issue.

When i try to create a agent with multiple blocks and links, it throws below error. It works fine with agent with just blocks. But linking them gives this error.

While debugging this i found it is throwing in validate graph method. The souce and sink ids are still the one's assigned in UI but the nodemap has the uuid's saved in db.

image

return await cls.create_graph(create_graph, is_template=False, user_id=user_id) File "/Users/nsuman/workspace/AutoGPT/rnd/autogpt_server/autogpt_server/server/rest_api.py", line 366, in create_graph graph.reassign_ids(reassign_graph_id=True) File "/Users/nsuman/workspace/AutoGPT/rnd/autogpt_server/autogpt_server/data/graph.py", line 146, in reassign_ids self.validate_graph() File "/Users/nsuman/workspace/AutoGPT/rnd/autogpt_server/autogpt_server/data/graph.py", line 220, in validate_graph raise ValueError( ValueError: Link ('1', 'transcript') <-> ('2', 'text'), 1 is invalid node id, available nodes: dict_keys(['ec16416b-c06a-41cc-80b2-d3506d20b0f9', 'd8f6a0c3-79a4-4c2c-a3d0-256973f15728'])

Upload Activity Log Content

No response

Upload Error Log Content

No response

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

1 participant