Selcan Yukcu commited on
Commit
54c5599
·
1 Parent(s): e948c11

refactor: streamline field definitions in MultiModuleRequest for improved readability

Browse files
Files changed (1) hide show
  1. utils/model.py +3 -12
utils/model.py CHANGED
@@ -2,18 +2,9 @@ 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). "
8
- )
9
- summary: Optional[str] = Field(
10
- default=None,
11
- description="The short title or summary of the bug."
12
- )
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). ")
 
2
  from typing import Optional
3
 
4
  class MultiModuleRequest(BaseModel):
5
+ issue_key: Optional[str] = Field(default="", description="The unique identifier for the issue or bug ticket (e.g., JIRA key). ")
6
+ summary: Optional[str] = Field(default=None, description="The short title or summary of the bug.")
7
+ description: str = Field(..., description="A detailed description of the bug.")
 
 
 
 
 
 
 
 
 
8
 
9
  class SearchSpaceRoutingRequest(BaseModel):
10
  issue_key: Optional[str] = Field( default="", description="The unique identifier for the issue or bug ticket (e.g., JIRA key). ")