Example

const googleCalendarCreateTool = new GoogleCalendarCreateTool({
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 createInput = `Create a meeting with John Doe next Friday at 4pm - adding to the agenda of it the result of 99 + 99`;
const createResult = await googleCalendarCreateTool.invoke({
input: createInput,
});
console.log("Create Result", createResult);

Hierarchy

  • GoogleCalendarBase
    • GoogleCalendarCreateTool

Constructors

Properties

description: string = CREATE_TOOL_DESCRIPTION
name: string = "google_calendar_create"
calendarId: string
clientEmail: string
llm: BaseLLM<BaseLLMCallOptions>
privateKey: string
scopes: string[]

Methods

Generated using TypeDoc