Skip to content

Commit cc3fa1c

Browse files
authored
Merge pull request #8 from nextcloud/fix/calendar
Fix: calendar tools
2 parents 8ec1c3e + 4fd4015 commit cc3fa1c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ex_app/lib/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def call_model(
7070
You can check which calendars exist using the list_calendars tool, if a calendar can not be found.
7171
you can find out a user's email address and location by using the find_person_in_contacts tool.
7272
you can find out the current user's location by using the find_details_of_current_user tool.
73+
If an item should be added to a list, check list_calendars for a fitting calendar and add the item as a task there.
7374
Always let the user know where you got the information.
7475
""".replace("{CURRENT_DATE}", current_date)
7576
)

ex_app/lib/all_tools/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def list_calendars():
3333
@dangerous_tool
3434
def schedule_event(calendar_name: str, title: str, description: str, start_date: str, end_date: str, attendees: Optional[list[str]], start_time: Optional[str], end_time: Optional[str], location: Optional[str], timezone: Optional[str]):
3535
"""
36-
Crete a new event in a calendar. Omit start_time and end_time parameters to create an all-day event.
36+
Crete a new event or meeting in a calendar. Omit start_time and end_time parameters to create an all-day event.
3737
:param calendar_name: The name of the calendar to add the event to
3838
:param title: The title of the event
3939
:param description: The description of the event

0 commit comments

Comments
 (0)