File size: 1,139 Bytes
a7f602c
b925097
 
 
 
 
 
 
 
 
c5f8f0a
b925097
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pydantic import BaseModel, Field
from typing import List

class UserStoryScenarios(BaseModel):
    """List of User Stories Business Scenarios Pydantic Schema"""

    scenario_title: str = Field(description="Provide a business scenario acceptance criteria title")
    pre_conditions: str = Field(description="Provide a precondition details") 
    action_details: str = Field(description="Provide action details to be taken in business application by the user role specified")
    expected_outcome: str = Field(description="Provide list of activities to be allowed by business user role")

class UserStory(BaseModel):
    """User Story Pydantic Schema"""

    title: str = Field(description="Provide clear user story title")
    role: str = Field(description="Provide application user role",default="Loan Servicing Agent",const=True)
    feature: str = Field(description="Provide application feature/functionality")
    benefit: str = Field(description="Provide benefits of the feature to the user role")
    user_story_scenarios : List[UserStoryScenarios] = Field(description="Provide list of user story scenarios")