diff --git a/README.md b/README.md index 8b1fc68a..fb52c59e 100644 --- a/README.md +++ b/README.md @@ -183,8 +183,6 @@ For documentation, go here, [swarms.apac.ai](https://swarms.apac.ai) ## Contribute We're always looking for contributors to help us improve and expand this project. If you're interested, please check out our [Contributing Guidelines](C0NTRIBUTING.md). - - ### Optimization Priorities 1. **Reliability**: Increase the reliability of the swarm - obtaining the desired output with a basic and un-detailed input. @@ -195,17 +193,6 @@ We're always looking for contributors to help us improve and expand this project Our goal is to continuously improve Swarms by following this roadmap, while also being adaptable to new needs and opportunities as they arise. ---- - -# Demos - -![Swarms Demo](images/Screenshot_48.png) - -## Swarm Video Demo {Click for more} - -[![Watch the swarm video](https://img.youtube.com/vi/Br62cDMYXgc/maxresdefault.jpg)](https://youtu.be/Br62cDMYXgc) - ---- # Contact For enterprise and production ready deployments, allow us to discover more about you and your story, [book a call with us here](https://www.apac.ai/Setup-Call) \ No newline at end of file diff --git a/example.py b/example.py index 59a1e341..619cefd5 100644 --- a/example.py +++ b/example.py @@ -1,7 +1,8 @@ from swarms.models import OpenAIChat from swarms import Worker +from swarms.prompts import PRODUCT_AGENT_PROMPT -api_key = "" +api_key = "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" llm = OpenAIChat( openai_api_key=api_key, @@ -12,12 +13,12 @@ node = Worker( llm=llm, ai_name="Optimus Prime", openai_api_key=api_key, - ai_role="Worker in a swarm", + ai_role=PRODUCT_AGENT_PROMPT, external_tools=None, human_in_the_loop=False, temperature=0.5, ) -task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times." +task = "Create an entirely new board game around riddles for physics" response = node.run(task) print(response) diff --git a/stderr_log.txt b/stderr_log.txt new file mode 100644 index 00000000..31dd0922 --- /dev/null +++ b/stderr_log.txt @@ -0,0 +1,15 @@ +Error in sys.excepthook: +Traceback (most recent call last): + File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/humbug/report.py", line 505, in _hook + self.error_report(error=exception_instance, tags=tags, publish=publish) + File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/humbug/report.py", line 247, in error_report + traceback.format_exception( +TypeError: format_exception() got an unexpected keyword argument 'etype' + +Original exception was: +Traceback (most recent call last): + File "/Users/defalt/Desktop/Athena/research/swarms/example.py", line 3, in + from swarms.prompts import PRODUCT_AGENT_PROMPT + File "/Users/defalt/Desktop/Athena/research/swarms/swarms/prompts/__init__.py", line 3, in + from swarms.prompts.growth_agent_prompt import GROWTH_AGENT_PROMPT +ImportError: cannot import name 'GROWTH_AGENT_PROMPT' from 'swarms.prompts.growth_agent_prompt' (/Users/defalt/Desktop/Athena/research/swarms/swarms/prompts/growth_agent_prompt.py) diff --git a/swarms/prompts/__init__.py b/swarms/prompts/__init__.py index 777e45b5..511cf211 100644 --- a/swarms/prompts/__init__.py +++ b/swarms/prompts/__init__.py @@ -1,6 +1,6 @@ from swarms.prompts.code_interpreter import CODE_INTERPRETER -from swarms.prompts.fianance_agent_prompt import FINANCE_AGENT_PROMPT -from swarms.prompts.operations_agent_prompt import OPERATIONS_AGENT_PROMPT -from swarms.prompts.legal_agent_prompt import LEGAL_AGENT_PROMPT +from swarms.prompts.finance_agent_prompt import FINANCE_AGENT_PROMPT from swarms.prompts.growth_agent_prompt import GROWTH_AGENT_PROMPT -from swarms.prompts.product_agent_prompt import PRODUCT_AGENT_PROMPT \ No newline at end of file +from swarms.prompts.legal_agent_prompt import LEGAL_AGENT_PROMPT +from swarms.prompts.operations_agent_prompt import OPERATIONS_AGENT_PROMPT +from swarms.prompts.product_agent_prompt import PRODUCT_AGENT_PROMPT