-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kyegomez:master' into JSON-Output-Support-Agent
- Loading branch information
Showing
10 changed files
with
317 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 5.8.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from swarms import Prompt | ||
from swarm_models import OpenAIChat | ||
import os | ||
|
||
model = OpenAIChat( | ||
api_key=os.getenv("OPENAI_API_KEY"), model_name="gpt-4o-mini", temperature=0.1 | ||
) | ||
|
||
# Aggregator system prompt | ||
prompt_generator_sys_prompt = Prompt( | ||
name="prompt-generator-sys-prompt-o1", | ||
description="Generate the most reliable prompt for a specific problem", | ||
content=""" | ||
Your purpose is to craft extremely reliable and production-grade system prompts for other agents. | ||
# Instructions | ||
- Understand the prompt required for the agent. | ||
- Utilize a combination of the most effective prompting strategies available, including chain of thought, many shot, few shot, and instructions-examples-constraints. | ||
- Craft the prompt by blending the most suitable prompting strategies. | ||
- Ensure the prompt is production-grade ready and educates the agent on how to reason and why to reason in that manner. | ||
- Provide constraints if necessary and as needed. | ||
- The system prompt should be extensive and cover a vast array of potential scenarios to specialize the agent. | ||
""", | ||
auto_generate_prompt=True, | ||
llm=model, | ||
) | ||
|
||
print(prompt_generator_sys_prompt.get_prompt()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "swarms" | ||
version = "5.8.6" | ||
version = "5.8.7" | ||
description = "Swarms - Pytorch" | ||
license = "MIT" | ||
authors = ["Kye Gomez <[email protected]>"] | ||
|
@@ -84,7 +84,7 @@ swarms = "swarms.cli.main:main" | |
|
||
[tool.poetry.group.lint.dependencies] | ||
black = ">=23.1,<25.0" | ||
ruff = ">=0.5.1,<0.6.8" | ||
ruff = ">=0.5.1,<0.6.10" | ||
types-toml = "^0.10.8.1" | ||
types-pytz = ">=2023.3,<2025.0" | ||
types-chardet = "^5.0.4.6" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.