From f70d9557e5e97d1728b9f561f716409106ecbda4 Mon Sep 17 00:00:00 2001 From: Kye Gomez <98760976+kyegomez@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:09:05 -0700 Subject: [PATCH] feat: add testing swarm , created by efmphone_gmail_com --- .../testing/efmphone_gmail_com_testing.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 prebuilt_swarms/testing/efmphone_gmail_com_testing.py diff --git a/prebuilt_swarms/testing/efmphone_gmail_com_testing.py b/prebuilt_swarms/testing/efmphone_gmail_com_testing.py new file mode 100644 index 000000000..1f9ab85a6 --- /dev/null +++ b/prebuilt_swarms/testing/efmphone_gmail_com_testing.py @@ -0,0 +1,24 @@ +import os + +from dotenv import load_dotenv + +# Import the OpenAIChat model and the Agent struct +from swarms import Agent, OpenAIChat + +# Load the environment variables +load_dotenv() + +# Get the API key from the environment +api_key = os.environ.get("OPENAI_API_KEY") + +# Initialize the language model +llm = OpenAIChat( + temperature=0.5, openai_api_key=api_key, max_tokens=4000 +) + + +## Initialize the workflow +agent = Agent(llm=llm, max_loops=1, autosave=True, dashboard=True) + +# Run the workflow on a task +agent.run("Generate a 10,000 word blog on health and wellness.") \ No newline at end of file