[PR #3850] docs: fix typo in hil how to doc #3505

Closed
opened 2026-02-20 17:48:43 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/3850

State: closed
Merged: Yes


Current text in the doc is incorrect:

Use the search tool to ask the user where they are, then look up the weather there

The search tool is not the one to use. Instead should just tell the model to ask the user.

In addition, an important step is missing and makes the code seem less impactful:

location = interrupt("Please provide your location:")

The question to ask the human is actually coming from the LLM, there is no need to hardcode it:

...
location = interrupt(ask.question)

Before merging, someone who validates this should push an update to cell outputs. I cleared it out from my branch because it made too many updates to the file and would make it harder to review.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/3850 **State:** closed **Merged:** Yes --- Current text in the doc is incorrect: ``` Use the search tool to ask the user where they are, then look up the weather there ``` The search tool is not the one to use. Instead should just tell the model to ask the user. In addition, an important step is missing and makes the code seem less impactful: ```python location = interrupt("Please provide your location:") ``` The question to ask the human is actually coming from the LLM, there is no need to hardcode it: ```python ... location = interrupt(ask.question) ``` Before merging, someone who validates this should push an update to cell outputs. I cleared it out from my branch because it made too many updates to the file and would make it harder to review.
yindo added the pull-request label 2026-02-20 17:48:43 -05:00
yindo closed this issue 2026-02-20 17:48:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#3505