Source code for langchain_community.tools.office365.base

"""Office 365工具的基类。"""
from __future__ import annotations

from typing import TYPE_CHECKING

from langchain_core.pydantic_v1 import Field
from langchain_core.tools import BaseTool

from langchain_community.tools.office365.utils import authenticate

if TYPE_CHECKING:
    from O365 import Account


[docs]class O365BaseTool(BaseTool): """Office 365工具的基类。""" account: Account = Field(default_factory=authenticate) """Office 365账户的账户对象。"""