langchain
11483b0f - community[patch]: set tool name for tongyi&qianfan llm (#22889)

Commit
1 year ago
community[patch]: set tool name for tongyi&qianfan llm (#22889) - **Description:** The name of ToolMessage is default to None, which makes tool message send to LLM likes ```json {"role": "tool", "tool_call_id": "", "content": "{\"time\": \"12:12\"}", "name": null} ``` But the name seems essential for some LLMs like TongYi Qwen. so we need to set the name use agent_action's tool value. - **Issue:** N/A - **Dependencies:** N/A
Author
Parents
Loading