# 'Agent' getting error when using 'bind' with Langchain's Chat Model using Hierarchical Process

**URL:** https://community.crewai.com/t/agent-getting-error-when-using-bind-with-langchains-chat-model-using-hierarchical-process/5681
**Category:** Crews
**Tags:** openai, agent, task, crewai
**Created:** [May 7, 2025, 7:07am UTC](https://community.crewai.com/t/agent-getting-error-when-using-bind-with-langchains-chat-model-using-hierarchical-process/5681 "2025-05-07T07:07:31Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)
#### Post date: [May 7, 2025, 1:37pm UTC](https://community.crewai.com/t/agent-getting-error-when-using-bind-with-langchains-chat-model-using-hierarchical-process/5681/4 "2025-05-07T13:37:20Z")

</div>

I just confirmed that [this example](https://community.crewai.com/t/manager-agent-delegates-task-to-wrong-agent-in-a-hierarchical-process/3179/4) I provided in the other thread is working perfectly.

This example uses a custom `Crew.manager_agent`, without using the `manager_llm` parameter, and everything runs smoothly. I strongly suggest you check out the code there and compare it with how you’re declaring things in your code.

---

_[View the full topic](https://community.crewai.com/t/agent-getting-error-when-using-bind-with-langchains-chat-model-using-hierarchical-process/5681)._
