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

35 lines
1 KiB
TypeScript

import { z } from "zod";
import { GmailBaseTool, GmailBaseToolParams } from "./base.js";
export declare class GmailCreateDraft extends GmailBaseTool {
name: string;
schema: z.ZodObject<{
message: z.ZodString;
to: z.ZodArray<z.ZodString, "many">;
subject: z.ZodString;
cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
message: string;
subject: string;
to: string[];
cc?: string[] | undefined;
bcc?: string[] | undefined;
}, {
message: string;
subject: string;
to: string[];
cc?: string[] | undefined;
bcc?: string[] | undefined;
}>;
description: string;
constructor(fields?: GmailBaseToolParams);
private prepareDraftMessage;
_call(arg: z.output<typeof this.schema>): Promise<string>;
}
export type CreateDraftSchema = {
message: string;
to: string[];
subject: string;
cc?: string[];
bcc?: string[];
};