File size: 267 Bytes
c169262
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from typing import Optional, List, Dict
from pydantic import BaseModel


class Query(BaseModel):
    text: str
    intent: Optional[str] = None
    entities: Optional[Dict] = None
    keywords: Optional[List] = None
    history: Optional[List[Dict[str, str]]] = None