amirkiarafiei commited on
Commit
73b7961
·
1 Parent(s): 553ce67

fix: mcp and api model compatability

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