mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-31 09:58:19 -05:00
fix: make agent_graph_id non-nullable with empty default
The StoreAgent view defines agentGraphId as String (non-nullable). Using empty string default for backward compatibility - empty strings are falsy and filtered out in the agent generation code.
This commit is contained in:
@@ -38,7 +38,7 @@ class StoreAgent(pydantic.BaseModel):
|
||||
description: str
|
||||
runs: int
|
||||
rating: float
|
||||
agent_graph_id: str | None = None
|
||||
agent_graph_id: str = ""
|
||||
|
||||
|
||||
class StoreAgentsResponse(pydantic.BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user