# Create\_react\_agent not working

**URL:** <https://forum.langchain.com/t/create-react-agent-not-working/613>\
**Category:** LangGraph\
**Tags:** cloud, intro-to-langgraph, python-help\
**Created:** [July 22, 2025, 7:08am UTC](https://forum.langchain.com/t/create-react-agent-not-working/613 "2025-07-22T07:08:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![niilooy](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/niilooy/32/2886_2.png) [@niilooy](https://forum.langchain.com/u/niilooy)\
**Post date:** [July 29, 2025, 9:24pm UTC](https://forum.langchain.com/t/create-react-agent-not-working/613/5 "2025-07-29T21:24:57Z")

</div>

Hi @terrance.oneill, this might help.

> **[Build an Agent | 🦜️🔗 LangChain](https://python.langchain.com/docs/tutorials/agents/)**
>
> LangChain supports the creation of agents, or systems that use LLMs as reasoning engines to determine which actions to take and the inputs necessary to perform the action.

Also please check this thread. This can also clarify the differences of LangChain and LangGraph implementations of create\_react\_agent:

> [@Create\_react\_agent.invoke throwing error](https://forum.langchain.com/t/create-react-agent-invoke-throwing-error/653):
>
> Here’s my code - react\_prompt = hub.pull(“hwchase17/react”) react\_agent = create\_react\_agent(model=chat, tools=execute\_tools, prompt=react\_prompt) response = react\_agent.invoke({“input”: “What is 5+3?”}) What I would like to know is that do I need to call .partial on the prompt to fill in the values for tools and tool\_names because I am getting the error below. My understanding was the create\_react\_agent takes care of this internally. KeyError: "Input to PromptTemplate is missing variables …

If you still need some help, do drop a code snippet and I can try to help!

---

_[View the full topic](https://forum.langchain.com/t/create-react-agent-not-working/613)._
