langchain_community.document_loaders.onenote.OneNoteLoader¶
class langchain_community.document_loaders.onenote.OneNoteLoader[source]¶
Bases: BaseLoader, BaseModel
Load pages from OneNote notebooks.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
param access_token: str = ''¶
Personal access token
param auth_with_token: bool = False¶
Whether to authenticate with a token or not. Defaults to False.
param authority_url = 'https://login.microsoftonline.com/consumers/'¶
A URL that identifies a token authority
param notebook_name: Optional[str] = None¶
Filter on notebook name
param object_ids: Optional[List[str]] = None¶
The IDs of the objects to load data from.
param onenote_api_base_url: str = 'https://graph.microsoft.com/v1.0/me/onenote'¶
URL of Microsoft Graph API for OneNote
param page_title: Optional[str] = None¶
Filter on section name
param section_name: Optional[str] = None¶
Filter on section name
param settings: langchain_community.document_loaders.onenote._OneNoteGraphSettings [Optional]¶
Settings for the Microsoft Graph API client.
param token_path: pydantic.types.FilePath = PosixPath('/home/docs/.credentials/onenote_graph_token.txt')¶
Path to the file where the access token is stored
Constraints
format = file-path
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Default values are respected, but no other validation is performed.
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values