Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community[patch]: support convert FunctionMessage for Tongyi (#23569)
**Description:** For function call agent with Tongyi, cause the AgentAction will be converted to FunctionMessage by https://github.com/langchain-ai/langchain/blob/47f69fe0d85056a378d7de7e7210247f5b9a8704/libs/core/langchain_core/agents.py#L188 But now Tongyi's *convert_message_to_dict* doesn't support FunctionMessage https://github.com/langchain-ai/langchain/blob/47f69fe0d85056a378d7de7e7210247f5b9a8704/libs/community/langchain_community/chat_models/tongyi.py#L184-L207 Then next round conversation will be failed by the *TypeError* exception. This patch adds the support to convert FunctionMessage for Tongyi. **Issue:** N/A **Dependencies:** N/A
- Loading branch information