mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-18 16:11:45 +03:00
4ca6c667da
* feat: add prompt_id field to brain * feat(Prompt controller): update prompt routes * feat: remove unused private prompts * refactor: add BrainEntity and repo and service * tests: partially type main Repository * feat: add PromptStatusEnum enum * feat: change delete prompt repository return type
17 lines
287 B
Python
17 lines
287 B
Python
from enum import Enum
|
|
from uuid import UUID
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class PromptStatusEnum(str, Enum):
|
|
private = "private"
|
|
public = "public"
|
|
|
|
|
|
class Prompt(BaseModel):
|
|
title: str
|
|
content: str
|
|
status: PromptStatusEnum = PromptStatusEnum.private
|
|
id: UUID
|