feat: ms-bot-framework with dynamic adaptive cards

This commit is contained in:
nasim
2025-04-03 10:28:32 +02:00
parent 3aa78be3d6
commit f96f4af069
13 changed files with 363 additions and 74 deletions
-34
View File
@@ -1,34 +0,0 @@
from pydantic import BaseModel, Field
class HouseCreateRequest(BaseModel):
address: str = Field(
...,
min_length=1,
max_length=255,
description="House address",
examples=["123 Main St"],
)
city: str = Field(
..., description="City where the house is located", examples=["Springfield"]
)
country: str = Field(
..., description="Country where the house is located", examples=["USA"]
)
price: float = Field(..., description="Price of the house", examples=[250000.00])
description: str = Field(
...,
description="Description of the house",
examples=["A beautiful 3-bedroom house"],
)
square_feet: float = Field(
...,
description="Square footage of the house",
examples=[1500.00],
)
bedrooms: int = Field(
..., description="Number of bedrooms in the house", examples=[3]
)
bathrooms: float = Field(
..., description="Number of bathrooms in the house", examples=[2.5]
)
@@ -1,5 +0,0 @@
from pydantic import BaseModel
class HouseCreateResponse(BaseModel):
id: str
-14
View File
@@ -1,14 +0,0 @@
from pydantic import BaseModel
class HouseResponse(BaseModel):
id: str
description: str
address: str
city: str
country: str
price: float
class HousesListResponse(BaseModel):
houses: list[HouseResponse]
@@ -1,7 +0,0 @@
from pydantic import BaseModel
class OwnerDetailResponse(BaseModel):
id: str
user_id: str
email: str
-10
View File
@@ -1,10 +0,0 @@
from pydantic import BaseModel
class OwnerResponse(BaseModel):
id: str
user_id: str
class OwnerListResponse(BaseModel):
owners: list[OwnerResponse]