mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
update readme
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -53,4 +53,8 @@ htmlcov/
|
|||||||
.coverage.*
|
.coverage.*
|
||||||
.cache
|
.cache
|
||||||
coverage.xml
|
coverage.xml
|
||||||
*.cover
|
*.cover
|
||||||
|
|
||||||
|
owl/camel/types/__pycache__/
|
||||||
|
owl/camel/__pycache__/
|
||||||
|
owl/camel/utils/__pycache_/
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -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
|
||||||
|
|
||||||
|
|||||||
17
README_zh.md
17
README_zh.md
@@ -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 上的实验结果。
|
||||||
|
|||||||
Reference in New Issue
Block a user