-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX: Add import types and typevars from core (#13829)
- Loading branch information
Showing
22 changed files
with
73 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"BaseLLM", | ||
"LLM", | ||
"LanguageModelInput", | ||
"LanguageModelOutput", | ||
"get_tokenizer", | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from langchain_core.caches import BaseCache | ||
from langchain_core.caches import RETURN_VAL_TYPE, BaseCache | ||
|
||
__all__ = ["BaseCache"] | ||
__all__ = ["BaseCache", "RETURN_VAL_TYPE"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
from langchain_core.language_models import BaseLanguageModel, get_tokenizer | ||
from langchain_core.language_models import ( | ||
BaseLanguageModel, | ||
LanguageModelInput, | ||
LanguageModelOutput, | ||
get_tokenizer, | ||
) | ||
from langchain_core.language_models.base import _get_token_ids_default_method | ||
|
||
__all__ = ["get_tokenizer", "BaseLanguageModel", "_get_token_ids_default_method"] | ||
__all__ = [ | ||
"get_tokenizer", | ||
"BaseLanguageModel", | ||
"_get_token_ids_default_method", | ||
"LanguageModelInput", | ||
"LanguageModelOutput", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
from langchain_core.runnables.history import RunnableWithMessageHistory | ||
from langchain_core.runnables.history import ( | ||
GetSessionHistoryCallable, | ||
MessagesOrDictWithMessages, | ||
RunnableWithMessageHistory, | ||
) | ||
|
||
__all__ = ["RunnableWithMessageHistory"] | ||
__all__ = [ | ||
"RunnableWithMessageHistory", | ||
"GetSessionHistoryCallable", | ||
"MessagesOrDictWithMessages", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from langchain_core.runnables.retry import RunnableRetry | ||
from langchain_core.runnables.retry import RunnableRetry, U | ||
|
||
__all__ = ["RunnableRetry"] | ||
__all__ = ["RunnableRetry", "U"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from langchain_core.stores import BaseStore | ||
from langchain_core.stores import BaseStore, K, V | ||
|
||
__all__ = ["BaseStore"] | ||
__all__ = ["BaseStore", "K", "V"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from langchain_core.vectorstores import VectorStore, VectorStoreRetriever | ||
from langchain_core.vectorstores import VST, VectorStore, VectorStoreRetriever | ||
|
||
__all__ = ["VectorStore", "VectorStoreRetriever"] | ||
__all__ = ["VectorStore", "VectorStoreRetriever", "VST"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/langchain/tests/unit_tests/schema/runnable/test_history.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
"indent_lines_after_first", | ||
"Input", | ||
"Output", | ||
"Addable", | ||
"AnyConfigurableField", | ||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"merge_content", | ||
"messages_from_dict", | ||
"messages_to_dict", | ||
"AnyMessage", | ||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"NoOpOutputParser", | ||
"OutputParserException", | ||
"StrOutputParser", | ||
"T", | ||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters