Refactor field_typing module to remove Text type alias

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-23 17:59:27 -03:00
commit c2b2375bde
2 changed files with 0 additions and 4 deletions

View file

@ -21,7 +21,6 @@ from .constants import (
NestedDict,
Object,
PromptTemplate,
Text,
TextSplitter,
Tool,
VectorStore,
@ -78,7 +77,6 @@ __all__ = [
"Object",
"PromptTemplate",
"RangeSpec",
"Text",
"TextSplitter",
"Tool",
"VectorStore",

View file

@ -25,7 +25,6 @@ Retriever = TypeVar(
BaseRetriever,
VectorStoreRetriever,
)
Text: TypeAlias = Message
class Object:
@ -66,7 +65,6 @@ CUSTOM_COMPONENT_SUPPORTED_TYPES = {
"NestedDict": NestedDict,
"Data": Data,
"Message": Message,
"Text": Text,
"Object": Object,
"Callable": Callable,
"LanguageModel": LanguageModel,