langchain
b1cc9725 - core[patch]: Improve `RunnableWithMessageHistory` init arg types (#31639)

Commit
182 days ago
core[patch]: Improve `RunnableWithMessageHistory` init arg types (#31639) `Runnable`'s `Input` is contravariant so we need to enumerate all possible inputs and it's not possible to put them in a `Union`. Also, it's better to only require a runnable that accepts`list[BaseMessage]` instead of a broader `Sequence[BaseMessage]` as internally the runnable is only called with a list.
Author
Parents
Loading