-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructure.py
More file actions
21 lines (14 loc) · 834 Bytes
/
structure.py
File metadata and controls
21 lines (14 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from typing import List
from pydantic.v1 import BaseModel, Field
class SolvingConcept(BaseModel):
concept: str = Field(description="A problem-solving concept name in traditional chinese to recognize.")
description: str = Field(description="Concept description in traditional chinese.")
sample_questions: List[str] = Field(
description="Questions based on the presented problem-solving concept.")
class Process(BaseModel):
concepts: List[SolvingConcept] = Field(description="A comprehensive problem-solving process.",
default=[])
class AugmentedQuestions(SolvingConcept):
questions: List[str] = Field(
description="Augmented questions in traditional chinese related questions based on the presented "
"problem-solving concept.")