Skip to content

[Feature Request] BrowserToolkit add timeout setting #1831

@Wendong-Fan

Description

@Wendong-Fan

Required prerequisites

Motivation

BrowserToolkit add timeout setting

raceback (most recent call last):
  File "/Users/yaoting.2/workspace/owl/owl/run.py", line 141, in <module>
    main()
  File "/Users/yaoting.2/workspace/owl/owl/run.py", line 134, in main
    answer, chat_history, token_count = run_society(society)
  File "/Users/yaoting.2/workspace/owl/owl/utils/enhanced_role_playing.py", line 384, in run_society
    assistant_response, user_response = society.step(input_msg)
  File "/Users/yaoting.2/workspace/owl/owl/utils/enhanced_role_playing.py", line 247, in step
    assistant_response = self.assistant_agent.step(modified_user_msg)
  File "/opt/homebrew/anaconda3/envs/owl/lib/python3.10/site-packages/camel/agents/chat_agent.py", line 513, in step
    tool_call_records.append(self._execute_tool(tool_call_request))
  File "/opt/homebrew/anaconda3/envs/owl/lib/python3.10/site-packages/camel/agents/chat_agent.py", line 1046, in _execute_tool
    result = tool(**args)
  File "/opt/homebrew/anaconda3/envs/owl/lib/python3.10/site-packages/camel/toolkits/function_tool.py", line 395, in __call__
    raise ValueError(
ValueError: Execution of function browser_simulation failed with arguments () and {'round_limit': 12, 'start_url': 'https://www.accuweather.com/en/cn/beijing/101924/current-weather/101924', 'task_prompt': 'Retrieve the current weather information for Beijing.'}. Error: Page.goto: Timeout 30000ms exceeded.
Call log:
  - navigating to "https://www.accuweather.com/en/cn/beijing/101924/current-weather/101924", waiting until "load"

Solution

No response

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

P0Task with high level priorityenhancementNew feature or request

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions