forked from mirrors/thatmattlove-hyperglass
16 lines
356 B
Python
16 lines
356 B
Python
"""Response model."""
|
|
# Standard Library Imports
|
|
from typing import List
|
|
|
|
# Third Party Imports
|
|
from pydantic import BaseModel
|
|
from pydantic import StrictStr
|
|
from pydantic import constr
|
|
|
|
|
|
class QueryResponse(BaseModel):
|
|
"""Query response model."""
|
|
|
|
output: StrictStr
|
|
alert: constr(regex=r"(warning|error|danger)")
|
|
keywords: List[StrictStr]
|