mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 20:09:01 +00:00
deprecating integrations moved to langchain_google_community (#19841)
Thank you for contributing to LangChain! - [ ] **PR title**: "community: deprecating integrations moved to langchain_google_community" - [ ] **PR message**: deprecating integrations moved to langchain_google_community --------- Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import base64
|
||||
import re
|
||||
from typing import Any, Iterator
|
||||
|
||||
from langchain_core._api.deprecation import deprecated
|
||||
from langchain_core.chat_sessions import ChatSession
|
||||
from langchain_core.messages import HumanMessage
|
||||
|
||||
@@ -63,6 +64,11 @@ def _get_message_data(service: Any, message: Any) -> ChatSession:
|
||||
return ChatSession(messages=[starter_content, message_content])
|
||||
|
||||
|
||||
@deprecated(
|
||||
since="0.0.32",
|
||||
removal="0.2.0",
|
||||
alternative_import="langchain_google_community.GMailLoader",
|
||||
)
|
||||
class GMailLoader(BaseChatLoader):
|
||||
"""Load data from `GMail`.
|
||||
|
||||
|
Reference in New Issue
Block a user