diff --git a/.gitignore b/.gitignore index 3cfd5ad..1496b4d 100644 --- a/.gitignore +++ b/.gitignore @@ -53,4 +53,8 @@ htmlcov/ .coverage.* .cache coverage.xml -*.cover \ No newline at end of file +*.cover + +owl/camel/types/__pycache__/ +owl/camel/__pycache__/ +owl/camel/utils/__pycache_/ diff --git a/README.md b/README.md index 0a29d93..56c2e96 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,23 @@ Run the following minimal example: ```bash 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 diff --git a/README_zh.md b/README_zh.md index abf99df..8924b10 100644 --- a/README_zh.md +++ b/README_zh.md @@ -139,6 +139,23 @@ python -m pip install -r requirements.txt 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 上的实验结果。