# LangChain Academy

**URL:** https://forum.langchain.com/c/langchain-academy/10.md?page=1

[Latest](https://forum.langchain.com/latest.md) · [Categories](https://forum.langchain.com/categories.md) · [Tags](https://forum.langchain.com/tags.md)

**Page:** 2

---

## [I had set recursion\_limit=100, but got error “Recursion limit of 25 reached “](https://forum.langchain.com/t/i-had-set-recursion-limit-100-but-got-error-recursion-limit-of-25-reached/2569)

<div class="topic-metadata">

**Author:** [@itzhoujun](https://forum.langchain.com/u/itzhoujun)\
**Replies:** 7\
**Last updated:** [December 20, 2025, 4:06pm UTC](https://forum.langchain.com/t/i-had-set-recursion-limit-100-but-got-error-recursion-limit-of-25-reached/2569 "2025-12-20T16:06:31Z")

</div>

I had set recursion\_limit=100, but got error “Recursion limit of 25 reached “ agent = create\_agent( model=model, tools=\[generate\_podcast\_audio, list\_assets, text2image, batch\_text2image, asr\_transcribe\]…

---

## [How to learn langchain](https://forum.langchain.com/t/how-to-learn-langchain/2572)

<div class="topic-metadata">

**Author:** [@sunasdad](https://forum.langchain.com/u/sunasdad)\
**Replies:** 4\
**Last updated:** [December 20, 2025, 3:00pm UTC](https://forum.langchain.com/t/how-to-learn-langchain/2572 "2025-12-20T15:00:42Z")

</div>

I’m a beginner in llm and have just studied the documentation of langchain1.0. Could you please tell me how I can further enhance my capabilities? Are there any project recommendations? I really need them because many of…

---

## [HELP：tool event missing "toolCallId" when tool return Command](https://forum.langchain.com/t/help-tool-event-missing-toolcallid-when-tool-return-command/2567)

<div class="topic-metadata">

**Author:** [@itzhoujun](https://forum.langchain.com/u/itzhoujun)\
**Replies:** 11\
**Last updated:** [December 20, 2025, 1:58am UTC](https://forum.langchain.com/t/help-tool-event-missing-toolcallid-when-tool-return-command/2567 "2025-12-20T01:58:46Z")

</div>

copilotkit raise error: \[ { “code”: “invalid\_type”, “expected”: “string”, “received”: “undefined”, “path”: \[ “toolCallId” \], “message”: “Required” }, { “code”: “invalid\_type”, “expected”: “string”, “received”: “undefine…

---

## [Repository missing](https://forum.langchain.com/t/repository-missing/2550)

<div class="topic-metadata">

**Author:** [@janho](https://forum.langchain.com/u/janho)\
**Replies:** 4\
**Last updated:** [December 19, 2025, 10:16am UTC](https://forum.langchain.com/t/repository-missing/2550 "2025-12-19T10:16:28Z")

</div>

In the Course Overview Foundation: Introduction to LangChain - Python under Installation - Download the course repository - a github repository is mentioned which doesn’t exist. Is there another that I can use instead …

---

## [Error using gemini](https://forum.langchain.com/t/error-using-gemini/2462)

<div class="topic-metadata">

**Author:** [@rpanjwani](https://forum.langchain.com/u/rpanjwani)\
**Replies:** 1\
**Last updated:** [December 10, 2025, 12:20pm UTC](https://forum.langchain.com/t/error-using-gemini/2462 "2025-12-10T12:20:53Z")

</div>

I’m getting following error when trying to use gemini in the course juypter notebook instead of openai: ModuleNotFoundError Traceback (most recent call last) Cell In\[5\], line 1 ----\> 1 from lang…

---

## [How to separate reasoning(chain of thoughts) and final response in LangChain v1 Agent (create\_agent)?](https://forum.langchain.com/t/how-to-separate-reasoning-chain-of-thoughts-and-final-response-in-langchain-v1-agent-create-agent/2252)

<div class="topic-metadata">

**Author:** [@UK59](https://forum.langchain.com/u/UK59)\
**Replies:** 3\
**Last updated:** [December 8, 2025, 4:09pm UTC](https://forum.langchain.com/t/how-to-separate-reasoning-chain-of-thoughts-and-final-response-in-langchain-v1-agent-create-agent/2252 "2025-12-08T16:09:11Z")

</div>

Hi everyone, I’m using LangChain v1 and creating an agent using create\_agent with a set of tools. The agent works as expected — it reasons through the problem, makes tool calls, and eventually generates an answer. How…

---

## [Basic import for langchain fails. %pip install -U langchain. and from langchain.agents import create\_agent -- creates issues](https://forum.langchain.com/t/basic-import-for-langchain-fails-pip-install-u-langchain-and-from-langchain-agents-import-create-agent-creates-issues/2400)

<div class="topic-metadata">

**Author:** [@mnemalur](https://forum.langchain.com/u/mnemalur)\
**Replies:** 1\
**Last updated:** [December 3, 2025, 10:29am UTC](https://forum.langchain.com/t/basic-import-for-langchain-fails-pip-install-u-langchain-and-from-langchain-agents-import-create-agent-creates-issues/2400 "2025-12-03T10:29:20Z")

</div>

I am not able to get to simple package install and get to step2. %pip install -U langchain %pip show langchain – 1.1.o version. from langchain.agents import create\_agent

---

## [\[Question\] Best practices for using a local embedding model (e.g., Hugging Face) in LangChain?](https://forum.langchain.com/t/question-best-practices-for-using-a-local-embedding-model-e-g-hugging-face-in-langchain/2254)

<div class="topic-metadata">

**Author:** [@Gaodelike](https://forum.langchain.com/u/Gaodelike)\
**Replies:** 0\
**Last updated:** [November 19, 2025, 6:20am UTC](https://forum.langchain.com/t/question-best-practices-for-using-a-local-embedding-model-e-g-hugging-face-in-langchain/2254 "2025-11-19T06:20:46Z")

</div>

Hi everyone, I am currently working on building a RAG application using LangChain. Due to data privacy/cost constraints, I need to use a locally hosted embedding model instead of relying on external APIs like OpenAI. I…

---

## [How save chat history on database like mongodb in LangChain 1.0.4](https://forum.langchain.com/t/how-save-chat-history-on-database-like-mongodb-in-langchain-1-0-4/2203)

<div class="topic-metadata">

**Author:** [@omides248](https://forum.langchain.com/u/omides248)\
**Replies:** 2\
**Last updated:** [November 14, 2025, 1:08pm UTC](https://forum.langchain.com/t/how-save-chat-history-on-database-like-mongodb-in-langchain-1-0-4/2203 "2025-11-14T13:08:23Z")

</div>

import asyncio from asyncio import Lock from typing import Dict from aiohttp import web import socketio from dotenv import load\_dotenv from langchain.agents import create\_agent from langchain\_openai import ChatOpenAI …

---

## [Ratelimit Error](https://forum.langchain.com/t/ratelimit-error/2168)

<div class="topic-metadata">

**Author:** [@Courtney](https://forum.langchain.com/u/Courtney)\
**Replies:** 0\
**Last updated:** [November 11, 2025, 6:14pm UTC](https://forum.langchain.com/t/ratelimit-error/2168 "2025-11-11T18:14:37Z")

</div>

Hello! I am new to LangSmith and working through the through the training. I am in module-0 in the rag\_application notebook and running into this error: BadRequestError: Error code: 400 - {'error': {'message': 'Request…

---

## [How to read uploaded file by LangGraph](https://forum.langchain.com/t/how-to-read-uploaded-file-by-langgraph/1978)

<div class="topic-metadata">

**Author:** [@Edward-Zhou](https://forum.langchain.com/u/Edward-Zhou)\
**Replies:** 5\
**Last updated:** [October 29, 2025, 6:07am UTC](https://forum.langchain.com/t/how-to-read-uploaded-file-by-langgraph/1978 "2025-10-29T06:07:28Z")

</div>

I am checking this document Context engineering in agents - Docs by LangChain which reads the uploaded files by wrap\_model call I test this agent with LangSmith Studio, but request.state.get("uploaded\_files", \[\]) alw…

---

## [Is there a office guidence or sample talk about integretion with fastapi?](https://forum.langchain.com/t/is-there-a-office-guidence-or-sample-talk-about-integretion-with-fastapi/1973)

<div class="topic-metadata">

**Author:** [@livizy](https://forum.langchain.com/u/livizy)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 3:17am UTC](https://forum.langchain.com/t/is-there-a-office-guidence-or-sample-talk-about-integretion-with-fastapi/1973 "2025-10-28T03:17:49Z")

</div>

Is there a office guidence or sample talk about integretion with fastapi?

---

## [How to set recursion\_limit for create\_agent (v1)?](https://forum.langchain.com/t/how-to-set-recursion-limit-for-create-agent-v1/1905)

<div class="topic-metadata">

**Author:** [@UK59](https://forum.langchain.com/u/UK59)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 11:04am UTC](https://forum.langchain.com/t/how-to-set-recursion-limit-for-create-agent-v1/1905 "2025-10-23T11:04:55Z")

</div>

Hey everyone, I’m running into this error when using the new create\_agent function (LangChain v1): Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion\_lim…

---

## [In LangChain, when converting MCP tools to StructuredTool, the langchain-mcp-adapters currently ignore the output schema of MCP tools, making it unable to transfer the MCP tool's output schema to Langgraph nodes' output messages](https://forum.langchain.com/t/in-langchain-when-converting-mcp-tools-to-structuredtool-the-langchain-mcp-adapters-currently-ignore-the-output-schema-of-mcp-tools-making-it-unable-to-transfer-the-mcp-tools-output-schema-to-langgraph-nodes-output-messages/1908)

<div class="topic-metadata">

**Author:** [@dai-jie](https://forum.langchain.com/u/dai-jie)\
**Replies:** 1\
**Last updated:** [October 23, 2025, 6:01am UTC](https://forum.langchain.com/t/in-langchain-when-converting-mcp-tools-to-structuredtool-the-langchain-mcp-adapters-currently-ignore-the-output-schema-of-mcp-tools-making-it-unable-to-transfer-the-mcp-tools-output-schema-to-langgraph-nodes-output-messages/1908 "2025-10-23T06:01:47Z")

</div>

The MCP tool contains an output schema to describe the structure of tool’s output. But I found that langchain StructuredTool does not contain similar properties. when converting to StructuredTool, langchain-mcp-adapters …

---

## [Lesson 5: Tools with MCP](https://forum.langchain.com/t/lesson-5-tools-with-mcp/1886)

<div class="topic-metadata">

**Author:** [@mcavdar](https://forum.langchain.com/u/mcavdar)\
**Replies:** 1\
**Last updated:** [October 21, 2025, 1:07pm UTC](https://forum.langchain.com/t/lesson-5-tools-with-mcp/1886 "2025-10-21T13:07:00Z")

</div>

Hi, I’m watching Quickstart: LangChain Essentials - Python, specifically Lesson 5: Tools with MCP, and I think there might be an issue around 1:00. We then establish our client with a time server. He uses standard IO f…

---

## [Can't add a new evaluator rule in LangSmith Academy module 5](https://forum.langchain.com/t/cant-add-a-new-evaluator-rule-in-langsmith-academy-module-5/1833)

<div class="topic-metadata">

**Author:** [@eric-burel](https://forum.langchain.com/u/eric-burel)\
**Replies:** 0\
**Last updated:** [October 15, 2025, 4:35pm UTC](https://forum.langchain.com/t/cant-add-a-new-evaluator-rule-in-langsmith-academy-module-5/1833 "2025-10-15T16:35:30Z")

</div>

When trying to setup an automation in LangSmith, I don’t see an “LLM-as-a-judge evaluator” option or any option that would let me connect an evaluator I’ve created to my project. I don’t see anything in the Evaluator…

---

## [LC Academy Cursor Setup](https://forum.langchain.com/t/lc-academy-cursor-setup/1812)

<div class="topic-metadata">

**Author:** [@atanus](https://forum.langchain.com/u/atanus)\
**Replies:** 0\
**Last updated:** [October 13, 2025, 7:59am UTC](https://forum.langchain.com/t/lc-academy-cursor-setup/1812 "2025-10-13T07:59:15Z")

</div>

(lc-academy-env) atanusen@MacBookPro langchain-academy % pip install -r requirements.txt ERROR: Ignored the following yanked versions: 0.0.8 ERROR: Could not find a version that satisfies the requirement langgraph (fro…

---

## [Can't clone public dataset in Langsmith Academy](https://forum.langchain.com/t/cant-clone-public-dataset-in-langsmith-academy/1770)

<div class="topic-metadata">

**Author:** [@eric-burel](https://forum.langchain.com/u/eric-burel)\
**Replies:** 0\
**Last updated:** [October 7, 2025, 4:10pm UTC](https://forum.langchain.com/t/cant-clone-public-dataset-in-langsmith-academy/1770 "2025-10-07T16:10:39Z")

</div>

Hey folks, in LangSmith academy module 2, pairwise experiment lesson, I cannot download the public dataset: client = Client()dataset = client.clone\_public\_dataset(“https://smith.langchain.com/public/9078d2f1-7bef-4ba7-b…

---

## [Update Name In Certificate?](https://forum.langchain.com/t/update-name-in-certificate/1528)

<div class="topic-metadata">

**Author:** [@aravindparappil](https://forum.langchain.com/u/aravindparappil)\
**Replies:** 2\
**Last updated:** [September 28, 2025, 8:24pm UTC](https://forum.langchain.com/t/update-name-in-certificate/1528 "2025-09-28T20:24:13Z")

</div>

Hello! I just completed the foundation course on LangChain academy (pretty awesome) but the certificate is made out to “Google User” (because I logged in with my Google account). I changed my name in account settings bu…

---

## [Deep Agents with Langraph - Strange Todo inconsistency](https://forum.langchain.com/t/deep-agents-with-langraph-strange-todo-inconsistency/1601)

<div class="topic-metadata">

**Author:** [@marksoreco](https://forum.langchain.com/u/marksoreco)\
**Replies:** 0\
**Last updated:** [September 19, 2025, 6:38pm UTC](https://forum.langchain.com/t/deep-agents-with-langraph-strange-todo-inconsistency/1601 "2025-09-19T18:38:31Z")

</div>

Hi all, I’m going through the deep-agents-from-scratch todos notebook and noticed when getting the final format\_messages(result) output, it shows 2 TODOs created, one for searching for the MCP info, and a 2nd for summari…

---

## [Deep Agents with LangGraph - asking to create openai api then using ANTHROPIC\_API\_KEY in env](https://forum.langchain.com/t/deep-agents-with-langgraph-asking-to-create-openai-api-then-using-anthropic-api-key-in-env/1585)

<div class="topic-metadata">

**Author:** [@stev-d](https://forum.langchain.com/u/stev-d)\
**Replies:** 3\
**Last updated:** [September 19, 2025, 6:37pm UTC](https://forum.langchain.com/t/deep-agents-with-langgraph-asking-to-create-openai-api-then-using-anthropic-api-key-in-env/1585 "2025-09-19T18:37:18Z")

</div>

Hi all, Just started the new course and wanted to get going and on setup page you are saying: Set up OpenAI API key If you don’t have an OpenAI API key, you can sign up here. but below in env file you are then having…

---

## [My First Day Here. Just To Announce Myself](https://forum.langchain.com/t/my-first-day-here-just-to-announce-myself/1592)

<div class="topic-metadata">

**Author:** [@AubinBakana](https://forum.langchain.com/u/AubinBakana)\
**Replies:** 0\
**Last updated:** [September 19, 2025, 2:03pm UTC](https://forum.langchain.com/t/my-first-day-here-just-to-announce-myself/1592 "2025-09-19T14:03:01Z")

</div>

I thought I’d share something to announce my joining the community here. I look forward to mingling with the many brilliant minds here. Thank you

---

## [Confusion following steps in Foundation: Introduction to LangGraph](https://forum.langchain.com/t/confusion-following-steps-in-foundation-introduction-to-langgraph/1526)

<div class="topic-metadata">

**Author:** [@Chirag](https://forum.langchain.com/u/Chirag)\
**Replies:** 0\
**Last updated:** [September 12, 2025, 8:47pm UTC](https://forum.langchain.com/t/confusion-following-steps-in-foundation-introduction-to-langgraph/1526 "2025-09-12T20:47:37Z")

</div>

Query in setting up LangGraph Studio Hey thanks for reading this. I am following Foundation: Introduction to LangGraph and following their setup process. I have cloned the repo, created an environment, installed the dep…

---

## [Langrap agent issues with cohere](https://forum.langchain.com/t/langrap-agent-issues-with-cohere/1524)

<div class="topic-metadata">

**Author:** [@pcsgithubid](https://forum.langchain.com/u/pcsgithubid)\
**Replies:** 0\
**Last updated:** [September 12, 2025, 2:41pm UTC](https://forum.langchain.com/t/langrap-agent-issues-with-cohere/1524 "2025-09-12T14:41:33Z")

</div>

the below code errors out # Create server parameters for stdio connection from mcp import ClientSession, StdioServerParameters from mcp.client.stdio import stdio\_client import asyncio from langchain\_mcp\_adapters.too…

---

## [Foundation course: Getting Set Up](https://forum.langchain.com/t/foundation-course-getting-set-up/1173)

<div class="topic-metadata">

**Author:** [@HJ37](https://forum.langchain.com/u/HJ37)\
**Replies:** 2\
**Last updated:** [August 18, 2025, 9:59pm UTC](https://forum.langchain.com/t/foundation-course-getting-set-up/1173 "2025-08-18T21:59:17Z")

</div>

I started the Foundation course today using VS code. For hour stuck with this error message when up to langgraph dev step. What did I do wrong? I have placed the .env file under same root folder as the requirements.txt …

---

## [Could you please tell me how langgraph can listen to external events](https://forum.langchain.com/t/could-you-please-tell-me-how-langgraph-can-listen-to-external-events/1082)

<div class="topic-metadata">

**Author:** [@gauravjethuri](https://forum.langchain.com/u/gauravjethuri)\
**Replies:** 1\
**Last updated:** [August 12, 2025, 1:51pm UTC](https://forum.langchain.com/t/could-you-please-tell-me-how-langgraph-can-listen-to-external-events/1082 "2025-08-12T13:51:45Z")

</div>

I was trying to understand how ambient agent works one thing i found missing from langchain academic course on Ambient Agents that is how langgraph can listen to specific events in the background. In the email assistant…

---

## [How to implementiert semantic cache with Agentic RAG](https://forum.langchain.com/t/how-to-implementiert-semantic-cache-with-agentic-rag/1034)

<div class="topic-metadata">

**Author:** [@travellingsasa](https://forum.langchain.com/u/travellingsasa)\
**Replies:** 0\
**Last updated:** [August 8, 2025, 4:56pm UTC](https://forum.langchain.com/t/how-to-implementiert-semantic-cache-with-agentic-rag/1034 "2025-08-08T16:56:30Z")

</div>

I’ve used langgraph to build an Agentic RAG and I want to add semantic caching to improve speer and cost. The out of the box solution described here … don’t seem to work with tool responses. Does LangGraph, langchai…

---

## [Displaying conditional edges in Mermaid diagram](https://forum.langchain.com/t/displaying-conditional-edges-in-mermaid-diagram/858)

<div class="topic-metadata">

**Author:** [@atc](https://forum.langchain.com/u/atc)\
**Replies:** 0\
**Last updated:** [July 31, 2025, 6:00pm UTC](https://forum.langchain.com/t/displaying-conditional-edges-in-mermaid-diagram/858 "2025-07-31T18:00:00Z")

</div>

Original question from JayS: Hi, in the course interrupt\_handler\_node uses Command(goto=…) for routing. Since no explicit conditional edge is needed between interrupt\_handler\_node and llm\_call how draw\_mermaid\_png know…

---

## [Module-6 of Introduction to LangGraph course has no /studio directory](https://forum.langchain.com/t/module-6-of-introduction-to-langgraph-course-has-no-studio-directory/536)

<div class="topic-metadata">

**Author:** [@bit-scientist](https://forum.langchain.com/u/bit-scientist)\
**Replies:** 0\
**Last updated:** [July 18, 2025, 1:56am UTC](https://forum.langchain.com/t/module-6-of-introduction-to-langgraph-course-has-no-studio-directory/536 "2025-07-18T01:56:05Z")

</div>

Would copying /studio in module-5 into module-6 do the job? If not, what should I do?

---

## [How to use uv to install packages? \[Windows\]](https://forum.langchain.com/t/how-to-use-uv-to-install-packages-windows/464)

<div class="topic-metadata">

**Author:** [@OranRAG](https://forum.langchain.com/u/OranRAG)\
**Replies:** 1\
**Last updated:** [July 17, 2025, 6:48pm UTC](https://forum.langchain.com/t/how-to-use-uv-to-install-packages-windows/464 "2025-07-17T18:48:42Z")

</div>

Hi! I want to learn Building Ambient Agents with LangGraph and I just stucked at the 1st chapter. Teachers present it with a mac book, but mine is a windows . How to install it with vs code? It seems that uv can not w…

[Previous page](https://forum.langchain.com/c/langchain-academy/10.md)

[Next page](https://forum.langchain.com/c/langchain-academy/10.md?page=2)
