File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 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+
1520from camel .agents import ChatAgent
1621from camel .configs import BaseConfig
1722from camel .models import ModelFactory
You can’t perform that action at this time.
0 commit comments