# Need help with imports

**URL:** https://forum.langchain.com/t/need-help-with-imports/2718
**Category:** LangChain Academy
**Tags:** intro-to-langgraph
**Created:** [January 13, 2026, 8:11am UTC](https://forum.langchain.com/t/need-help-with-imports/2718 "2026-01-13T08:11:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![koltoboss](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/koltoboss/32/2154_2.png) [@koltoboss](https://forum.langchain.com/u/koltoboss)
#### Post date: [January 13, 2026, 8:11am UTC](https://forum.langchain.com/t/need-help-with-imports/2718/1 "2026-01-13T08:11:37Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)
#### Post date: [January 13, 2026, 8:27am UTC](https://forum.langchain.com/t/need-help-with-imports/2718/2 "2026-01-13T08:27:30Z")

</div>

hi @koltoboss

have you tried to import from `langchain_core.tools` rather than `langchain.tools`?

---

<div class="post-metadata">

### Author: ![koltoboss](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/koltoboss/32/2154_2.png) [@koltoboss](https://forum.langchain.com/u/koltoboss)
#### Post date: [January 13, 2026, 9:18am UTC](https://forum.langchain.com/t/need-help-with-imports/2718/3 "2026-01-13T09:18:36Z")

</div>

yes I did , but didnt work so tried something else and it worked below code is exactly what worked

from langchain.tools import tool

@tool  
def insurance\_subagent(input: str) → str:  
“”“Use this for insurance-related issues like accidents, claims, and coverage.”“”  
return insurance\_agent.invoke({“input”: input})[“output”]

@tool  
def drafting\_subagent(input: str) → str:  
“”“Use this for drafting emails or structured writing tasks.”“”  
return drafting\_agent.invoke({“input”: input})[“output”]

---

<div class="post-metadata">

### Author: ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)
#### Post date: [January 13, 2026, 10:46am UTC](https://forum.langchain.com/t/need-help-with-imports/2718/4 "2026-01-13T10:46:30Z")

</div>

Ooo yeah, I haven’t noticed you were importing ‘Tool’ and then trying to instantiate it.

Great catch @koltoboss 👌
