Update calendar_tools.py
This commit is contained in:
@@ -51,12 +51,6 @@ from core.server import (
|
|||||||
CALENDAR_READONLY_SCOPE, CALENDAR_EVENTS_SCOPE
|
CALENDAR_READONLY_SCOPE, CALENDAR_EVENTS_SCOPE
|
||||||
)
|
)
|
||||||
|
|
||||||
# CONFIG_CLIENT_SECRETS_PATH is now imported from auth.google_auth
|
|
||||||
# CONFIG_REDIRECT_URI is now imported from core.server
|
|
||||||
|
|
||||||
# Remove the local _initiate_auth_and_get_message helper function
|
|
||||||
# async def _initiate_auth_and_get_message(...): ...
|
|
||||||
|
|
||||||
|
|
||||||
# --- Tool Implementations ---
|
# --- Tool Implementations ---
|
||||||
|
|
||||||
@@ -340,4 +334,4 @@ async def create_event(
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
message = f"Unexpected error creating event: {e}."
|
message = f"Unexpected error creating event: {e}."
|
||||||
logger.exception(message)
|
logger.exception(message)
|
||||||
return types.CallToolResult(isError=True, content=[types.TextContent(type="text", text=message)])
|
return types.CallToolResult(isError=True, content=[types.TextContent(type="text", text=message)])
|
||||||
|
|||||||
Reference in New Issue
Block a user