Spaces:
Sleeping
Sleeping
File size: 1,488 Bytes
4067b64 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
from typing import List
from pydantic import BaseModel
class WorkflowSchema(BaseModel):
data_source: str
data_format: str
additional_data_requirement: bool
constraints: str
available_preprocess_script: bool
preprocess_script: str
recommended_preprocess_steps: List[str]
task: str
models: List[str]
hyperparameters: List[str]
eval_metrics: List[str]
deploy_constraints: str
class IntentFilesSchema(BaseModel):
context: str
open_questions: List[str]
data_source: str
data_format: str
additional_data_requirement: bool
constraints: str
available_preprocess_script: bool
preprocess_script: str
recommended_preprocess_steps: List[str]
task: str
models: List[str]
hyperparameters: List[str]
eval_metrics: List[str]
deploy_constraints: str
class IntentInterviewsSchema(BaseModel):
context: str
completion_status: bool
result: str
data_source: str
data_format: str
additional_data_requirement: bool
constraints: str
available_preprocess_script: bool
preprocess_script: str
recommended_preprocess_steps: List[str]
task: str
models: List[str]
hyperparameters: List[str]
eval_metrics: List[str]
deploy_constraints: str
class IntentRequestData(BaseModel):
query: str
context: str
count: int
complete: bool
class IntentResponseData(BaseModel):
context: str
result: str
count: int
complete: bool
|