Skip to content

Update guided_tour.mdx #1258

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sharmax-vikas
Copy link

1. Default DuckDuckGoSearchTool:

When you initialize a CodeAgent with add_base_tools=True (which is the default), it automatically includes a DuckDuckGoSearchTool.

This tool is internally assigned the name "web_search". This is done behind the scenes within the CodeAgent class. You don't see this explicitly in your code, but it's important to be aware of it.

2. Your Custom web_agent:

You create a CodeAgent instance called web_agent.
You explicitly give it the name "web_search" using the name="web_search" argument.

3. The Conflict:

Now you have two entities within the CodeAgent environment that share the same name: The default DuckDuckGoSearchTool (automatically named "web_search") Your custom web_agent (also named "web_search")

1. Default DuckDuckGoSearchTool:

When you initialize a CodeAgent with add_base_tools=True (which is the default), it automatically includes a DuckDuckGoSearchTool.

This tool is internally assigned the name "web_search". This is done behind the scenes within the CodeAgent class. You don't see this explicitly in your code, but it's important to be aware of it.

2. Your Custom web_agent:

You create a CodeAgent instance called web_agent.
You explicitly give it the name "web_search" using the name="web_search" argument.

3. The Conflict:

Now you have two entities within the CodeAgent environment that share the same name:
The default DuckDuckGoSearchTool (automatically named "web_search")
Your custom web_agent (also named "web_search")
@aymeric-roucher
Copy link
Collaborator

add_base_tools defaults to False so this shouldn't happen in the guided tour. Did you get a conflict?

@sharmax-vikas
Copy link
Author

image
image

@sharmax-vikas
Copy link
Author

I think it's not depend on add_base_tools = True or False.

Key reason of conflict

The default DuckDuckGoSearchTool (automatically named "web_search"). Your custom web_agent (also named "web_search").

Solution

I changed the name from "web_search" to "my_web_search_agent"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants