Selcan Yukcu commited on
Commit
18c4b26
·
1 Parent(s): 9f06dc4

refactor: rename BugLocalizationRequest to MultiModuleRequest and enhance model structure

Browse files
Files changed (1) hide show
  1. utils/model.py +14 -3
utils/model.py CHANGED
@@ -1,8 +1,7 @@
1
  from pydantic import BaseModel, Field
2
  from typing import Optional
3
 
4
- # TODO: Add Field and descriptions
5
- class BugLocalizationRequest(BaseModel):
6
  issue_key: Optional[str] = Field(
7
  default="",
8
  description="The unique identifier for the issue or bug ticket (e.g., JIRA key). "
@@ -14,4 +13,16 @@ class BugLocalizationRequest(BaseModel):
14
  description: str = Field(
15
  ...,
16
  description="A detailed description of the bug."
17
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from pydantic import BaseModel, Field
2
  from typing import Optional
3
 
4
+ class MultiModuleRequest(BaseModel):
 
5
  issue_key: Optional[str] = Field(
6
  default="",
7
  description="The unique identifier for the issue or bug ticket (e.g., JIRA key). "
 
13
  description: str = Field(
14
  ...,
15
  description="A detailed description of the bug."
16
+ )
17
+
18
+ class SearchSpaceRoutingRequest(BaseModel):
19
+ issue_key: Optional[str] = Field( default="", description="The unique identifier for the issue or bug ticket (e.g., JIRA key). ") )
20
+ summary: Optional[str] = Field(default=None, description="The short title or summary of the bug.")
21
+ description: str = Field(..., description="A detailed description of the bug.")
22
+
23
+
24
+ class SingleModuleRequest(BaseModel):
25
+ issue_key: Optional[str] = Field(default="",description="The unique identifier for the issue or bug ticket (e.g., JIRA key). ")
26
+ summary: Optional[str] = Field(default=None, description="The short title or summary of the bug.")
27
+ description: str = Field(..., description="A detailed description of the bug.")
28
+ module: str = Field(..., description="Name of the module where the bug should be localized")