langchain/libs
William FH a830b809f3
Patch forward ref bug (#12508)
Currently this gives a bug:
```
from langchain.schema.runnable import RunnableLambda

bound = RunnableLambda(lambda x: x).with_config({"callbacks": []})

# ConfigError: field "callbacks" not yet prepared so type is still a ForwardRef, you might need to call RunnableConfig.update_forward_refs().
```

Rather than deal with cyclic imports and extra load time, etc., I think
it makes sense to just have a separate Callbacks definition here that is
a relaxed typehint.
2023-10-29 00:53:01 -07:00
..
cli various templates improvements (#12500) 2023-10-28 22:13:22 -07:00
experimental bump to 36 (#12487) 2023-10-28 08:51:23 -07:00
langchain Patch forward ref bug (#12508) 2023-10-29 00:53:01 -07:00