Google Calendar는 사용자가 일정과 이벤트를 관리할 수 있는 Google Workspace의 제품입니다. 클라우드 기반 캘린더로 사용자가 이벤트를 생성, 편집 및 삭제할 수 있습니다. 또한 다른 사용자와 캘린더를 공유할 수 있습니다.
Overview
이 노트북은 Google Calendar Toolkit을 시작하는 데 도움을 줍니다. 이 toolkit은 Google Calendar API와 상호작용하여 캘린더에서 다양한 작업을 수행합니다. 다음과 같은 작업이 가능합니다:- 이벤트 생성
- 이벤트 검색
- 이벤트 업데이트
- 다른 캘린더 간 이벤트 이동
- 이벤트 삭제
- 이벤트 목록 조회
Setup
이 toolkit을 사용하려면 다음이 필요합니다:- Google Calendar에 액세스할 수 있는 Google 계정
- Google Calendar API 문서에 설명된 대로 자격 증명 설정.
credentials.json파일을 다운로드하면 Google Calendar API 사용을 시작할 수 있습니다.
Installation
이 toolkit은 langchain-google repository의langchain-google-community package에 있습니다. calendar extra가 필요합니다:
Instantiation
기본적으로 toolkit은 로컬credentials.json 파일을 읽습니다. Credentials 객체를 수동으로 제공할 수도 있습니다.
Customizing Authentication
내부적으로 다음 메서드를 사용하여googleapi resource가 생성됩니다. 더 많은 인증 제어를 위해 googleapi resource를 수동으로 빌드할 수 있습니다.
Tools
사용 가능한 tool 보기:- CalendarCreateEvent
- CalendarSearchEvents
- CalendarUpdateEvent
- GetCalendarsInfo
- CalendarMoveEvent
- CalendarDeleteEvent
- GetCurrentDatetime
Invocation
인자와 함께 직접 호출하기
dictionary 형식으로 필요한 인자를 전달하여 tool을 직접 호출할 수 있습니다. 다음은CalendarCreateEvent tool을 사용하여 새 이벤트를 생성하는 예제입니다.
Use within an agent
아래는 toolkit을 agent에 통합하는 방법을 보여줍니다. LLM 또는 chat model이 필요합니다:API reference
- Google Calendar API에 대한 자세한 내용은 Google Calendar API 개요를 참조하세요.
- 모든 Google Calendar Toolkit 기능 및 구성에 대한 자세한 문서는 calendar 문서를 참조하세요.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.