Microsoft Outlook
OutlookLocalCalendarReader #
基类: BaseReader
适用于 Windows 的 Outlook 本地日历阅读器。读取 Outlook 日历本地副本中的事件。
源代码位于 llama-index-integrations/readers/llama-index-readers-microsoft-outlook/llama_index/readers/microsoft_outlook/base.py
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
load_data #
load_data(number_of_results: Optional[int] = 100, start_date: Optional[Union[str, date]] = None, end_date: Optional[Union[str, date]] = None, more_attributes: Optional[List[str]] = None) -> List[Document]
从用户的本地日历加载数据。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
number_of_results
|
可选[int]
|
要返回的事件数量。默认值为 100。 |
100
|
start_date
|
可选[联合[str, date]]
|
返回事件的开始日期。默认为今天。 |
无
|
end_date
|
可选[联合[str, date]]
|
返回事件的最后日期(包含)。默认值为 2199-01-01。 |
无
|
more_attributes
|
可选[列表[str]]
|
要从日历条目中检索的附加属性。不存在的属性将被忽略。 |
无
|
返回适合由 llama_index 索引的文档列表。始终返回 Start、End、Subject、Location 和 Organizer 属性,并可选择返回 more_attributes 参数中指定的附加属性。
源代码位于 llama-index-integrations/readers/llama-index-readers-microsoft-outlook/llama_index/readers/microsoft_outlook/base.py
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|