Skip to content

Commit 397b19d

Browse files
committed
update default task prompt
1 parent 1292fca commit 397b19d

11 files changed

Lines changed: 26 additions & 12 deletions

examples/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def construct_society(question: str) -> RolePlaying:
131131
def main():
132132
r"""Main function to run the OWL system with an example question."""
133133
# Default research question
134-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
134+
default_task = "Open Brave 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.
135+
Note: You have been provided with the necessary tools to complete this task."
135136

136137
# Override default task if command line argument is provided
137138
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_azure_openai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def construct_society(question: str) -> OwlRolePlaying:
105105
def main():
106106
r"""Main function to run the OWL system with Azure OpenAI."""
107107
# Example question
108-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
108+
default_task = "Open Brave 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.
109+
Note: You have been provided with the necessary tools to complete this task."
109110

110111
# Override default task if command line argument is provided
111112
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_gemini.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def construct_society(question: str) -> RolePlaying:
127127
def main():
128128
r"""Main function to run the OWL system with an example question."""
129129
# Default research question
130-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
130+
default_task = "Open Brave 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.
131+
Note: You have been provided with the necessary tools to complete this task."
131132

132133
# Override default task if command line argument is provided
133134
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_groq.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def construct_society(question: str) -> OwlRolePlaying:
142142
def main():
143143
r"""Main function to run the OWL system with an example question."""
144144
# Example research question
145-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
145+
default_task = "Open Brave 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.
146+
Note: You have been provided with the necessary tools to complete this task."
146147

147148
# Construct and run the society
148149
# Note: This configuration uses GROQ_LLAMA_3_3_70B for tool-intensive roles (assistant, web, planning, video, image)

examples/run_mini.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
SearchToolkit,
2020
BrowserToolkit,
2121
FileWriteToolkit,
22+
CodeExecutionToolkit,
2223
)
2324
from camel.types import ModelPlatformType, ModelType
2425
from camel.logger import set_log_level
@@ -78,6 +79,7 @@ def construct_society(question: str) -> RolePlaying:
7879
web_agent_model=models["browsing"],
7980
planning_agent_model=models["planning"],
8081
).get_tools(),
82+
*CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(),
8183
SearchToolkit().search_duckduckgo,
8284
SearchToolkit().search_wiki,
8385
*FileWriteToolkit(output_dir="./").get_tools(),
@@ -108,7 +110,8 @@ def construct_society(question: str) -> RolePlaying:
108110
def main():
109111
r"""Main function to run the OWL system with an example question."""
110112
# Default research question
111-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
113+
default_task = "Open Brave 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.
114+
Note: You have been provided with the necessary tools to complete this task."
112115

113116
# Override default task if command line argument is provided
114117
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_mistral.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def construct_society(question: str) -> RolePlaying:
131131
def main():
132132
r"""Main function to run the OWL system with an example question."""
133133
# Default research question
134-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
134+
default_task = "Open Brave 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.
135+
Note: You have been provided with the necessary tools to complete this task."
135136

136137
# Override default task if command line argument is provided
137138
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_novita_ai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def construct_society(question: str) -> RolePlaying:
118118
def main():
119119
r"""Main function to run the OWL system with an example question."""
120120
# Default research question
121-
default_task = "Open Brave 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."
121+
default_task = "Open Brave 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.
122+
Note: You have been provided with the necessary tools to complete this task."
122123

123124
# Override default task if command line argument is provided
124125
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_ollama.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def construct_society(question: str) -> RolePlaying:
126126
def main():
127127
r"""Main function to run the OWL system with an example question."""
128128
# Default research question
129-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
129+
default_task = "Open Brave 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.
130+
Note: You have been provided with the necessary tools to complete this task."
130131

131132
# Override default task if command line argument is provided
132133
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_openai_compatible_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def construct_society(question: str) -> RolePlaying:
129129
def main():
130130
r"""Main function to run the OWL system with an example question."""
131131
# Example research question
132-
default_task = "Navigate to Amazon.com and identify one product that is attractive to coders. Please provide me with the product name and price. No need to verify your answer."
132+
default_task = "Open Brave 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.
133+
Note: You have been provided with the necessary tools to complete this task."
133134

134135
# Override default task if command line argument is provided
135136
task = sys.argv[1] if len(sys.argv) > 1 else default_task

examples/run_together_ai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def construct_society(question: str) -> RolePlaying:
118118
def main():
119119
r"""Main function to run the OWL system with an example question."""
120120
# Default research question
121-
default_task = "Open Brave 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."
121+
default_task = "Open Brave 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.
122+
Note: You have been provided with the necessary tools to complete this task."
122123

123124
# Override default task if command line argument is provided
124125
task = sys.argv[1] if len(sys.argv) > 1 else default_task

0 commit comments

Comments
 (0)