@langchain/community
Version:
Third-party integrations for LangChain.js
25 lines (24 loc) • 824 B
TypeScript
import { Tool } from "@langchain/core/tools";
import { BaseLLM } from "@langchain/core/language_models/llms";
export interface GoogleCalendarAgentParams {
credentials?: {
clientEmail?: string;
privateKey?: string;
calendarId?: string;
};
scopes?: string[];
model?: BaseLLM;
}
export declare class GoogleCalendarBase extends Tool {
name: string;
description: string;
protected clientEmail: string;
protected privateKey: string;
protected calendarId: string;
protected scopes: string[];
protected llm: BaseLLM;
constructor(fields?: GoogleCalendarAgentParams);
getModel(): BaseLLM<import("@langchain/core/language_models/llms").BaseLLMCallOptions>;
getAuth(): Promise<import("googleapis-common").JWT>;
_call(input: string): Promise<string>;
}