feat(core): structure memory directory and block labels [LET-7336] (#9309)
This commit is contained in:
committed by
Caren Thomas
parent
3709be28dd
commit
21e880907f
@@ -92,9 +92,9 @@ class Block(OrganizationMixin, SqlalchemyBase, ProjectMixin, TemplateEntityMixin
|
||||
|
||||
def to_pydantic(self) -> Type:
|
||||
match self.label:
|
||||
case "human":
|
||||
case "human" | "system/human":
|
||||
Schema = Human
|
||||
case "persona":
|
||||
case "persona" | "system/persona":
|
||||
Schema = Persona
|
||||
case _:
|
||||
Schema = PydanticBlock
|
||||
|
||||
Reference in New Issue
Block a user