agsamantha/node_modules/@langchain/community/dist/tools/google_calendar/create.d.ts
2024-10-02 15:15:21 -05:00

30 lines
1.1 KiB
TypeScript

import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
import { GoogleCalendarBase, GoogleCalendarAgentParams } from "./base.js";
/**
* @example
* ```typescript
* 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);
* ```
*/
export declare class GoogleCalendarCreateTool extends GoogleCalendarBase {
name: string;
description: string;
constructor(fields: GoogleCalendarAgentParams);
_call(query: string, runManager?: CallbackManagerForToolRun): Promise<string>;
}