You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from langchain.tools import DuckDuckGoSearchRun
search = DuckDuckGoSearchRun()
search.run("Who is winner of FIFA worldcup 2018?")
你应该期望如下输出:
The 2018 FIFA World Cup was the 21st FIFA World Cup, ... Mario Zagallo (Brazil) and Franz Beckenbauer (Germany) have also achieved the feat.
The text was updated successfully, but these errors were encountered:
dosubotbot
added
Ɑ: agent
Related to agents module
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
labels
Aug 24, 2023
Hi, @ZhuJD-China! I'm Dosu, and I'm helping the LangChain team manage our backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you encountered an error when using the 'DDGS' object in the context manager protocol. You provided detailed information about the system and reproduction steps. One of our users, "dosubot", suggested modifying the code in the 'DuckDuckGoSearchRun' class by adding the __enter__ and __exit__ methods, which would allow the 'DDGS' object to be used as a context manager. Since then, there haven't been any further updates or responses.
Before we close this issue, we wanted to check if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.
Thank you for your understanding and contribution to the LangChain project! Let us know if you have any further questions or concerns.
dosubotbot
added
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Nov 23, 2023
System Info
Invoking:
duckduckgo_search
with2023年8月的新闻
An error occurred: 'DDGS' object does not support the context manager protocol
Who can help?
@hwchase17
@agola11
Information
Related Components
Reproduction
初始化OpenAI Functions代理
agent = initialize_agent(
# tools,
)
Invoking:
duckduckgo_search
with2023年8月的新闻
An error occurred: 'DDGS' object does not support the context manager protocol
Expected behavior
该类提供了通过 DuckDuckGo 搜索引擎搜索的功能。
from langchain.tools import DuckDuckGoSearchRun
search = DuckDuckGoSearchRun()
search.run("Who is winner of FIFA worldcup 2018?")
你应该期望如下输出:
The 2018 FIFA World Cup was the 21st FIFA World Cup, ... Mario Zagallo (Brazil) and Franz Beckenbauer (Germany) have also achieved the feat.
The text was updated successfully, but these errors were encountered: