Spaces:
Paused
Paused
Commit
·
73b7961
1
Parent(s):
553ce67
fix: mcp and api model compatability
Browse files- 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(
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
class
|
| 10 |
-
issue_key: Optional[str] = Field(
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
-
class
|
| 16 |
-
issue_key: Optional[str] = Field(
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
| 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")
|