langchain.js
    Preparing search index...

    Hierarchy

    • GmailBaseTool
      • GmailGetThread
    Index

    Constructors

    Properties

    description: string = GET_THREAD_DESCRIPTION
    gmail?: Gmail
    name: string = "gmail_get_thread"
    schema: ZodObject<
        { threadId: ZodString },
        "strip",
        ZodTypeAny,
        { threadId: string },
        { threadId: string },
    > = getThreadSchema

    Methods

    • Parameters

      • arg: InferInteropZodOutput<{ threadId: string }>

      Returns Promise<string>

    • Parameters

      • body: string

      Returns string

    • Returns Promise<Gmail>

    • Parameters

      • payload: undefined | Schema$MessagePart

      Returns
          | { body: string; sender?: undefined; subject?: undefined }
          | {
              body: string;
              sender: undefined | Schema$MessagePartHeader;
              subject: undefined | Schema$MessagePartHeader;
          }