获取Gmail凭证#

langchain_community.tools.gmail.utils.get_gmail_credentials(token_file: str | None = None, client_secrets_file: str | None = None, scopes: List[str] | None = None) Credentials[来源]#

获取凭证。

Parameters:
  • token_file (可选[str])

  • client_secrets_file (可选[str])

  • scopes (可选[列表[字符串]])

Return type:

凭证