32 Commits

Author SHA1 Message Date
Johan Holm
c7858c2eb4 Make sure to only include fallback search engines 2025-03-18 09:53:30 +01:00
Johan Holm
9fa12e594c update from pre-commit 2025-03-17 11:05:03 +01:00
Johan Holm
711c2805e4 feat(search): Add robust fallback system with configurable retries and enhanced error handling
- Implement multi-engine failover system with configurable fallback order
    - Add retry logic with exponential backoff and rate limit detection
    - Introduce search configuration options:
      * fallback_engines: Ordered list of backup search providers
      * retry_delay: Seconds between retry batches (default: 60)
      * max_retries: Maximum system-wide retry attempts (default: 3)
    - Improve error resilience with:
      - Automatic engine switching on 429/Too Many Requests
      - Full system retries after configurable cooldown periods
      - Detailed logging for diagnostics and monitoring
    - Enhance engine prioritization logic:
      1. Primary configured engine
      2. Configured fallback engines
      3. Remaining available engines

    Example configuration:
    [search]
    engine = "Google"
    fallback_engines = ["DuckDuckGo", "Baidu"]  # Cascading fallback order
    retry_delay = 60                            # 1 minute between retry batches
    max_retries = 3                             # Attempt 3 full system retries

    This addresses critical reliability issues by:
    - Preventing search failures due to single-engine rate limits
    - Enabling recovery from transient network errors
    - Providing operational flexibility through configurable parameters
    - Improving visibility through granular logging (INFO/WARN/ERROR)
2025-03-17 10:43:42 +01:00
liangxinbing
114bd46720 update config.example.toml and format file_saver.py 2025-03-17 00:04:17 +08:00
mannaandpoem
0d4cedd51d
Merge pull request #50 from obiscr/wuzi/generated-files
place the generated file in the workspace directory
2025-03-16 18:57:53 +08:00
liangxinbing
5e35f01ea8 format code 2025-03-16 12:57:06 +08:00
Caique Minhare [Cake]
6ea5a4d1ef
Merge branch 'main' into refactor/web-search-tool 2025-03-14 15:04:55 -03:00
xiangjinyu
c0c03c0bef fix _handle_special_tool bug 2025-03-14 13:25:43 +08:00
liangxinbing
9c7834eff2 update readme; format code; update config.example.toml 2025-03-14 12:20:59 +08:00
ca-ke
cba275d405 refactor: enhance web search functionality with engine fallback and retry mechanism 2025-03-13 14:17:57 -03:00
Isaac
be5c2646af
Merge pull request #543 from aacedar/thread_safe
update python_execute thread safe
2025-03-13 21:15:17 +08:00
Kingtous
2b9ef4ea08 fix: perform search on query 2025-03-13 09:10:14 +08:00
Kingtous
86d2a7d6bf feat: implement duckduckgo search, abstract further 2025-03-13 09:05:14 +08:00
Kingtous
b7774b18ef opt: abstract web search interface, code cleanup 2025-03-13 08:31:40 +08:00
Kingtous
bbaff4f095 feat: add baidu search tool and optional config 2025-03-13 00:27:48 +08:00
836304831
ed4b78dc37 update python_execute safe 2025-03-12 23:33:37 +08:00
bubble65
7b48da0c59 add a new tool called terminal 2025-03-12 21:21:01 +08:00
xiangjinyu
c6cd296108 add pre-commit 2025-03-12 20:52:45 +08:00
xiangjinyu
f197b2e3d2 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	app/agent/manus.py
2025-03-12 20:35:33 +08:00
xiangjinyu
31c7e69faf add max_steps 2025-03-12 20:27:14 +08:00
zhengshuli
3cb4489cd5 Support configuring all BrowserConfig parameters within browser-use. 2025-03-12 17:57:43 +08:00
xiangjinyu
3a958944a0 Adjust code structure 2025-03-11 16:32:13 +08:00
Sheng Fan
0d0f8ab233 chore(browser_use_tool): fix code style according to pre-commit 2025-03-09 11:30:41 +08:00
Sheng Fan
7090490f75 feat(browser_use_tool): add 'read_links' action 2025-03-08 18:23:40 +08:00
Sheng Fan
6b77a99448 feat(browser_use_tool): add 'get_text' action to browser use tool 2025-03-08 16:45:18 +08:00
liangxinbing
dc28e9187b adjust code format 2025-03-08 15:54:23 +08:00
Wuzi
1086a9788a place the generated file in the workspace directory 2025-03-07 14:40:42 +08:00
liangxinbing
64786fd3b5 update toolcall, planning use and README.md 2025-03-07 04:01:23 +08:00
xiangjinyu
d95c47e5d6 fix file_saver.py bug 2025-03-07 03:19:00 +08:00
liangxinbing
07b24752b3 update README.md and app 2025-03-07 01:11:08 +08:00
xiangjinyu
04a1e0a504 add 4 tools PythonExecute(), GoogleSearch(), BrowserUseTool(), FileSaver() 2025-03-06 23:10:14 +08:00
liangxinbing
d028e64a98 init project 2025-03-06 22:57:07 +08:00