-
-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
775 additions
and
769 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,36 @@ | ||
from swarms.structs.agent import Agent | ||
from swarms.structs.groupchat import GroupChat | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
# Example agents | ||
agent1 = Agent( | ||
agent_name="Financial-Analysis-Agent", | ||
system_prompt="You are a financial analyst specializing in investment strategies.", | ||
model_name="gpt-4o", | ||
max_loops=1, | ||
dynamic_temperature_enabled=True, | ||
) | ||
|
||
agent2 = Agent( | ||
agent_name="Tax-Adviser-Agent", | ||
system_prompt="You are a tax adviser who provides clear and concise guidance on tax-related queries.", | ||
model_name="gpt-4o", | ||
max_loops=1, | ||
dynamic_temperature_enabled=True, | ||
) | ||
|
||
agents = [agent1, agent2] | ||
|
||
chat = GroupChat( | ||
name="Investment Advisory", | ||
description="Financial and tax analysis group", | ||
agents=agents, | ||
max_loops=1, | ||
) | ||
|
||
history = chat.run( | ||
"How to optimize tax strategy for investments?" | ||
) | ||
print(history) |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "swarms" | ||
version = "7.1.7" | ||
version = "7.1.9" | ||
description = "Swarms - TGSC" | ||
license = "MIT" | ||
authors = ["Kye Gomez <[email protected]>"] | ||
|
@@ -73,21 +73,9 @@ docstring_parser = "0.16" # TODO: | |
tiktoken = "*" | ||
networkx = "*" | ||
aiofiles = "*" | ||
# chromadb = "*" | ||
rich = "*" | ||
numpy = "*" | ||
litellm = "*" | ||
# sentence-transformers = "*" | ||
|
||
|
||
# # All optional dependencies for convenience | ||
# all = [ | ||
# "torch", | ||
# "transformers", | ||
# "litellm" | ||
# ] | ||
|
||
|
||
|
||
[tool.poetry.scripts] | ||
swarms = "swarms.cli.main:main" | ||
|
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
Oops, something went wrong.