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

20 lines
596 B
TypeScript

import { gmail_v1 } from "googleapis";
import { StructuredTool } from "@langchain/core/tools";
export interface GmailBaseToolParams {
credentials?: {
clientEmail?: string;
privateKey?: string;
keyfile?: string;
subject?: string;
};
scopes?: string[];
}
export declare abstract class GmailBaseTool extends StructuredTool {
private CredentialsSchema;
private GmailBaseToolParamsSchema;
name: string;
description: string;
protected gmail: gmail_v1.Gmail;
constructor(fields?: Partial<GmailBaseToolParams>);
private getGmail;
}