mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-26 13:59:49 +00:00
patch[Community] Optimize methods in several ChatLoaders (#24806)
There are some static methods in ChatLoaders, try to add @staticmethod decorator for them.
This commit is contained in:
@@ -38,7 +38,8 @@ class LangSmithRunChatLoader(BaseChatLoader):
|
||||
self.runs = runs
|
||||
self.client = client or Client()
|
||||
|
||||
def _load_single_chat_session(self, llm_run: "Run") -> ChatSession:
|
||||
@staticmethod
|
||||
def _load_single_chat_session(llm_run: "Run") -> ChatSession:
|
||||
"""
|
||||
Convert an individual LangSmith LLM run to a ChatSession.
|
||||
|
||||
|
Reference in New Issue
Block a user