Add models.py
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import BaseModel, Field
|
||||||
|
from typing import List, Optional
|
||||||
|
|
||||||
|
class PersonInfo(BaseModel):
|
||||||
|
name: str = Field(..., description="Full name of the person")
|
||||||
|
age: Optional[int] = Field(None, description="Age of the person")
|
||||||
|
profession: str = Field(..., description="Profession of the person")
|
||||||
|
skills: List[str] = Field(..., description="List of skills")
|
||||||
|
|
||||||
|
class MeetingNotes(BaseModel):
|
||||||
|
date: str = Field(..., description="Date of the meeting")
|
||||||
|
participants: List[str] = Field(..., description="List of participants")
|
||||||
|
topics: List[str] = Field(..., description="List of topics discussed")
|
||||||
|
decisions: List[str] = Field(..., description="List of decisions made")
|
||||||
|
next_steps: List[str] = Field(..., description="List of next steps")
|
||||||
Reference in New Issue
Block a user