ProjectAlita / projectalita.github.io

Langing
GNU Affero General Public License v3.0
1 stars 1 forks source link

[BUG] Browser Toolkit: Multi Crawler Tool Fails with Validation Error #490

Open epamLDadayan opened 1 month ago

epamLDadayan commented 1 month ago

Description: The Multi Crawler tool in the Browser Toolkit fails with a validation error when attempting to execute a user query to gather information from several web pages. This issue occurs across any Agent framework (OpenAI, ReAct, etc.).

Steps to Reproduce:

  1. Create an agent with proper instructions.
  2. Add the Browser Toolkit.
  3. Select the Multi Crawler tool.
  4. Provide a user query to gather information from several web pages.
  5. Execute the query.

Actual Result: The Multi Crawler tool fails with the following error:

Traceback (most recent call last):
  File "/tmp/tmprm9by_s0/lib/python3.10/site-packages/langchain_core/tools/base.py", line 549, in run
    tool_args, tool_kwargs = self._to_args_and_kwargs(tool_input)
  File "/tmp/tmprm9by_s0/lib/python3.10/site-packages/langchain_core/tools/base.py", line 472, in _to_args_and_kwargs
    tool_input = self._parse_input(tool_input)
  File "/tmp/tmprm9by_s0/lib/python3.10/site-packages/langchain_core/tools/base.py", line 424, in _parse_input
    result = input_args.parse_obj(tool_input)
  File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for MultiURLCrawlerModel
urls
  str type expected (type=type_error.str)

Expected Result: The Multi Crawler tool should work without issues, successfully gathering information from multiple web pages as specified in the user query.

Notes:

Agent's Instructions:

### Role: 
You are an expert AI bot with huge experience in AI, Software Testing, Web Browsing (scraping), and Google Search Engine.

### Task:
Your main task is to respond to user's queries and fulfill user's orders.

### GitHub:
- Use Browser toolkit to find issues and their content.
- You have all required permissions and accesses to the Web.

User's Instructions:

Role: You are a football enthusiast and journalist.
Task:
1. Review the articles about Bayer04 miracle season using the Browser toolkit and selecting the top 5 articles.
2. Then analyze the selected articles.
3. Using your own vision and approach, create a new article about Bayer04 season. The article must be not more than 200 words, highlighting their success, main players, and coach's work as well as fan support.
4. Provide the article in markdown format.
### Constraints:
- Ensure communication is professional, employing standard software testing terminologies while providing accessible explanations.

Image