[PR #4576] docs: add requests to code block in customer-support.ipynb #3927

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

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

State: closed
Merged: No


Codeblock for Tools in customer-support tutorial is missing import requests: https://langchain-ai.github.io/langgraph/tutorials/customer-support/customer-support/#lookup-company-policies

Code block in question:

import re

import numpy as np
import openai
from langchain_core.tools import tool

response = requests.get(
    "https://storage.googleapis.com/benchmarks-artifacts/travel-db/swiss_faq.md"
)
response.raise_for_status()
faq_text = response.text

docs = [{"page_content": txt} for txt in re.split(r"(?=\n##)", faq_text)]

Added import to codeblock.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/4576 **State:** closed **Merged:** No --- Codeblock for Tools in customer-support tutorial is missing `import requests`: https://langchain-ai.github.io/langgraph/tutorials/customer-support/customer-support/#lookup-company-policies Code block in question: ```python import re import numpy as np import openai from langchain_core.tools import tool response = requests.get( "https://storage.googleapis.com/benchmarks-artifacts/travel-db/swiss_faq.md" ) response.raise_for_status() faq_text = response.text docs = [{"page_content": txt} for txt in re.split(r"(?=\n##)", faq_text)] ``` Added import to codeblock.
yindo added the pull-request label 2026-02-20 17:49:23 -05:00
yindo closed this issue 2026-02-20 17:49:23 -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#3927