Skip to content
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

[BUG]: DuckDuckGoSearchRun LangChain tool results in an error #1605

Open
danny-lowery opened this issue Nov 14, 2024 · 0 comments
Open

[BUG]: DuckDuckGoSearchRun LangChain tool results in an error #1605

danny-lowery opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danny-lowery
Copy link

danny-lowery commented Nov 14, 2024

Description

Using the LangChain DuckDuckGo Search tool results in an error

Steps to Reproduce

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

@danny-lowery danny-lowery added the bug Something isn't working label Nov 14, 2024
@danny-lowery danny-lowery changed the title [BUG] [BUG]: DuckDuckGo LangChain tool results in an error Nov 14, 2024
@danny-lowery danny-lowery changed the title [BUG]: DuckDuckGo LangChain tool results in an error [BUG]: DuckDuckGoSearchRun LangChain tool results in an error Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant