From 31e865d88ed012721a72108678a26cd20afb9d46 Mon Sep 17 00:00:00 2001
From: Xiaotian Jin
Date: Fri, 14 Mar 2025 17:20:23 +0300
Subject: [PATCH 01/14] update Readme: add pre-built option in running with
docker
---
README.md | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index db2e5d0..ddf6021 100644
--- a/README.md
+++ b/README.md
@@ -64,16 +64,32 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
- [📋 Table of Contents](#-table-of-contents)
- [🔥 News](#-news)
- [🎬 Demo Video](#-demo-video)
-- [✨️ Core Features](#-core-features)
+- [✨️ Core Features](#️-core-features)
- [🛠️ Installation](#️-installation)
- - [**Clone the Github repository**](#clone-the-github-repository)
- - [**Set up Environment**](#set-up-environment)
- - [**Install Dependencies**](#install-dependencies)
+ - [Option 1: Using uv (Recommended)](#option-1-using-uv-recommended)
+ - [Option 2: Using venv and pip](#option-2-using-venv-and-pip)
+ - [Option 3: Using conda](#option-3-using-conda)
- [**Setup Environment Variables**](#setup-environment-variables)
+ - [Option 1: Using a `.env` File (Recommended)](#option-1-using-a-env-file-recommended)
+ - [Option 2: Setting Environment Variables Directly](#option-2-setting-environment-variables-directly)
- [**Running with Docker**](#running-with-docker)
- [🚀 Quick Start](#-quick-start)
+ - [Try MCP (Model Context Protocol) Integration](#try-mcp-model-context-protocol-integration)
+ - [Basic Usage](#basic-usage)
+ - [Running with Different Models](#running-with-different-models)
+ - [Model Requirements](#model-requirements)
+ - [Supported Models](#supported-models)
+ - [Example Tasks](#example-tasks)
- [🧰 Toolkits and Capabilities](#-toolkits-and-capabilities)
+ - [Model Context Protocol (MCP)](#model-context-protocol-mcp)
+ - [Available Toolkits](#available-toolkits)
+ - [Available Toolkits](#available-toolkits-1)
+ - [Multimodal Toolkits (Require multimodal model capabilities)](#multimodal-toolkits-require-multimodal-model-capabilities)
+ - [Text-Based Toolkits](#text-based-toolkits)
+ - [Customizing Your Configuration](#customizing-your-configuration)
- [🌐 Web Interface](#-web-interface)
+ - [Starting the Web UI](#starting-the-web-ui)
+ - [Features](#features)
- [🧪 Experiments](#-experiments)
- [⏱️ Future Plans](#️-future-plans)
- [📄 License](#-license)
@@ -82,6 +98,7 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
- [🔥 Community](#-community)
- [❓ FAQ](#-faq)
- [📚 Exploring CAMEL Dependency](#-exploring-camel-dependency)
+ - [Accessing CAMEL Source Code](#accessing-camel-source-code)
- [⭐ Star History](#-star-history)
@@ -261,8 +278,10 @@ cd owl
cp owl/.env_template owl/.env
# Edit the .env file and fill in your API keys
+# Option 1: Using pre-built docker image
+docker run -it --rm --env-file owl/.env mugglejinx/owl
-# Option 1: Using docker-compose directly
+# Option 2: Using docker-compose directly
cd .container
docker-compose up -d
@@ -278,7 +297,7 @@ playwright install-deps
#run example demo script
xvfb-python examples/run.py
-# Option 2: Build and run using the provided scripts
+# Option 3: Build and run using the provided scripts
cd .container
chmod +x build_docker.sh
./build_docker.sh
From 1d721f28adf08e86fa5e78da9bb3a4ea9d17155d Mon Sep 17 00:00:00 2001
From: Xiaotian Jin
Date: Fri, 14 Mar 2025 17:37:48 +0300
Subject: [PATCH 02/14] add image in docker-compose.yml
---
.container/docker-compose.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.container/docker-compose.yml b/.container/docker-compose.yml
index 21048d4..0f6762c 100644
--- a/.container/docker-compose.yml
+++ b/.container/docker-compose.yml
@@ -1,5 +1,6 @@
services:
owl:
+ image: mugglejinx/owl:latest
build:
context: ..
dockerfile: .container/Dockerfile
From 31950a41a2d26aa456d8a31d45fc208b804d4ce0 Mon Sep 17 00:00:00 2001
From: Xiaotian Jin
Date: Sat, 15 Mar 2025 11:18:35 +0300
Subject: [PATCH 03/14] fix Dockerfile, update readme
---
.container/Dockerfile | 3 ++-
.container/docker-compose.yml | 11 ++++++++---
README.md | 8 +++-----
3 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/.container/Dockerfile b/.container/Dockerfile
index 7054876..2393ed9 100644
--- a/.container/Dockerfile
+++ b/.container/Dockerfile
@@ -15,13 +15,14 @@ WORKDIR /app
# 安装系统依赖(合并为一个RUN命令减少层数)
RUN apt-get update && apt-get install -y --no-install-recommends \
curl git ffmpeg libsm6 libxext6 xvfb xauth x11-utils \
- gcc python3-dev \
+ build-essential python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 复制项目文件
COPY owl/ ./owl/
COPY licenses/ ./licenses/
COPY assets/ ./assets/
+COPY examples/ ./examples/
COPY README.md .
COPY README_zh.md .
COPY pyproject.toml .
diff --git a/.container/docker-compose.yml b/.container/docker-compose.yml
index 0f6762c..e099627 100644
--- a/.container/docker-compose.yml
+++ b/.container/docker-compose.yml
@@ -1,9 +1,14 @@
services:
owl:
+ # Option 1: Use pre-built image from Docker Hub
image: mugglejinx/owl:latest
- build:
- context: ..
- dockerfile: .container/Dockerfile
+
+ # Option 2: Build image locally
+ # Uncomment the following lines and comment out the 'image' line above to build locally
+ # build:
+ # context: ..
+ # dockerfile: .container/Dockerfile
+
volumes:
# 挂载.env文件,方便配置API密钥
- ../owl/.env:/app/owl/.env
diff --git a/README.md b/README.md
index ddf6021..89e93db 100644
--- a/README.md
+++ b/README.md
@@ -278,10 +278,8 @@ cd owl
cp owl/.env_template owl/.env
# Edit the .env file and fill in your API keys
-# Option 1: Using pre-built docker image
-docker run -it --rm --env-file owl/.env mugglejinx/owl
-
-# Option 2: Using docker-compose directly
+# Option 1: Using docker-compose directly
+# (By default it's using pre-built online image, you can also check the docker-compose.yml for building locally)
cd .container
docker-compose up -d
@@ -297,7 +295,7 @@ playwright install-deps
#run example demo script
xvfb-python examples/run.py
-# Option 3: Build and run using the provided scripts
+# Option 2: Build and run using the provided scripts
cd .container
chmod +x build_docker.sh
./build_docker.sh
From a2a1047cf08d30971c7ebb782fd2deb80592ab31 Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 19:51:59 +0800
Subject: [PATCH 04/14] update examample
---
owl/webapp.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/owl/webapp.py b/owl/webapp.py
index a3a18e7..42f2eda 100644
--- a/owl/webapp.py
+++ b/owl/webapp.py
@@ -1070,7 +1070,7 @@ def create_ui():
label="Question",
elem_id="question_input",
show_copy_button=True,
- value="Open Baidu search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.",
+ value="Open Google search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.",
)
# Enhanced module selection dropdown
@@ -1212,7 +1212,7 @@ def create_ui():
# Example questions
examples = [
- "Open Baidu search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.",
+ "Open Google search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file.",
"Browse Amazon and find a product that is attractive to programmers. Please provide the product name and price",
"Write a hello world python file and save it locally",
]
From 9ef8d4254e1873d47cb9521c24aecac2a8fa446c Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:19:30 +0800
Subject: [PATCH 05/14] update issue list
---
README.md | 3 ++-
README_zh.md | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 89e93db..d381370 100644
--- a/README.md
+++ b/README.md
@@ -550,7 +550,8 @@ We welcome contributions from the community! Here's how you can help:
3. Submit pull requests with your improvements
**Current Issues Open for Contribution:**
-- [#1857](https://github.com/camel-ai/camel/issues/1857)
+- [#1868](https://github.com/camel-ai/camel/issues/1868)
+- [#1866](https://github.com/camel-ai/camel/issues/1866)
- [#1770](https://github.com/camel-ai/camel/issues/1770)
- [#1712](https://github.com/camel-ai/camel/issues/1712)
- [#1537](https://github.com/camel-ai/camel/issues/1537)
diff --git a/README_zh.md b/README_zh.md
index 43349bd..8d303f5 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -520,7 +520,8 @@ python examples/run_gaia_roleplaying.py
3. 提交包含您改进的拉取请求
**当前开放贡献的问题:**
-- [#1857](https://github.com/camel-ai/camel/issues/1857)
+- [#1868](https://github.com/camel-ai/camel/issues/1868)
+- [#1866](https://github.com/camel-ai/camel/issues/1866)
- [#1770](https://github.com/camel-ai/camel/issues/1770)
- [#1712](https://github.com/camel-ai/camel/issues/1712)
- [#1537](https://github.com/camel-ai/camel/issues/1537)
From 2d31d24e991651397e06c341cda6e600a97b0fe6 Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:33:20 +0800
Subject: [PATCH 06/14] update
---
README.md | 24 ++++++++++++++++++++++--
README_zh.md | 24 +++++++++++++++++++++++-
2 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index d381370..29e46d0 100644
--- a/README.md
+++ b/README.md
@@ -121,7 +121,19 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
-- **[2025.03.15]**: Restructured the web-based user interface architecture for improved system stability; optimized OWL Agent execution mechanisms for enhanced efficiency and performance; integrated Baidu search engine into SearchToolkit.
+
+
+ 🎉 Latest Major Update - March 15, 2025
+
+
+ Significant Improvements:
+
+ - Restructured web-based UI architecture for enhanced stability 🏗️
+ - Optimized OWL Agent execution mechanisms for better performance 🚀
+
+
Try it now and experience the improved performance in your automation tasks!
+
+
- **[2025.03.12]**: Added Bocha search in SearchToolkit, integrated Volcano Engine model platform, and enhanced Azure and OpenAI Compatible models with structured output and tool calling.
- **[2025.03.11]**: We added MCPToolkit, FileWriteToolkit, and TerminalToolkit to enhance OWL agents with MCP tool calling, file writing capabilities, and terminal command execution.
- **[2025.03.09]**: We added a web-based user interface that makes it easier to interact with the system.
@@ -476,7 +488,15 @@ Selecting only necessary toolkits optimizes performance and reduces resource usa
# 🌐 Web Interface
-OWL includes an intuitive web-based user interface that makes it easier to interact with the system.
+
+
+ 🚀 Enhanced Web Interface Now Available!
+
+
+ Experience improved system stability and optimized performance with our latest update.
+ Start exploring the power of OWL through our user-friendly interface!
+
+
## Starting the Web UI
diff --git a/README_zh.md b/README_zh.md
index 8d303f5..39021ec 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -104,7 +104,19 @@
-- **[2025.03.15]**: 重构网页用户界面,提升系统稳定性;优化OWL Agent的运行机制,提高执行效率与性能;在SearchToolkit中整合百度搜索引擎
+
+
+ 🎉 最新重大更新 - 2025年3月15日
+
+
+ 重要改进:
+
+ - 重构网页用户界面架构,显著提升系统稳定性 🏗️
+ - 优化OWL Agent执行机制,大幅提升性能与效率 🚀
+
+
立即体验全新升级的自动化任务处理能力!
+
+
- **[2025.03.12]**: 在SearchToolkit中添加了Bocha搜索功能,集成了火山引擎模型平台,并更新了Azure和OpenAI Compatible模型的结构化输出和工具调用能力。
- **[2025.03.11]**: 我们添加了 MCPToolkit、FileWriteToolkit 和 TerminalToolkit,增强了 OWL Agent 的 MCP(模型上下文协议)集成、文件写入能力和终端命令执行功能。MCP 作为一个通用协议层,标准化了 AI 模型与各种数据源和工具的交互方式。
- **[2025.03.09]**: 我们添加了基于网页的用户界面,使系统交互变得更加简便。
@@ -449,6 +461,16 @@ assistant_agent_kwargs = {"model": models["assistant"], "tools": tools}
# 🌐 网页界面
+
+
+ 🚀 全新升级的网页界面现已发布!
+
+
+ 体验更稳定的系统性能和优化后的执行效率。
+ 通过我们直观的界面,开启OWL强大功能的探索之旅!
+
+
+
OWL 现在包含一个基于网页的用户界面,使与系统交互变得更加容易。要启动网页界面,请运行:
```bash
From 4bf41f332b9b1219955bffd2aca45bdb9158681f Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:34:46 +0800
Subject: [PATCH 07/14] update
---
README.md | 44 +-------------------------------------------
README_zh.md | 28 +---------------------------
2 files changed, 2 insertions(+), 70 deletions(-)
diff --git a/README.md b/README.md
index 29e46d0..1119a96 100644
--- a/README.md
+++ b/README.md
@@ -58,49 +58,6 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
-
-# 📋 Table of Contents
-
-- [📋 Table of Contents](#-table-of-contents)
-- [🔥 News](#-news)
-- [🎬 Demo Video](#-demo-video)
-- [✨️ Core Features](#️-core-features)
-- [🛠️ Installation](#️-installation)
- - [Option 1: Using uv (Recommended)](#option-1-using-uv-recommended)
- - [Option 2: Using venv and pip](#option-2-using-venv-and-pip)
- - [Option 3: Using conda](#option-3-using-conda)
- - [**Setup Environment Variables**](#setup-environment-variables)
- - [Option 1: Using a `.env` File (Recommended)](#option-1-using-a-env-file-recommended)
- - [Option 2: Setting Environment Variables Directly](#option-2-setting-environment-variables-directly)
- - [**Running with Docker**](#running-with-docker)
-- [🚀 Quick Start](#-quick-start)
- - [Try MCP (Model Context Protocol) Integration](#try-mcp-model-context-protocol-integration)
- - [Basic Usage](#basic-usage)
- - [Running with Different Models](#running-with-different-models)
- - [Model Requirements](#model-requirements)
- - [Supported Models](#supported-models)
- - [Example Tasks](#example-tasks)
-- [🧰 Toolkits and Capabilities](#-toolkits-and-capabilities)
- - [Model Context Protocol (MCP)](#model-context-protocol-mcp)
- - [Available Toolkits](#available-toolkits)
- - [Available Toolkits](#available-toolkits-1)
- - [Multimodal Toolkits (Require multimodal model capabilities)](#multimodal-toolkits-require-multimodal-model-capabilities)
- - [Text-Based Toolkits](#text-based-toolkits)
- - [Customizing Your Configuration](#customizing-your-configuration)
-- [🌐 Web Interface](#-web-interface)
- - [Starting the Web UI](#starting-the-web-ui)
- - [Features](#features)
-- [🧪 Experiments](#-experiments)
-- [⏱️ Future Plans](#️-future-plans)
-- [📄 License](#-license)
-- [🖊️ Cite](#️-cite)
-- [🤝 Contributing](#-contributing)
-- [🔥 Community](#-community)
-- [❓ FAQ](#-faq)
-- [📚 Exploring CAMEL Dependency](#-exploring-camel-dependency)
- - [Accessing CAMEL Source Code](#accessing-camel-source-code)
-- [⭐ Star History](#-star-history)
-
# 🔥 News
@@ -134,6 +91,7 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
Try it now and experience the improved performance in your automation tasks!
+
- **[2025.03.12]**: Added Bocha search in SearchToolkit, integrated Volcano Engine model platform, and enhanced Azure and OpenAI Compatible models with structured output and tool calling.
- **[2025.03.11]**: We added MCPToolkit, FileWriteToolkit, and TerminalToolkit to enhance OWL agents with MCP tool calling, file writing capabilities, and terminal command execution.
- **[2025.03.09]**: We added a web-based user interface that makes it easier to interact with the system.
diff --git a/README_zh.md b/README_zh.md
index 39021ec..c3fa9eb 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -59,33 +59,6 @@
-
-# 📋 目录
-
-- [📋 目录](#-目录)
-- [🔥 新闻](#-新闻)
-- [🎬 演示视频](#-演示视频)
-- [✨️ 核心功能](#-核心功能)
-- [🛠️ 安装](#️-安装)
- - [**选项1:使用 uv(推荐)**](#选项1使用-uv推荐)
- - [**选项2:使用 venv 和 pip**](#选项2使用-venv-和-pip)
- - [**选项3:使用 conda**](#选项3使用-conda)
- - [**设置环境变量**](#设置环境变量)
- - [**使用Docker运行**](#使用docker运行)
-- [🚀 快速开始](#-快速开始)
-- [🧰 工具包与功能](#-工具包与功能)
-- [🌐 网页界面](#-网页界面)
-- [🧪 实验](#-实验)
-- [⏱️ 未来计划](#️-未来计划)
-- [📄 许可证](#-许可证)
-- [🖊️ 引用](#️-引用)
-- [🤝 贡献](#-贡献)
-- [🔥 社区](#-社区)
-- [❓ 常见问题](#-常见问题)
-- [📚 探索 CAMEL 依赖](#-探索-camel-依赖)
-- [⭐ Star History](#-star-history)
-
-
# 🔥 新闻
@@ -117,6 +90,7 @@
立即体验全新升级的自动化任务处理能力!
+
- **[2025.03.12]**: 在SearchToolkit中添加了Bocha搜索功能,集成了火山引擎模型平台,并更新了Azure和OpenAI Compatible模型的结构化输出和工具调用能力。
- **[2025.03.11]**: 我们添加了 MCPToolkit、FileWriteToolkit 和 TerminalToolkit,增强了 OWL Agent 的 MCP(模型上下文协议)集成、文件写入能力和终端命令执行功能。MCP 作为一个通用协议层,标准化了 AI 模型与各种数据源和工具的交互方式。
- **[2025.03.09]**: 我们添加了基于网页的用户界面,使系统交互变得更加简便。
From a9546c1b1323188ac4c56568d75405e29183e9c5 Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:36:23 +0800
Subject: [PATCH 08/14] udpate readme
---
README.md | 15 ---------------
README_zh.md | 15 ---------------
2 files changed, 30 deletions(-)
diff --git a/README.md b/README.md
index 1119a96..6639201 100644
--- a/README.md
+++ b/README.md
@@ -277,21 +277,6 @@ For more detailed Docker usage instructions, including cross-platform support, o
# 🚀 Quick Start
-## Try MCP (Model Context Protocol) Integration
-
-Experience the power of MCP by running our example that demonstrates multi-agent information retrieval and processing:
-
-```bash
-# Set up MCP servers (one-time setup)
-npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
-npx @wonderwhy-er/desktop-commander setup
-
-# Run the MCP example
-python examples/run_mcp.py
-```
-
-This example showcases how OWL agents can seamlessly interact with file systems, web automation, and information retrieval through the MCP protocol. Check out `examples/run_mcp.py` for the full implementation.
-
## Basic Usage
After installation and setting up your environment variables, you can start using OWL right away:
diff --git a/README_zh.md b/README_zh.md
index c3fa9eb..c2a3605 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -270,21 +270,6 @@ chmod +x build_docker.sh
# 🚀 快速开始
-## 尝试 MCP(模型上下文协议)集成
-
-体验 MCP 的强大功能,运行我们的示例来展示多智能体信息检索和处理:
-
-```bash
-# 设置 MCP 服务器(仅需一次性设置)
-npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
-npx @wonderwhy-er/desktop-commander setup
-
-# 运行 MCP 示例
-python examples/run_mcp.py
-```
-
-这个示例展示了 OWL 智能体如何通过 MCP 协议无缝地与文件系统、网页自动化和信息检索进行交互。查看 `examples/run_mcp.py` 了解完整实现。
-
## 基本用法
运行以下示例:
From ae90e8c5cd2ef578bb7622db591e67896b127990 Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:38:29 +0800
Subject: [PATCH 09/14] update
---
README.md | 2 ++
README_zh.md | 2 ++
2 files changed, 4 insertions(+)
diff --git a/README.md b/README.md
index 6639201..e3556b7 100644
--- a/README.md
+++ b/README.md
@@ -385,6 +385,8 @@ tools = [
SearchToolkit().search_duckduckgo,
SearchToolkit().search_google, # Comment out if unavailable
SearchToolkit().search_wiki,
+ SearchToolkit().search_bocha,
+ SearchToolkit().search_baidu,
*ExcelToolkit().get_tools(),
*DocumentProcessingToolkit(model=models["document"]).get_tools(),
*FileWriteToolkit(output_dir="./").get_tools(),
diff --git a/README_zh.md b/README_zh.md
index c2a3605..bf5ccc4 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -374,6 +374,8 @@ tools = [
SearchToolkit().search_duckduckgo,
SearchToolkit().search_google, # 如果不可用请注释
SearchToolkit().search_wiki,
+ SearchToolkit().search_bocha,
+ SearchToolkit().search_baidu,
*ExcelToolkit().get_tools(),
*DocumentProcessingToolkit(model=models["document"]).get_tools(),
*FileWriteToolkit(output_dir="./").get_tools(),
From 8880ec4e20933f9e3af8a3931eae7902ddd5cd94 Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:41:20 +0800
Subject: [PATCH 10/14] update
---
examples/run_deepseek_zh.py | 1 +
examples/run_qwen_mini_zh.py | 2 +-
examples/run_qwen_zh.py | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/run_deepseek_zh.py b/examples/run_deepseek_zh.py
index 3228b6d..d67b3ae 100644
--- a/examples/run_deepseek_zh.py
+++ b/examples/run_deepseek_zh.py
@@ -71,6 +71,7 @@ def construct_society(question: str) -> RolePlaying:
*CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(),
SearchToolkit().search_duckduckgo,
SearchToolkit().search_wiki,
+ SearchToolkit().search_baidu,
*ExcelToolkit().get_tools(),
*FileWriteToolkit(output_dir="./").get_tools(),
]
diff --git a/examples/run_qwen_mini_zh.py b/examples/run_qwen_mini_zh.py
index 0ba81f1..b8d9d2c 100644
--- a/examples/run_qwen_mini_zh.py
+++ b/examples/run_qwen_mini_zh.py
@@ -70,7 +70,7 @@ def construct_society(question: str) -> RolePlaying:
planning_agent_model=planning_model,
output_language="Chinese",
).get_tools(),
- SearchToolkit().search_duckduckgo,
+ SearchToolkit().search_baidu,
*FileWriteToolkit(output_dir="./").get_tools(),
]
diff --git a/examples/run_qwen_zh.py b/examples/run_qwen_zh.py
index 1e22b14..0d8cc88 100644
--- a/examples/run_qwen_zh.py
+++ b/examples/run_qwen_zh.py
@@ -103,6 +103,7 @@ def construct_society(question: str) -> RolePlaying:
SearchToolkit().search_duckduckgo,
SearchToolkit().search_google, # Comment this out if you don't have google search
SearchToolkit().search_wiki,
+ SearchToolkit().search_baidu,
*ExcelToolkit().get_tools(),
*DocumentProcessingToolkit(model=models["document"]).get_tools(),
*FileWriteToolkit(output_dir="./").get_tools(),
From bf4ee58714bfa1cdbc64a4644f3a3dd3c679defc Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:47:49 +0800
Subject: [PATCH 11/14] update
---
README.md | 21 +++++++++++++++++++++
README_zh.md | 22 ++++++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/README.md b/README.md
index e3556b7..1c5047f 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,27 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
+
+# 📋 Table of Contents
+
+- [📋 Table of Contents](#-table-of-contents)
+- [🔥 News](#-news)
+- [🎬 Demo Video](#-demo-video)
+- [✨️ Core Features](#️-core-features)
+- [🛠️ Installation](#️-installation)
+- [🚀 Quick Start](#-quick-start)
+- [🧰 Toolkits and Capabilities](#-toolkits-and-capabilities)
+ - [Model Context Protocol (MCP)](#model-context-protocol-mcp)
+- [🌐 Web Interface](#-web-interface)
+- [🧪 Experiments](#-experiments)
+- [⏱️ Future Plans](#️-future-plans)
+- [📄 License](#-license)
+- [🖊️ Cite](#️-cite)
+- [🤝 Contributing](#-contributing)
+- [🔥 Community](#-community)
+- [❓ FAQ](#-faq)
+- [📚 Exploring CAMEL Dependency](#-exploring-camel-dependency)
+- [⭐ Star History](#-star-history)
# 🔥 News
diff --git a/README_zh.md b/README_zh.md
index bf5ccc4..78c01fd 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -59,6 +59,28 @@
+
+# 📋 目录
+
+- [📋 目录](#-目录)
+- [🔥 新闻](#-新闻)
+- [🎬 演示视频](#-演示视频)
+- [✨️ 核心功能](#-核心功能)
+- [🛠️ 安装](#️-安装)
+- [🚀 快速开始](#-快速开始)
+- [🧰 工具包与功能](#-工具包与功能)
+ - [模型上下文协议 (MCP)](#模型上下文协议-mcp)
+- [🌐 网页界面](#-网页界面)
+- [🧪 实验](#-实验)
+- [⏱️ 未来计划](#️-未来计划)
+- [📄 许可证](#-许可证)
+- [🖊️ 引用](#️-引用)
+- [🤝 贡献](#-贡献)
+- [🔥 社区](#-社区)
+- [❓ 常见问题](#-常见问题)
+- [📚 探索 CAMEL 依赖](#-探索-camel-依赖)
+- [⭐ Star History](#-star-history)
+
# 🔥 新闻
From 0859a58989edd038b9fc9c55b99d881e41c7b7aa Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:49:34 +0800
Subject: [PATCH 12/14] update
---
README.md | 2 +-
README_zh.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 1c5047f..954fe8d 100644
--- a/README.md
+++ b/README.md
@@ -550,7 +550,7 @@ Join us ([*Discord*](https://discord.camel-ai.org/) or [*WeChat*](https://ghli.o
Join us for further discussions!
-
+
# ❓ FAQ
diff --git a/README_zh.md b/README_zh.md
index 78c01fd..1ebffe1 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -538,7 +538,7 @@ python examples/run_gaia_roleplaying.py
加入我们,参与更多讨论!
-
+
# ❓ 常见问题
From 2326b70d0e569b282010a8d1221d6d793119458d Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 21:50:40 +0800
Subject: [PATCH 13/14] update
---
README_zh.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/README_zh.md b/README_zh.md
index 1ebffe1..c52da43 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -537,9 +537,8 @@ python examples/run_gaia_roleplaying.py
加入我们的 ([*Discord*](https://discord.camel-ai.org/) 或 [*微信*](https://ghli.org/camel/wechat.png)) 社区,一起探索智能体扩展规律的边界。
加入我们,参与更多讨论!
-
+

-
# ❓ 常见问题
From 0cf3717f57133ef8e149a9498405a6d53223a103 Mon Sep 17 00:00:00 2001
From: Wendong
Date: Sat, 15 Mar 2025 22:59:48 +0800
Subject: [PATCH 14/14] update env load path
---
examples/run.py | 6 +++++-
examples/run_azure_openai.py | 8 ++++++--
examples/run_deepseek_zh.py | 12 ++++++------
examples/run_gaia_roleplaying.py | 8 ++++++--
examples/run_mcp.py | 6 +++++-
examples/run_mini.py | 7 ++++++-
examples/run_ollama.py | 8 ++++++--
examples/run_openai_compatiable_model.py | 8 ++++++--
examples/run_qwen_mini_zh.py | 8 ++++++--
examples/run_qwen_zh.py | 9 +++++++--
examples/run_terminal.py | 9 ++++++---
examples/run_terminal_zh.py | 11 ++++++-----
12 files changed, 71 insertions(+), 29 deletions(-)
diff --git a/examples/run.py b/examples/run.py
index e3f8960..60a118c 100644
--- a/examples/run.py
+++ b/examples/run.py
@@ -29,7 +29,11 @@ from camel.societies import RolePlaying
from owl.utils import run_society, DocumentProcessingToolkit
-load_dotenv()
+import pathlib
+
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
set_log_level(level="DEBUG")
diff --git a/examples/run_azure_openai.py b/examples/run_azure_openai.py
index 2095aff..4c11f8f 100644
--- a/examples/run_azure_openai.py
+++ b/examples/run_azure_openai.py
@@ -29,9 +29,13 @@ from owl.utils import OwlRolePlaying, run_society
from camel.logger import set_log_level
-set_log_level(level="DEBUG")
+import pathlib
-load_dotenv()
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
+set_log_level(level="DEBUG")
def construct_society(question: str) -> OwlRolePlaying:
diff --git a/examples/run_deepseek_zh.py b/examples/run_deepseek_zh.py
index d67b3ae..aa7e12c 100644
--- a/examples/run_deepseek_zh.py
+++ b/examples/run_deepseek_zh.py
@@ -20,7 +20,6 @@
from dotenv import load_dotenv
-
from camel.models import ModelFactory
from camel.toolkits import (
ExcelToolkit,
@@ -29,17 +28,18 @@ from camel.toolkits import (
CodeExecutionToolkit,
)
from camel.types import ModelPlatformType, ModelType
-
+from camel.societies import RolePlaying
+from camel.logger import set_log_level
from owl.utils import run_society
-from camel.societies import RolePlaying
-
-from camel.logger import set_log_level
+import pathlib
set_log_level(level="DEBUG")
-load_dotenv()
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
def construct_society(question: str) -> RolePlaying:
diff --git a/examples/run_gaia_roleplaying.py b/examples/run_gaia_roleplaying.py
index d08c669..d399de8 100644
--- a/examples/run_gaia_roleplaying.py
+++ b/examples/run_gaia_roleplaying.py
@@ -35,9 +35,13 @@ from camel.configs import ChatGPTConfig
from owl.utils import GAIABenchmark
from camel.logger import set_log_level
-set_log_level(level="DEBUG")
+import pathlib
-load_dotenv()
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
+set_log_level(level="DEBUG")
logger = get_logger(__name__)
diff --git a/examples/run_mcp.py b/examples/run_mcp.py
index 2e8fbaf..4f730cf 100644
--- a/examples/run_mcp.py
+++ b/examples/run_mcp.py
@@ -104,8 +104,12 @@ from camel.toolkits import MCPToolkit
from owl.utils.enhanced_role_playing import OwlRolePlaying, arun_society
+import pathlib
+
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
-load_dotenv()
set_log_level(level="DEBUG")
diff --git a/examples/run_mini.py b/examples/run_mini.py
index 400c851..a2e4a84 100644
--- a/examples/run_mini.py
+++ b/examples/run_mini.py
@@ -26,7 +26,12 @@ from owl.utils import run_society
from camel.societies import RolePlaying
-load_dotenv()
+import pathlib
+
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
set_log_level(level="DEBUG")
diff --git a/examples/run_ollama.py b/examples/run_ollama.py
index cc525cf..e4efd37 100644
--- a/examples/run_ollama.py
+++ b/examples/run_ollama.py
@@ -31,9 +31,13 @@ from camel.societies import RolePlaying
from camel.logger import set_log_level
-set_log_level(level="DEBUG")
+import pathlib
-load_dotenv()
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
+set_log_level(level="DEBUG")
def construct_society(question: str) -> RolePlaying:
diff --git a/examples/run_openai_compatiable_model.py b/examples/run_openai_compatiable_model.py
index 6c5d09a..a83248d 100644
--- a/examples/run_openai_compatiable_model.py
+++ b/examples/run_openai_compatiable_model.py
@@ -29,9 +29,13 @@ from owl.utils import run_society
from camel.societies import RolePlaying
from camel.logger import set_log_level
-set_log_level(level="DEBUG")
+import pathlib
-load_dotenv()
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
+set_log_level(level="DEBUG")
def construct_society(question: str) -> RolePlaying:
diff --git a/examples/run_qwen_mini_zh.py b/examples/run_qwen_mini_zh.py
index b8d9d2c..59d27cd 100644
--- a/examples/run_qwen_mini_zh.py
+++ b/examples/run_qwen_mini_zh.py
@@ -28,9 +28,13 @@ from camel.societies import RolePlaying
from camel.logger import set_log_level
-set_log_level(level="DEBUG")
+import pathlib
-load_dotenv()
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
+set_log_level(level="DEBUG")
def construct_society(question: str) -> RolePlaying:
diff --git a/examples/run_qwen_zh.py b/examples/run_qwen_zh.py
index 0d8cc88..2d2198e 100644
--- a/examples/run_qwen_zh.py
+++ b/examples/run_qwen_zh.py
@@ -34,9 +34,14 @@ from owl.utils import run_society, DocumentProcessingToolkit
from camel.logger import set_log_level
-set_log_level(level="DEBUG")
-load_dotenv()
+import pathlib
+
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
+set_log_level(level="DEBUG")
def construct_society(question: str) -> RolePlaying:
diff --git a/examples/run_terminal.py b/examples/run_terminal.py
index 97b92d5..00ce667 100644
--- a/examples/run_terminal.py
+++ b/examples/run_terminal.py
@@ -26,10 +26,13 @@ from camel.logger import set_log_level
from owl.utils import run_society
from camel.societies import RolePlaying
-load_dotenv()
+import pathlib
+
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
set_log_level(level="DEBUG")
-# Get current script directory
-base_dir = os.path.dirname(os.path.abspath(__file__))
def construct_society(question: str) -> RolePlaying:
diff --git a/examples/run_terminal_zh.py b/examples/run_terminal_zh.py
index f0a290d..74c9dbf 100644
--- a/examples/run_terminal_zh.py
+++ b/examples/run_terminal_zh.py
@@ -26,14 +26,15 @@ from camel.logger import set_log_level
from owl.utils import run_society
from camel.societies import RolePlaying
-load_dotenv()
+import pathlib
+
+base_dir = pathlib.Path(__file__).parent.parent
+env_path = base_dir / "owl" / ".env"
+load_dotenv(dotenv_path=str(env_path))
+
set_log_level(level="DEBUG")
-# Get current script directory
-base_dir = os.path.dirname(os.path.abspath(__file__))
-
-
def construct_society(question: str) -> RolePlaying:
r"""Construct a society of agents based on the given question.