mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 23:07:11 +00:00
**Description:** For function call agent with Tongyi, cause the AgentAction will be converted to FunctionMessage by47f69fe0d8/libs/core/langchain_core/agents.py (L188)
But now Tongyi's *convert_message_to_dict* doesn't support FunctionMessage47f69fe0d8/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