diff --git a/examples/run.py b/examples/run.py index d98d721..52d96fe 100644 --- a/examples/run.py +++ b/examples/run.py @@ -131,7 +131,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_azure_openai.py b/examples/run_azure_openai.py index 76313d8..3a569bf 100644 --- a/examples/run_azure_openai.py +++ b/examples/run_azure_openai.py @@ -105,7 +105,8 @@ def construct_society(question: str) -> OwlRolePlaying: def main(): r"""Main function to run the OWL system with Azure OpenAI.""" # Example question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_gemini.py b/examples/run_gemini.py index b8133bc..58f33ec 100644 --- a/examples/run_gemini.py +++ b/examples/run_gemini.py @@ -127,7 +127,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_groq.py b/examples/run_groq.py index 24a17e5..2004369 100644 --- a/examples/run_groq.py +++ b/examples/run_groq.py @@ -142,7 +142,8 @@ def construct_society(question: str) -> OwlRolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Example research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Construct and run the society # Note: This configuration uses GROQ_LLAMA_3_3_70B for tool-intensive roles (assistant, web, planning, video, image) diff --git a/examples/run_mini.py b/examples/run_mini.py index 727b44c..4c65320 100644 --- a/examples/run_mini.py +++ b/examples/run_mini.py @@ -19,6 +19,7 @@ from camel.toolkits import ( SearchToolkit, BrowserToolkit, FileWriteToolkit, + CodeExecutionToolkit, ) from camel.types import ModelPlatformType, ModelType from camel.logger import set_log_level @@ -78,6 +79,7 @@ def construct_society(question: str) -> RolePlaying: web_agent_model=models["browsing"], planning_agent_model=models["planning"], ).get_tools(), + *CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(), SearchToolkit().search_duckduckgo, SearchToolkit().search_wiki, *FileWriteToolkit(output_dir="./").get_tools(), @@ -108,7 +110,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_mistral.py b/examples/run_mistral.py index 1d9935a..ef8e77e 100644 --- a/examples/run_mistral.py +++ b/examples/run_mistral.py @@ -131,7 +131,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_novita_ai.py b/examples/run_novita_ai.py index c981d22..e9f9a16 100644 --- a/examples/run_novita_ai.py +++ b/examples/run_novita_ai.py @@ -118,7 +118,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_ollama.py b/examples/run_ollama.py index 049bad5..00820ca 100644 --- a/examples/run_ollama.py +++ b/examples/run_ollama.py @@ -126,7 +126,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_openai_compatible_model.py b/examples/run_openai_compatible_model.py index 6a51449..3b5b3e1 100644 --- a/examples/run_openai_compatible_model.py +++ b/examples/run_openai_compatible_model.py @@ -129,7 +129,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Example research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/examples/run_together_ai.py b/examples/run_together_ai.py index 59c6eaf..96d5d29 100644 --- a/examples/run_together_ai.py +++ b/examples/run_together_ai.py @@ -118,7 +118,8 @@ def construct_society(question: str) -> RolePlaying: def main(): r"""Main function to run the OWL system with an example question.""" # Default research question - 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." + 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. +Note: You have been provided with the necessary tools to complete this task." # Override default task if command line argument is provided task = sys.argv[1] if len(sys.argv) > 1 else default_task diff --git a/owl/webapp.py b/owl/webapp.py index 7846e99..ae1f4bc 100644 --- a/owl/webapp.py +++ b/owl/webapp.py @@ -1092,7 +1092,8 @@ def create_ui(): label="Question", elem_id="question_input", show_copy_button=True, - 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.", + value="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. +Note: You have been provided with the necessary tools to complete this task.", ) # Enhanced module selection dropdown @@ -1127,7 +1128,8 @@ def create_ui(): # Example questions examples = [ - "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.", + "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. +Note: You have been provided with the necessary tools to complete this task.", "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", ]