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, NestedDict,
Object, Object,
PromptTemplate, PromptTemplate,
Text,
TextSplitter, TextSplitter,
Tool, Tool,
VectorStore, VectorStore,
@ -78,7 +77,6 @@ __all__ = [
"Object", "Object",
"PromptTemplate", "PromptTemplate",
"RangeSpec", "RangeSpec",
"Text",
"TextSplitter", "TextSplitter",
"Tool", "Tool",
"VectorStore", "VectorStore",

View file

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