Skip to content

Commit

Permalink
feat: Added field time_grain_enabled in prompt schema
Browse files Browse the repository at this point in the history
  • Loading branch information
supradeep2819 committed Jun 18, 2024
1 parent e3b9f73 commit 5ad2110
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/schemas/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ class Config(CamelSchemaConfig):
class PromptSchema(ModelSchema):
class Config(CamelSchemaConfig):
model = Prompt
model_fields = ["id", "name", "description", "type", "filters", "operators", "package_id", "gated", "query", "time_grain_enabled"]
model_fields = ["id", "name", "description", "type", "filters", "operators",
"package_id", "gated", "query", "time_grain_enabled", "time_grain_enabled"]


class PromptByIdSchema(ModelSchema):
class Config(CamelSchemaConfig):
model = Prompt
model_fields = ["id", "name", "description", "type", "filters", "operators", "package_id", "gated", "query", "time_grain_enabled"]
time_grain: List[TimeGrain] = None
model_fields = ["id", "name", "description", "type", "filters", "operators",
"package_id", "gated", "query", "time_grain_enabled", "time_grain_enabled"]
time_grain: List[TimeGrain] = None
schemas: List[Dict]


Expand Down

0 comments on commit 5ad2110

Please sign in to comment.