update readme

This commit is contained in:
lazychih114
2025-03-08 13:20:46 +08:00
parent e1425f8179
commit 35c1fae0da
3 changed files with 39 additions and 1 deletions

4
.gitignore vendored
View File

@@ -54,3 +54,7 @@ htmlcov/
.cache .cache
coverage.xml coverage.xml
*.cover *.cover
owl/camel/types/__pycache__/
owl/camel/__pycache__/
owl/camel/utils/__pycache_/

View File

@@ -142,6 +142,23 @@ Run the following minimal example:
```bash ```bash
python owl/run.py python owl/run.py
``` ```
You can run OWL agent with your own task by modifying the `run.py` script:
```python
# Define your own task
question = "Task description here."
society = construct_society(question)
answer, chat_history, token_count = run_society(society)
logger.success(f"Answer: {answer}")
```
Example tasks you can try:
- "Find the latest stock price for Apple Inc."
- "Analyze the sentiment of recent tweets about climate change"
- "Help me debug this Python code: [your code here]"
- "Summarize the main points from this research paper: [paper URL]"
# 🧪 Experiments # 🧪 Experiments

View File

@@ -139,6 +139,23 @@ python -m pip install -r requirements.txt
python owl/run.py python owl/run.py
``` ```
你可以通过修改 `run.py` 来运行自定义任务的 OWL 智能体:
```python
# Define your own task
question = "Task description here."
society = construct_society(question)
answer, chat_history, token_count = run_society(society)
logger.success(f"Answer: {answer}")
```
你可以尝试以下示例任务:
- "查询苹果公司的最新股票价格"
- "分析关于气候变化的最新推文情绪"
- "帮我调试这段 Python 代码:[在此粘贴你的代码]"
- "总结这篇研究论文的主要观点:[论文URL]"
# 🧪 实验 # 🧪 实验
我们提供了一个脚本用于复现 GAIA 上的实验结果。 我们提供了一个脚本用于复现 GAIA 上的实验结果。