nlp.py 457 B

1234567891011121314151617181920212223
  1. from enum import Enum
  2. from pydantic import BaseModel
  3. class RoomSize(str, Enum):
  4. small = "small"
  5. medium = "medium"
  6. large = "large"
  7. unknown = ""
  8. class NLPResponseBase(BaseModel):
  9. Message: str
  10. class MeetingInfoResponse(NLPResponseBase):
  11. AcceptableStartTime: str | None
  12. AcceptableEndTime: str | None
  13. MeetingDurationSeconds: int | None
  14. MeetingRoomSize: RoomSize | None
  15. Topic: str | None
  16. Participants: list[str]