langchain.js
Preparing search index...
@langchain/community
tools/gmail
GmailGetMessage
Class GmailGetMessage
Hierarchy
GmailBaseTool
GmailGetMessage
Index
Constructors
constructor
Properties
description
gmail?
name
params
schema
Methods
_
call
decode
Body
get
Gmail
Client
parse
Header
And
Body
Constructors
constructor
new
GmailGetMessage
(
fields
?:
GmailBaseToolParams
)
:
GmailGetMessage
Parameters
Optional
fields
:
GmailBaseToolParams
Returns
GmailGetMessage
Properties
description
description
:
string
= GET_MESSAGE_DESCRIPTION
Protected
Optional
gmail
gmail
?:
Gmail
name
name
:
string
= "gmail_get_message"
Protected
params
params
:
GmailBaseToolParams
schema
schema
:
ZodObject
<
{
messageId
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
messageId
:
string
}
,
{
messageId
:
string
}
,
>
= getMessageSchema
Methods
_
call
_call
(
arg
:
InferInteropZodOutput
<
{
messageId
:
string
}
>
)
:
Promise
<
string
>
Parameters
arg
:
InferInteropZodOutput
<
{
messageId
:
string
}
>
Returns
Promise
<
string
>
decode
Body
decodeBody
(
body
:
string
)
:
string
Parameters
body
:
string
Returns
string
get
Gmail
Client
getGmailClient
()
:
Promise
<
Gmail
>
Returns
Promise
<
Gmail
>
parse
Header
And
Body
parseHeaderAndBody
(
payload
:
undefined
|
Schema$MessagePart
,
)
:
|
{
body
:
string
;
sender
?:
undefined
;
subject
?:
undefined
}
|
{
body
:
string
;
sender
:
undefined
|
Schema$MessagePartHeader
;
subject
:
undefined
|
Schema$MessagePartHeader
;
}
Parameters
payload
:
undefined
|
Schema$MessagePart
Returns
|
{
body
:
string
;
sender
?:
undefined
;
subject
?:
undefined
}
|
{
body
:
string
;
sender
:
undefined
|
Schema$MessagePartHeader
;
subject
:
undefined
|
Schema$MessagePartHeader
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
description
gmail
name
params
schema
Methods
_
call
decode
Body
get
Gmail
Client
parse
Header
And
Body
langchain.js
Loading...