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);

Hierarchy

  • GoogleCalendarBase
    • GoogleCalendarViewTool

Constructors

Properties

description: string = VIEW_TOOL_DESCRIPTION
name: string = "google_calendar_view"
calendarId: string
clientEmail: string
llm: BaseLLM
privateKey: string
scopes: string[]

Methods