Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
167.39k stars 44.22k forks source link

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

Open navneet35371 opened 3 weeks ago

navneet35371 commented 3 weeks ago

⚠️ Search for existing issues first ⚠️

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

ntindle commented 2 weeks ago

@navneet35371 can you post what agent you were trying to build and how it’s connected