File size: 1,372 Bytes
71d6a35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from langchain.pydantic_v1 import BaseModel, Field

class symptoms(BaseModel):
    symptoms: str = Field(description="query of user")

class bookSlot(BaseModel):
    start_time: str = Field(description="starting time of the slot with date use this format '2024-09-20T15:30:00+05:30'.")
    end_time: str = Field(description="ending time of the slot with date use this format '2024-09-20T15:30:00+05:30'.")
    summary: str = Field(description="summary of the event with title.")

class deleteSlot(BaseModel):
    start_time: str = Field(description="starting time of the slot with date use this format '2024-09-20T15:30:00+05:30'.")

class reschedule_event(BaseModel):
    start_time: str = Field(description="starting time of the slot with date that need to be reschedule use this format '2024-09-20T15:30:00+05:30'.")
    new_start_time: str = Field(description="new starting time of the slot with date that need to be reschedule use this format '2024-09-20T15:30:00+05:30'.")
    new_end_time: str = Field(description="ending time of the slot with date that need to be reschedule use this format '2024-09-20T15:30:00+05:30'.")

class listevent(BaseModel):
    target_date: str = Field(description="Target date for which we want to list the events.")

class checkevent(BaseModel):
    date: str = Field(description="Target date for which we want to check the events.")