mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 14:26:48 +00:00
committed by
GitHub
parent
836c2a4ae0
commit
f4e738bb40
@@ -36,8 +36,6 @@ else:
|
||||
class EmptyDict(TypedDict, total=False):
|
||||
"""Empty dict type."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class RunnableConfig(TypedDict, total=False):
|
||||
"""Configuration for a Runnable."""
|
||||
|
@@ -457,8 +457,6 @@ RunnableConfigurableFields.model_rebuild()
|
||||
class StrEnum(str, enum.Enum):
|
||||
"""String enum."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
_enums_for_spec: WeakValueDictionary[
|
||||
Union[
|
||||
|
@@ -619,7 +619,8 @@ class RunnableWithFallbacks(RunnableSerializable[Input, Output]):
|
||||
return self.__class__(
|
||||
**{
|
||||
**self.model_dump(),
|
||||
**{"runnable": new_runnable, "fallbacks": new_fallbacks},
|
||||
"runnable": new_runnable,
|
||||
"fallbacks": new_fallbacks,
|
||||
}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user