langchain/libs/core/langchain_core/messages
tanujtiwari-at 5064890fcf
BUGFIX: handle tool message type when converting to string (#13626)
**Description:** Currently, if we pass in a ToolMessage back to the
chain, it crashes with error

`Got unsupported message type: `

This fixes it. 

Tested locally

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-11-21 18:20:58 -08:00
..
__init__.py BUGFIX: handle tool message type when converting to string (#13626) 2023-11-21 18:20:58 -08:00
ai.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
base.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
chat.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
function.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
human.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
system.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
tool.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00