Skip to content

Commit 83c26fa

Browse files
committed
fix: Handle association document versions 0.6.0 and 0.7.0 in guidelines store
The association schema hasn't changed since 0.5.0, but the document loader needs to handle the newer version strings. Signed-off-by: Laurits Søgaard Nielsen <lsn@werktoej.dk>
1 parent d513eb4 commit 83c26fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/parlant/core/guidelines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ async def _association_document_loader(
376376
tag_id=d["tag_id"],
377377
)
378378

379-
if doc["version"] == "0.5.0":
379+
# 0.5.0+ all use the same schema - no migration needed
380+
if doc["version"] in ("0.5.0", "0.6.0", "0.7.0"):
380381
return cast(GuidelineTagAssociationDocument, doc)
381382

382383
return None

0 commit comments

Comments
 (0)