This commit is contained in:
Timothy Jaeryang Baek
2026-04-19 22:22:15 +09:00
parent 98627e42b4
commit f45d0f130e
7 changed files with 63 additions and 14 deletions
+4 -1
View File
@@ -557,7 +557,10 @@ async def get_builtin_tools(
)
# Calendar tools - search/create/update/delete events
if is_builtin_tool_enabled('calendar'):
if (
is_builtin_tool_enabled('calendar')
and getattr(request.app.state.config, 'ENABLE_CALENDAR', False)
):
builtin_functions.extend(
[search_calendar_events, create_calendar_event, update_calendar_event, delete_calendar_event]
)