const googleCalendarViewTool = new GoogleCalendarViewTool({ credentials: { clientEmail: process.env.GOOGLE_CALENDAR_CLIENT_EMAIL, privateKey: process.env.GOOGLE_CALENDAR_PRIVATE_KEY, calendarId: process.env.GOOGLE_CALENDAR_CALENDAR_ID, }, scopes: [ "https: "https: ], model: new ChatOpenAI({}),});const viewInput = `What meetings do I have this week?`;const viewResult = await googleCalendarViewTool.invoke({ input: viewInput });console.log("View Result", viewResult); Copy
const googleCalendarViewTool = new GoogleCalendarViewTool({ credentials: { clientEmail: process.env.GOOGLE_CALENDAR_CLIENT_EMAIL, privateKey: process.env.GOOGLE_CALENDAR_PRIVATE_KEY, calendarId: process.env.GOOGLE_CALENDAR_CALENDAR_ID, }, scopes: [ "https: "https: ], model: new ChatOpenAI({}),});const viewInput = `What meetings do I have this week?`;const viewResult = await googleCalendarViewTool.invoke({ input: viewInput });console.log("View Result", viewResult);
Protected
Example