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
Specify an agent to use the DuckDuckGoSearchRun tool
e.g.
from langchain_community.tools import DuckDuckGoSearchRun
from crewai import Agent
ddg_search_tool = DuckDuckGoSearchRun()
agent = Agent(
role='Research Analyst',
goal='Provide up-to-date market analysis',
backstory='An expert analyst with a keen eye for market trends.',
tools=[ddg_search_tool]
)
# rest of the code ...
Expected behavior
DuckDuckGoSearchRun should continue to function as it did on previous versions of crewAI, e.g. 0.76.9
Screenshots/Code snippets
As per steps to reproduce
Operating System
Windows 11
Python Version
3.10
crewAI Version
0.80.0
crewAI Tools Version
0.14.0
Virtual Environment
Poetry
Evidence
Exception: 1 validation error for Agent
tools.0
Input should be a valid dictionary or instance of BaseTool [type=model_type, input_value=DuckDuckGoSearchRun(api_w...d='api', source='text')), input_type=DuckDuckGoSearchRun]
For further information visit https://errors.pydantic.dev/2.10/v/model_type
Possible Solution
None
Additional context
N/A
The text was updated successfully, but these errors were encountered:
danny-lowery
changed the title
[BUG]
[BUG]: DuckDuckGo LangChain tool results in an error
Nov 14, 2024
danny-lowery
changed the title
[BUG]: DuckDuckGo LangChain tool results in an error
[BUG]: DuckDuckGoSearchRun LangChain tool results in an error
Nov 14, 2024
Description
Using the LangChain DuckDuckGo Search tool results in an error
Steps to Reproduce
Specify an agent to use the
DuckDuckGoSearchRun
toole.g.
Expected behavior
DuckDuckGoSearchRun
should continue to function as it did on previous versions of crewAI, e.g.0.76.9
Screenshots/Code snippets
As per steps to reproduce
Operating System
Windows 11
Python Version
3.10
crewAI Version
0.80.0
crewAI Tools Version
0.14.0
Virtual Environment
Poetry
Evidence
Possible Solution
None
Additional context
N/A
The text was updated successfully, but these errors were encountered: