Rename models/query.py to models/input.py
Browse files- models/input.py +8 -0
- models/query.py +0 -10
models/input.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Optional, List, Dict, Tuple
|
2 |
+
from pydantic import BaseModel
|
3 |
+
|
4 |
+
|
5 |
+
class Input(BaseModel):
|
6 |
+
text: str
|
7 |
+
files: Optional[List] = None
|
8 |
+
history: Optional[List[Dict[str, str]]] = None
|
models/query.py
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
from typing import Optional, List, Dict
|
2 |
-
from pydantic import BaseModel
|
3 |
-
|
4 |
-
|
5 |
-
class Query(BaseModel):
|
6 |
-
text: str
|
7 |
-
intent: Optional[str] = None
|
8 |
-
entities: Optional[Dict] = None
|
9 |
-
keywords: Optional[List] = None
|
10 |
-
history: Optional[List[Dict[str, str]]] = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|