-
Notifications
You must be signed in to change notification settings - Fork 107
docs: add langchain-scraperapi #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tools = [ScraperAPITool(output_format="markdown")] | ||
llm = ChatOpenAI(model_name="gpt-4o", temperature=0) | ||
|
||
prompt = ChatPromptTemplate.from_messages( |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
@chaseleantj is attempting to deploy a commit to the LangChain Team on Vercel. A member of the Team first needs to authorize it. |
@eyurtsev Fixed. Could you kindly rereview? |
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
docs dev
src/docs.json
if needed