You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a LangChain maintainer, or was asked directly by a LangChain maintainer to create an issue here.
Issue Content
fromdataclassesimportdataclassfromtypingimportList@dataclassclassFoo:
"""Represents an item with an index."""index: int@dataclassclassState:
foos: List[Foo]
defmap_to_node(state: State):
"""Prepare all items in the state for processing."""return [describe_foo(foo) forfooinstate.foos]
defdescribe_foo(foo: Foo): # <-- foo is a DICT here instead of a dataclass"""Raise a TypeError if foo is not a dataclass instance."""raiseTypeError(f"Expected Foo, got {type(foo).__name__}") # Assume foo is a dict
System Information
OS: Linux
OS Version: #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2
Python Version: 3.11.4 (main, Sep 25 2023, 10:06:23) [GCC 11.4.0]
Privileged issue
Issue Content
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: