a-holm
350b0038ee
fix(llm): improve message handling to support LLMs without content/tool_calls
...
This commit improves the message handling in the LLM class to gracefully handle
messages without 'content' or 'tool_calls' fields. Previously, the system would
raise a ValueError when encountering such messages, causing crashes when working
with models like Google's Gemini that sometimes return messages with different
structures.
Key changes:
- Reordered message processing to check for Message objects first
- Changed validation approach to silently skip malformed messages instead of crashing
- Removed the strict ValueError when content/tool_calls are missing
This change maintains compatibility with correctly formatted messages while
improving robustness when working with various LLM providers.
2025-03-14 21:01:13 +01: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
mannaandpoem
e844dfca34
Merge pull request #510 from the0807/feature/o3-mini
...
Support OpenAI Reasoning Models (o1, o3-mini)
2025-03-14 11:47:34 +08:00
xRay
89c9d904db
将工具选择从 ToolChoice.REQUIRED 更新为 ToolChoice.AUTO,以优化规划代理和规划流程的工具调用逻辑。
2025-03-14 09:46:46 +08: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
f9ce06adb8
opt: remove unnessary print
2025-03-13 00:50:30 +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
mannaandpoem
3db1a7fb56
Merge pull request #457 from cefengxu/10Mar2025cefengxu
...
base.py, the 'state' and 'current_step' should be reset after every loop
2025-03-12 22:25:31 +08:00
mannaandpoem
881ecaefa6
Update base.py
2025-03-12 22:25:02 +08:00
bubble65
7b48da0c59
add a new tool called terminal
2025-03-12 21:21:01 +08:00
Isaac
6b64b98b12
Merge branch 'main' into refactor/standardize-tool-choice-literals
2025-03-12 20:55:52 +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
mannaandpoem
cfdeb3ad4c
Merge pull request #465 from nezhazheng/main
...
Support configuring all BrowserConfig parameters within browser-use.
2025-03-12 20:26:14 +08:00
liangxinbing
74a4c8bef0
fix bug of abnormal exit for BrowserUseTool
2025-03-12 20:25:37 +08:00
liangxinbing
e6e31a2c13
update timeout to 300
2025-03-12 20:09:23 +08:00
zhengshuli
3cb4489cd5
Support configuring all BrowserConfig parameters within browser-use.
2025-03-12 17:57:43 +08:00
Matt Eng
eac3a6e24e
Standardize literals for role and tool choice type definitions
2025-03-12 00:15:31 -07:00
the0807
983e8f0d4b
Support OpenAI Reasoning Models (o1, o3-mini)
2025-03-12 14:33:32 +09:00
mannaandpoem
111a2bc6b1
Merge pull request #469 from cyzus/fix-infinite-loop-for-simple-query
...
fix infinite loop for simple query
2025-03-11 19:20:15 +08:00
Yizhou Chi
61d705f6e6
fix prompt order
2025-03-11 17:55:40 +08:00
Yizhou Chi
cafd4a18da
fix infinite loop
2025-03-11 17:39:28 +08:00
xiangjinyu
3a958944a0
Adjust code structure
2025-03-11 16:32:13 +08:00
xufeng8
e183913372
the 'state' and 'current_step' should be reset after every loop , cefengxu
2025-03-11 13:50:10 +08:00
liangxinbing
8d18c05350
replace max_steps to 20 for Manus
2025-03-11 13:14:43 +08:00
liangxinbing
eeefddf6bf
Bug Fixing based on basy.py
...
Repair from Bob Feng8 Xu
2025-03-11 13:13:24 +08:00
liangxinbing
229d6706a4
format code
2025-03-11 07:31:18 +08:00
rxdaozhang
34ede1c082
重构:使用PlanStepStatus枚举替代硬编码status
2025-03-11 01:23:16 +08:00
xyuzh
e6ed98e53c
[fix] fix overlong steps of thinking and avoid redundant steps after task completion && [add timer] set max time 1h to run the agent
2025-03-08 19:46:51 -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
cf3603dfcc
Merge branch 'mannaandpoem:main' into main
2025-03-08 17:47:30 +08:00
liangxinbing
56d138220a
fix typo in README;
...
log full arguments on parse json err;
remove empty prompt for main.py and run_flow.py;
2025-03-08 17:17:40 +08:00
mannaandpoem
41063bcd2b
Merge pull request #185 from XBsleepy/main
...
add the first example
2025-03-08 17:12:05 +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
XBsleepy
d921fc4248
update logger name to seconds level
2025-03-07 23:27:31 +08:00
Aria F
ecac3382ec
# feat: AzureOpenaiAPI support
2025-03-07 20:55:02 +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
xiangjinyu
4f21de86f1
update prompt
2025-03-07 03:18:29 +08:00
liangxinbing
07b24752b3
update README.md and app
2025-03-07 01:11:08 +08:00
xiangjinyu
cecd956cc1
add manus agent
2025-03-06 23:13:37 +08:00
xiangjinyu
5fc777aa42
add manus prompt
2025-03-06 23:11:05 +08:00