from langchain.tools import Tool
insurance_tool = Tool(
name=“insurance_subagent”,
description=“Use this for insurance-related issues like accidents, claims, and coverage.”,
func=lambda x: insurance_agent.invoke({“input”: x})[“output”]
)
drafting_tool = Tool(
name=“drafting_subagent”,
description=“Use this for drafting emails or structured writing tasks.”,
func=lambda x: drafting_agent.invoke({“input”: x})[“output”]
)
the code above is giving a error as follows
ImportError Traceback (most recent call last)
Cell In[5], line 2
1 # 1. IMPORT WITH CAPITAL ‘T’
----> 2 from langchain.tools import Tool
4 # 2. USE CAPITAL ‘T’ TO DEFINE THE TOOLS
5 insurance_tool = Tool(
6 name=“insurance_subagent”,
7 description=“Use this for insurance-related issues like accidents, claims, and coverage.”,
8 func=lambda x: insurance_agent.invoke({“input”: x})[“output”]
9 )
ImportError: cannot import name ‘Tool’ from ‘langchain.tools’ (C:\Users\Aditya\anaconda3\Lib\site-packages\langchain\tools\_init_.py)
I am new to this and have tried as much abilites and knowledge allows me to , please help