Skip to content

Conversation

chaseleantj
Copy link
Contributor

Overview

Adds documentation for the langchain-scraperapi tool integration package

Type of change

Type: New documentation page

Related issues/PRs

Identical to the integration on the original LangChain v0 repository which was recently merged: langchain-ai/langchain#31973

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers

@github-actions github-actions bot added langchain For docs changes to LangChain python For content related to the Python version of LangChain projects oss labels Oct 2, 2025
tools = [ScraperAPITool(output_format="markdown")]
llm = ChatOpenAI(model_name="gpt-4o", temperature=0)

prompt = ChatPromptTemplate.from_messages(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @lnhsingh we need to update the templates to remove ChatPromptTemplate from template -- this isn't the use case chat prompt templates were made for

)

agent = create_tool_calling_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also need to remove agent executor and replace with the new agent

```python
import os

from langchain.agents import AgentExecutor, create_tool_calling_agent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will break with langchain v1

Copy link

vercel bot commented Oct 3, 2025

@chaseleantj is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

@chaseleantj
Copy link
Contributor Author

@eyurtsev Fixed. Could you kindly rereview?

@mdrxy mdrxy merged commit 0c17a93 into langchain-ai:main Oct 6, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants