Microsoft Outlook 电子邮件
OutlookEmailReader #
使用 Microsoft Graph API 的 Outlook 电子邮件读取器。
读取指定 Outlook 邮箱中的电子邮件,并索引主题和正文。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
client_id
|
str
|
在 Microsoft Azure 中注册的应用程序 ID。 |
必填 |
client_secret
|
str
|
在 Azure 中注册的应用程序密钥。 |
必填 |
tenant_id
|
str
|
Azure Active Directory 实例的唯一标识符。 |
必填 |
user_email
|
str
|
需要获取其电子邮件的用户的电子邮件地址。 |
必填 |
folder
|
可选[str]
|
从中获取电子邮件的文件夹。默认为“收件箱”。 |
'Inbox'
|
num_mails
|
int
|
要检索的电子邮件数量。默认为 10。 |
10
|
源代码位于 llama-index-integrations/readers/llama-index-readers-microsoft-outlook-emails/llama_index/readers/microsoft_outlook_emails/base.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
load_data #
load_data() -> List[str]
将包含主题和正文的电子邮件作为文本加载。
源代码位于 llama-index-integrations/readers/llama-index-readers-microsoft-outlook-emails/llama_index/readers/microsoft_outlook_emails/base.py
80 81 82 83 84 85 86 87 88 |
|