File size: 1,290 Bytes
1f83564
3516027
 
73b7961
18c4b26
73b7961
 
 
 
 
 
18c4b26
73b7961
 
 
 
 
 
18c4b26
 
73b7961
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from pydantic import BaseModel, Field
from typing import Optional


class MultiModuleRequest(BaseModel):
    issue_key: Optional[str] = Field(
        default="", description="The unique identifier for the issue or bug ticket (e.g., JIRA key). "
    )
    summary: str = Field(..., description="The short title or summary of the bug.")
    description: Optional[str] = Field(default=None, description="A detailed description of the bug.")


class SearchSpaceRoutingRequest(BaseModel):
    issue_key: Optional[str] = Field(
        default="", description="The unique identifier for the issue or bug ticket (e.g., JIRA key). "
    )
    summary: str = Field(..., description="The short title or summary of the bug.")
    description: Optional[str] = Field(default=None, description="A detailed description of the bug.")


class SingleModuleRequest(BaseModel):
    issue_key: Optional[str] = Field(
        default="", description="The unique identifier for the issue or bug ticket (e.g., JIRA key). "
    )
    summary: str = Field(..., description="The short title or summary of the bug.")
    description: Optional[str] = Field(default=None, description="A detailed description of the bug.")
    module: str = Field(..., description="Name of the module where the bug should be localized")