Commit Graph

67 Commits

Author SHA1 Message Date
liangxinbing 55015797c6 Add type hint for WebSearch and update SearchSettings 2025-03-30 14:04:34 +08:00
liangxinbing 782687f3b7 update WebSearch Tool 2025-03-30 00:30:01 +08:00
mannaandpoem c28d036ee3 Merge pull request #864 from yihong0618/hy/fix_issue_787
fix: simple browser use tool desc for gpt4o max len close #787
2025-03-29 16:50:41 +08:00
mannaandpoem c7a3f465da Merge pull request #859 from minbang930/fix/extracted-content-properties
fix/extracted content properties
2025-03-22 14:20:32 +08:00
mannaandpoem d63e88f089 Merge pull request #772 from a-holm/fix-for-search-rate-limits
feat(search): Add configurable fallback engines and retry logic for robust web search
2025-03-21 01:56:21 +08:00
yihong0618 8567344eb3 fix: simple browser use tool desc for gpt4o max len close #787
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-03-20 15:56:57 +08:00
liangxinbing 6fa0b1be95 update SWEAgent 2025-03-20 09:02:50 +08:00
minbang930 eef10607e1 Fix using isort 2025-03-20 08:08:51 +09:00
minbang930 8535f41215 fix: Add properties to extracted_content object in browser tool schema
The OpenAI API was rejecting function declarations due to empty properties in
the extracted_content object type. This fix adds required properties to comply
with OpenAI's schema requirements:

- Add 'text' property for storing extracted page content
- Add 'metadata' object with 'source' property for content attribution
- Maintain existing functionality while satisfying API schema validation

Error resolved:
"GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[extracted_content].properties: should be non-empty for OBJECT type"
2025-03-20 07:49:46 +09:00
liangxinbing 74f438bde3 update mcp name 2025-03-20 02:03:20 +08:00
liangxinbing 8fca2ff1b7 Merge remote-tracking branch 'origin/main' 2025-03-20 01:39:58 +08:00
liangxinbing 14fa48e8d7 add mcp 2025-03-20 01:10:04 +08:00
Johan Holm 59a92257be Merge branch 'main' of https://github.com/a-holm/OpenManus into fix-for-search-rate-limits 2025-03-19 10:50:25 +01:00
Sheng Fan 44243a1b97 fix(browser_use_tool): reimplement screenshot logics to get JPEG data 2025-03-19 16:57:12 +08:00
Sheng Fan b9df45bc68 chore(app/tool): remove constructor in LocalFileOperator 2025-03-19 15:44:06 +08:00
Sheng Fan 7e3609f19f chore(file_operators): use utf-8 as default encoding 2025-03-19 14:10:07 +08:00
liangxinbing b7dcbfecb3 update extract_content action for BrowserUseTool 2025-03-19 13:27:08 +08:00
liangxinbing 402355533c format code 2025-03-19 13:24:49 +08:00
Isaac 8c85ea16a2 Merge pull request #805 from via007/add_bing_search
add bing search
2025-03-19 10:25:22 +08:00
via b9fdade6e4 Apply black and isort formatting 2025-03-19 09:15:51 +08:00
via 47adb33bd9 Apply black and isort formatting 2025-03-19 09:13:47 +08:00
Johan A. Holm fe44fe726d Merge branch 'main' into fix-for-search-rate-limits 2025-03-18 20:51:45 +01:00
liangxinbing dc42bd525a add BrowserAgent and update Manus 2025-03-18 22:51:27 +08:00
seeker 1204d841ae fix: fix bug 2025-03-18 17:56:29 +08:00
seeker 4df605e8db Merge remote-tracking branch 'upstream/main' into sandbox 2025-03-18 17:24:57 +08:00
via b62bf92e19 modified bing search 2025-03-18 16:57:29 +08:00
Johan Holm c7858c2eb4 Make sure to only include fallback search engines 2025-03-18 09:53:30 +01:00
via b95244a60b add bing search 2025-03-18 15:40:25 +08:00
xiangjinyu cc550af04b edit str_replace_editor.py 2025-03-18 14:25:23 +08:00
liangxinbing c3203e7fa3 update BrowserUseTool 2025-03-18 02:38:56 +08:00
liangxinbing 91d14a3a47 update llm, schema, BaseTool and BaseAgent 2025-03-18 02:31:39 +08:00
liangxinbing 9bdd820105 update BrowserUseTool 2025-03-17 23:50:42 +08:00
xiangjinyu 50ab26880e add get_current_state description 2025-03-17 20:18:10 +08: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
Cyzus 9bc267cef3 refine help text 2025-03-17 15:44:50 +08:00
Yizhou Chi cc1abe630c fix click 2025-03-17 15:22:50 +08: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