Update api.py
Browse files
api.py
CHANGED
|
@@ -73,6 +73,14 @@ class FormattedKeyIssue(BaseModel):
|
|
| 73 |
class KeyIssueFormatResponse(BaseModel):
|
| 74 |
key_issues: List[FormattedKeyIssue]
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
# --- Global Variables / State ---
|
| 77 |
# Keep the graph instance global for efficiency if desired,
|
| 78 |
# but consider potential concurrency issues if graph/LLMs have state.
|
|
|
|
| 73 |
class KeyIssueFormatResponse(BaseModel):
|
| 74 |
key_issues: List[FormattedKeyIssue]
|
| 75 |
|
| 76 |
+
class CreateSeveralProbDescRequest(BaseModel):
|
| 77 |
+
descriptions: Dict[int, str]
|
| 78 |
+
challenges: Dict[int, List[str]]
|
| 79 |
+
technical_topic: str
|
| 80 |
+
|
| 81 |
+
class CreateSeveralProbDescResponse(BaseModel):
|
| 82 |
+
problem_descriptions: List[str]
|
| 83 |
+
|
| 84 |
# --- Global Variables / State ---
|
| 85 |
# Keep the graph instance global for efficiency if desired,
|
| 86 |
# but consider potential concurrency issues if graph/LLMs have state.
|