-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
24 lines (22 loc) · 698 Bytes
/
Copy pathmodels.py
File metadata and controls
24 lines (22 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pydantic import BaseModel, Field
from typing import List, Optional
from datetime import datetime
# Comment model to track threaded discussion of an issue
class IssueComment(BaseModel):
author: str
comment: str
timestamp: datetime = Field(default_factory=datetime.utcnow)
# Core issue model to track issue details and LLM responses
class Issue(BaseModel):
id: str
title: str
description: str
author: str
createdAt: datetime
labels: List[str] = []
assignedTo: Optional[str] = None
confidence: Optional[float] = None
priority: Optional[str] = None
comments: List[IssueComment] = []
plan: Optional[str] = None
is_archived: bool = False