Skip to content

Commit

Permalink
modify calender id as optional params to create, available and displa…
Browse files Browse the repository at this point in the history
…y tools in google calendar
  • Loading branch information
Arunprakaash committed May 25, 2024
1 parent 9a7ea8c commit e067998
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sayvai_tools/tools/google_calendar/available_slots.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _find_available_slots(
start_time: datetime,
end_time: datetime,
duration_minutes: int,
calendar_id: str = "primary",
calendar_id: Optional[str] = "primary",
) -> List[Tuple[datetime, datetime]]:
"""Find available time slots in the specified Google Calendar.
Expand Down
2 changes: 1 addition & 1 deletion src/sayvai_tools/tools/google_calendar/create_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def create(cls) -> "CreateEventTool":

def _create_event(
self,
calendar_id: str,
summary: str,
start_time: datetime,
end_time: datetime,
calendar_id: Optional[str] = "primary",
description: Optional[str] = None,
location: Optional[str] = None,
attendees: Optional[List[str]] = None,
Expand Down
2 changes: 1 addition & 1 deletion src/sayvai_tools/tools/google_calendar/display_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def create(cls) -> "DisplayEventsTool":

def _display_events(
self,
calendar_id: str,
max_results: int = 10,
calendar_id: Optional[str] = "primary",
) -> List[dict]:
"""Fetch and display events from a specific calendar.
Expand Down

0 comments on commit e067998

Please sign in to comment.