Skip to content

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.

fix(backend): fix missing agent object requirement (#9380)

Nicholas Tindle53aea8908a27
diff --git a/autogpt_platform/backend/backend/server/v2/store/db.py b/autogpt_platform/backend/backend/server/v2/store/db.py
index e23c09afc3..ea69a38f2b 100644
--- a/autogpt_platform/backend/backend/server/v2/store/db.py
+++ b/autogpt_platform/backend/backend/server/v2/store/db.py
@@ -809,7 +809,7 @@ async def get_agent(
try:
store_listing_version = (
await prisma.models.StoreListingVersion.prisma().find_unique(
- where={"id": store_listing_version_id}
+ where={"id": store_listing_version_id}, include={"Agent": True}
)
)