Skip to content

Commit 9c6df73

Browse files
Docs/redirect uri google calender toolkit (#3393)
1 parent 6b05de1 commit 9c6df73

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

camel/toolkits/google_calendar_toolkit.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,21 @@ def __init__(
4545
timeout (Optional[float]): The timeout value for API requests
4646
in seconds. If None, no timeout is applied.
4747
(default: :obj:`None`)
48+
49+
Note:
50+
Before using this toolkit, make sure to:
51+
1. Set the required environment variables: GOOGLE_CLIENT_ID and
52+
GOOGLE_CLIENT_SECRET
53+
2. Configure the redirect URI in Google Cloud Console to
54+
http://localhost/
4855
"""
4956
super().__init__(timeout=timeout)
57+
logger.info(
58+
"Initializing GoogleCalendarToolkit. Make sure to set "
59+
"GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables, "
60+
"and configure the redirect URI in Google Cloud Console to "
61+
"http://localhost/"
62+
)
5063
self.service = self._get_calendar_service()
5164

5265
def create_event(

examples/toolkits/google_calendar_toolkit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
# limitations under the License.
1313
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414

15+
# To use GoogleCalendarToolkit make sure to set required environment variables:
16+
# GOOGLE_CLIENT_ID
17+
# GOOGLE_CLIENT_SECRET
18+
# Also you need to set the redirect URI in Google Cloud Console to http://localhost/
19+
1520
from camel.agents import ChatAgent
1621
from camel.configs import BaseConfig
1722
from camel.models import ModelFactory

0 commit comments

Comments
 (0)