Significant-Gravitas/AutoGPT · error · NotFoundError
Library agent #{id} not found
Error message
Library agent #{id} not found What it means
Error "Library agent #{id} not found" thrown in Significant-Gravitas/AutoGPT.
Source
Thrown at autogpt_platform/backend/backend/api/features/library/db.py:395
Returns:
The requested LibraryAgent.
Raises:
NotFoundError: If the specified agent does not exist.
DatabaseError: If there's an error during retrieval.
"""
library_agent = await prisma.models.LibraryAgent.prisma().find_first(
where={
"id": id,
"userId": user_id,
"isDeleted": False,
},
include=library_agent_include(user_id),
)
if not library_agent:
raise NotFoundError(f"Library agent #{id} not found")
# Fetch marketplace listing if the agent has been published
store_listing = None
profile = None
if library_agent.AgentGraph:
store_listing = await prisma.models.StoreListing.prisma().find_first(
where={
"agentGraphId": library_agent.AgentGraph.id,
"isDeleted": False,
"hasApprovedVersion": True,
},
include={
"ActiveVersion": True,
},
)
if store_listing and store_listing.ActiveVersion and store_listing.owningUserId:
# Fetch Profile separately since User doesn't have a direct Profile relation
profile = await prisma.models.Profile.prisma().find_first(View on GitHub (pinned to 9c8bb5550f)
Solutions
- Confirm the library agent ID is correct and belongs to your account.
- Refresh the library list; the agent may have been removed.
When it happens
Trigger: Thrown at autogpt_platform/backend/backend/api/features/library/db.py:395 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Significant-Gravitas/AutoGPT@9c8bb5550f (2026-08-14).
Data as JSON: /api/errors/c17b744c1638d3c0.
Report an issue: GitHub.