Merge branch 'master' into Tree-of-thought

pull/1198/head
CI-DEV 1 month ago committed by GitHub
commit c73cfa2cb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -366,7 +366,7 @@ We have several areas where contributions are particularly welcome.
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
### Onboarding Session

@ -1,6 +1,6 @@
<div align="center">
<a href="https://swarms.world">
<img src="https://github.com/kyegomez/swarms/blob/master/images/new_logo.png" style="margin: 15px; max-width: 350px" width="70%" alt="Logo">
<img src="https://github.com/kyegomez/swarms/blob/master/images/new_logo.png" style="margin: 15px; max-width: 350px" width="80%" alt="Logo">
</a>
</div>
<p align="center">
@ -213,7 +213,7 @@ This feature is perfect for rapid prototyping, complex task decomposition, and c
-----
## 🏗️ Multi-Agent Architectures For Production Deployments
## 🏗️ Available Multi-Agent Architectures
`swarms` provides a variety of powerful, pre-built multi-agent architectures enabling you to orchestrate agents in various ways. Choose the right structure for your specific problem to build efficient and reliable production systems.
@ -753,7 +753,6 @@ Explore comprehensive examples and tutorials to learn how to use Swarms effectiv
| **Model Providers** | Ollama | Local Ollama model integration | [Ollama Examples](https://docs.swarms.world/en/latest/swarms/examples/ollama/) |
| **Model Providers** | OpenRouter | OpenRouter model integration | [OpenRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/openrouter/) |
| **Model Providers** | XAI | XAI model integration | [XAI Examples](https://docs.swarms.world/en/latest/swarms/examples/xai/) |
| **Model Providers** | VLLM | VLLM integration | [VLLM Examples](https://docs.swarms.world/en/latest/swarms/examples/vllm_integration/) |
| **Model Providers** | Llama4 | Llama4 model integration | [Llama4 Examples](https://docs.swarms.world/en/latest/swarms/examples/llama4/) |
| **Multi-Agent Architecture** | HierarchicalSwarm | Hierarchical agent orchestration | [HierarchicalSwarm Examples](https://docs.swarms.world/en/latest/swarms/examples/hierarchical_swarm_example/) |
| **Multi-Agent Architecture** | Hybrid Hierarchical-Cluster Swarm | Advanced hierarchical patterns | [HHCS Examples](https://docs.swarms.world/en/latest/swarms/examples/hhcs_examples/) |
@ -835,7 +834,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@swarms_corp](https://twitter.com/swarms_corp) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
------
@ -854,6 +853,8 @@ If you use **swarms** in your research, please cite the project by referencing t
version = {latest}
```
---
# License
Swarms is licensed under the Apache License 2.0. [Learn more here](./LICENSE)

@ -58,5 +58,5 @@ If you'd like technical support, join our Discord below and stay updated on our
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -47,7 +47,7 @@ This index provides a categorized list of examples and tutorials for using the S
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
## Contributing

@ -367,4 +367,4 @@ You can customize the Hiring Swarm by:
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -58,7 +58,6 @@ This index organizes **100+ production-ready examples** from our [Swarms Example
| Claude | [Claude 4 Example](https://github.com/kyegomez/swarms/blob/master/examples/models/claude_4_example.py) | Anthropic Claude 4 model integration for advanced reasoning capabilities |
| Swarms Claude | [Swarms Claude Example](https://github.com/kyegomez/swarms/blob/master/examples/models/swarms_claude_example.py) | Optimized Claude integration within the Swarms framework |
| Lumo | [Lumo Example](https://github.com/kyegomez/swarms/blob/master/examples/models/lumo_example.py) | Lumo AI model integration for specialized tasks |
| VLLM | [VLLM Example](https://github.com/kyegomez/swarms/blob/master/examples/models/vllm_example.py) | High-performance inference using VLLM for large language models |
| Llama4 | [LiteLLM Example](https://github.com/kyegomez/swarms/blob/master/examples/models/llama4_examples/litellm_example.py) | Llama4 model integration using LiteLLM for efficient inference |
### Tools and Function Calling
@ -257,5 +256,5 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@swarms_corp](https://twitter.com/swarms_corp) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |

@ -635,4 +635,4 @@ By chaining these specialized agents, the M&A Advisory Swarm provides an end-to-
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -353,4 +353,4 @@ If you'd like technical support, join our Discord below and stay updated on our
| Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -336,4 +336,4 @@ By chaining these specialized agents, the Real Estate Swarm provides an end-to-e
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -197,7 +197,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
---

@ -83,7 +83,7 @@ Here you'll find references about the Swarms framework, marketplace, community,
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
## Get Support

@ -2223,7 +2223,7 @@ If you'd like technical support, join our Discord below and stay updated on our
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
@ -2327,7 +2327,7 @@ This index provides a categorized list of examples and tutorials for using the S
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
## Contributing
@ -3967,7 +3967,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
---
@ -6892,7 +6892,7 @@ Here you'll find references about the Swarms framework, marketplace, community,
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
## Get Support
@ -10190,7 +10190,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
### Getting Help
@ -21439,7 +21439,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
@ -22230,7 +22230,7 @@ If you're facing issues or want to learn more, check out the following resources
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
@ -22534,7 +22534,7 @@ If you're facing issues or want to learn more, check out the following resources
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
@ -24998,7 +24998,7 @@ If you're facing issues or want to learn more, check out the following resources
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |
@ -42641,7 +42641,7 @@ Join our community of agent engineers and researchers for technical support, cut
| Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyXyitkbU_WSy7bd_41SqQ) |
| Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
---
@ -61933,7 +61933,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
--------------------------------------------------

@ -384,7 +384,6 @@ nav:
- OpenRouter: "swarms/examples/openrouter.md"
- XAI: "swarms/examples/xai.md"
- Azure OpenAI: "swarms/examples/azure.md"
- VLLM: "swarms/examples/vllm_integration.md"
- Llama4: "swarms/examples/llama4.md"
- Custom Base URL & API Keys: "swarms/examples/custom_base_url_example.md"
@ -409,7 +408,6 @@ nav:
- Advanced BatchedGridWorkflow: "swarms/examples/batched_grid_advanced_example.md"
- Applications:
- Swarms of Browser Agents: "swarms/examples/swarms_of_browser_agents.md"
- ConcurrentWorkflow with VLLM Agents: "swarms/examples/vllm.md"
- Hiearchical Marketing Team: "examples/marketing_team.md"
- Gold ETF Research with HeavySwarm: "examples/gold_etf_research.md"
- Hiring Swarm: "examples/hiring_swarm.md"

@ -796,7 +796,7 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
### Getting Help

@ -130,7 +130,7 @@ hf_agent = Agent(
### 4. Custom Local Endpoint
```python
# Using a local model server (e.g., vLLM, Ollama, etc.)
# Using a local model server (e.g., Ollama, etc.)
local_agent = Agent(
agent_name="Local-Agent",
agent_description="Agent using local model endpoint",

@ -131,5 +131,5 @@ Join our community of agent engineers and researchers for technical support, cut
| 🐦 Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| 👥 LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| 📺 YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| 🎫 Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| 🚀 Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |

@ -13,10 +13,11 @@ Here's a simple example of integrating Llama4 model for crypto risk analysis:
```python
from dotenv import load_dotenv
from swarms import Agent
from swarms.utils.vllm_wrapper import VLLM
load_dotenv()
model = VLLM(model_name="meta-llama/Llama-4-Maverick-17B-128E")
# Initialize your model here using your preferred inference method
# For example, using litellm or another compatible wrapper
```
## Available Models
@ -88,9 +89,7 @@ agent = Agent(
```python
from dotenv import load_dotenv
from swarms import Agent
from swarms.utils.vllm_wrapper import VLLM
load_dotenv()
@ -126,15 +125,14 @@ Provide detailed, balanced analysis with both risks and potential mitigations.
Base your analysis on established crypto market principles and current market conditions.
"""
model = VLLM(model_name="meta-llama/Llama-4-Maverick-17B-128E")
# Initialize the agent with custom prompt
# Note: Use your preferred model provider (OpenAI, Anthropic, Groq, etc.)
agent = Agent(
agent_name="Crypto-Risk-Analysis-Agent",
agent_description="Agent for analyzing risks in cryptocurrency investments",
system_prompt=CRYPTO_RISK_ANALYSIS_PROMPT,
model_name="gpt-4o-mini", # or any other supported model
max_loops=1,
llm=model,
)
print(
@ -153,7 +151,7 @@ print(
The `max_loops` parameter determines how many times the agent will iterate through its thinking process. In this example, it's set to 1 for a single pass analysis.
??? question "Can I use a different model?"
Yes, you can replace the VLLM wrapper with other compatible models. Just ensure you update the model initialization accordingly.
Yes, you can use any supported model provider (OpenAI, Anthropic, Groq, etc.). Just ensure you set the appropriate `model_name` parameter.
??? question "How do I customize the system prompt?"
You can modify the `CRYPTO_RISK_ANALYSIS_PROMPT` string to match your specific use case while maintaining the structured format.

@ -128,5 +128,5 @@ If you're facing issues or want to learn more, check out the following resources
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -14,7 +14,6 @@ Swarms supports a vast array of model providers, giving you the flexibility to c
| **Ollama** | Local model deployment platform allowing you to run open-source models on your own infrastructure. No API keys required. | [Ollama Integration](ollama.md) |
| **OpenRouter** | Unified API gateway providing access to hundreds of models from various providers through a single interface. | [OpenRouter Integration](openrouter.md) |
| **XAI** | xAI's Grok models offering unique capabilities for research, analysis, and creative tasks with advanced reasoning abilities. | [XAI Integration](xai.md) |
| **vLLM** | High-performance inference library for serving large language models with optimized memory usage and throughput. | [vLLM Integration](vllm_integration.md) |
| **Llama4** | Meta's latest open-source language models including Llama-4-Maverick and Llama-4-Scout variants with expert routing capabilities. | [Llama4 Integration](llama4.md) |
| **Azure OpenAI** | Enterprise-grade OpenAI models through Microsoft's cloud infrastructure with enhanced security, compliance, and enterprise features. | [Azure Integration](azure.md) |
@ -63,7 +62,6 @@ response = agent.run("Your query here")
- **Groq**: Ultra-fast inference
- **vLLM**: Optimized for high throughput
### For Specialized Tasks
@ -106,7 +104,7 @@ AZURE_API_VERSION=2024-02-15-preview
```
!!! note "No API Key Required"
Ollama and vLLM can be run locally without API keys, making them perfect for development and testing.
Ollama can be run locally without API keys, making it perfect for development and testing.
## Advanced Features

@ -73,5 +73,5 @@ If you're facing issues or want to learn more, check out the following resources
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -134,5 +134,5 @@ If you're facing issues or want to learn more, check out the following resources
| 🐦 Twitter | [@kyegomez](https://twitter.com/kyegomez) | Latest news and announcements |
| 👥 LinkedIn | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) | Professional network and updates |
| 📺 YouTube | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) | Tutorials and demos |
| 🎫 Events | [Sign up here](https://lu.ma/5p2jnc2v) | Join our community events |
| 🎫 Events | [Sign up here](https://lu.ma/swarms_calendar) | Join our community events |

@ -1,429 +0,0 @@
# VLLM Swarm Agents
!!! tip "Quick Summary"
This guide demonstrates how to create a sophisticated multi-agent system using VLLM and Swarms for comprehensive stock market analysis. You'll learn how to configure and orchestrate multiple AI agents working together to provide deep market insights.
## Overview
The example showcases how to build a stock analysis system with 5 specialized agents:
- Technical Analysis Agent
- Fundamental Analysis Agent
- Market Sentiment Agent
- Quantitative Strategy Agent
- Portfolio Strategy Agent
Each agent has specific expertise and works collaboratively through a concurrent workflow.
## Prerequisites
!!! warning "Requirements"
Before starting, ensure you have:
- Python 3.7 or higher
- The Swarms package installed
- Access to VLLM compatible models
- Sufficient compute resources for running VLLM
## Installation
!!! example "Setup Steps"
1. Install the Swarms package:
```bash
pip install swarms
```
2. Install VLLM dependencies (if not already installed):
```bash
pip install vllm
```
## Basic Usage
Here's a complete example of setting up the stock analysis swarm:
```python
from swarms import Agent, ConcurrentWorkflow
from swarms.utils.vllm_wrapper import VLLMWrapper
# Initialize the VLLM wrapper
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant.",
)
```
!!! note "Model Selection"
The example uses Llama-2-7b-chat, but you can use any VLLM-compatible model. Make sure you have the necessary permissions and resources to run your chosen model.
## Agent Configuration
### Technical Analysis Agent
```python
technical_analyst = Agent(
agent_name="Technical-Analysis-Agent",
agent_description="Expert in technical analysis and chart patterns",
system_prompt="""You are an expert Technical Analysis Agent specializing in market technicals and chart patterns. Your responsibilities include:
1. PRICE ACTION ANALYSIS
- Identify key support and resistance levels
- Analyze price trends and momentum
- Detect chart patterns (e.g., head & shoulders, triangles, flags)
- Evaluate volume patterns and their implications
2. TECHNICAL INDICATORS
- Calculate and interpret moving averages (SMA, EMA)
- Analyze momentum indicators (RSI, MACD, Stochastic)
- Evaluate volume indicators (OBV, Volume Profile)
- Monitor volatility indicators (Bollinger Bands, ATR)
3. TRADING SIGNALS
- Generate clear buy/sell signals based on technical criteria
- Identify potential entry and exit points
- Set appropriate stop-loss and take-profit levels
- Calculate position sizing recommendations
4. RISK MANAGEMENT
- Assess market volatility and trend strength
- Identify potential reversal points
- Calculate risk/reward ratios for trades
- Suggest position sizing based on risk parameters
Your analysis should be data-driven, precise, and actionable. Always include specific price levels, time frames, and risk parameters in your recommendations.""",
max_loops=1,
llm=vllm,
)
```
!!! tip "Agent Customization"
Each agent can be customized with different:
- System prompts
- Temperature settings
- Max token limits
- Response formats
## Running the Swarm
To execute the swarm analysis:
```python
swarm = ConcurrentWorkflow(
name="Stock-Analysis-Swarm",
description="A swarm of agents that analyze stocks and provide comprehensive analysis.",
agents=stock_analysis_agents,
)
# Run the analysis
response = swarm.run("Analyze the best etfs for gold and other similar commodities in volatile markets")
```
## Full Code Example
```python
from swarms import Agent, ConcurrentWorkflow
from swarms.utils.vllm_wrapper import VLLMWrapper
# Initialize the VLLM wrapper
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant.",
)
# Technical Analysis Agent
technical_analyst = Agent(
agent_name="Technical-Analysis-Agent",
agent_description="Expert in technical analysis and chart patterns",
system_prompt="""You are an expert Technical Analysis Agent specializing in market technicals and chart patterns. Your responsibilities include:
1. PRICE ACTION ANALYSIS
- Identify key support and resistance levels
- Analyze price trends and momentum
- Detect chart patterns (e.g., head & shoulders, triangles, flags)
- Evaluate volume patterns and their implications
2. TECHNICAL INDICATORS
- Calculate and interpret moving averages (SMA, EMA)
- Analyze momentum indicators (RSI, MACD, Stochastic)
- Evaluate volume indicators (OBV, Volume Profile)
- Monitor volatility indicators (Bollinger Bands, ATR)
3. TRADING SIGNALS
- Generate clear buy/sell signals based on technical criteria
- Identify potential entry and exit points
- Set appropriate stop-loss and take-profit levels
- Calculate position sizing recommendations
4. RISK MANAGEMENT
- Assess market volatility and trend strength
- Identify potential reversal points
- Calculate risk/reward ratios for trades
- Suggest position sizing based on risk parameters
Your analysis should be data-driven, precise, and actionable. Always include specific price levels, time frames, and risk parameters in your recommendations.""",
max_loops=1,
llm=vllm,
)
# Fundamental Analysis Agent
fundamental_analyst = Agent(
agent_name="Fundamental-Analysis-Agent",
agent_description="Expert in company fundamentals and valuation",
system_prompt="""You are an expert Fundamental Analysis Agent specializing in company valuation and financial metrics. Your core responsibilities include:
1. FINANCIAL STATEMENT ANALYSIS
- Analyze income statements, balance sheets, and cash flow statements
- Calculate and interpret key financial ratios
- Evaluate revenue growth and profit margins
- Assess company's debt levels and cash position
2. VALUATION METRICS
- Calculate fair value using multiple valuation methods:
* Discounted Cash Flow (DCF)
* Price-to-Earnings (P/E)
* Price-to-Book (P/B)
* Enterprise Value/EBITDA
- Compare valuations against industry peers
3. BUSINESS MODEL ASSESSMENT
- Evaluate competitive advantages and market position
- Analyze industry dynamics and market share
- Assess management quality and corporate governance
- Identify potential risks and growth opportunities
4. ECONOMIC CONTEXT
- Consider macroeconomic factors affecting the company
- Analyze industry cycles and trends
- Evaluate regulatory environment and compliance
- Assess global market conditions
Your analysis should be comprehensive, focusing on both quantitative metrics and qualitative factors that impact long-term value.""",
max_loops=1,
llm=vllm,
)
# Market Sentiment Agent
sentiment_analyst = Agent(
agent_name="Market-Sentiment-Agent",
agent_description="Expert in market psychology and sentiment analysis",
system_prompt="""You are an expert Market Sentiment Agent specializing in analyzing market psychology and investor behavior. Your key responsibilities include:
1. SENTIMENT INDICATORS
- Monitor and interpret market sentiment indicators:
* VIX (Fear Index)
* Put/Call Ratio
* Market Breadth
* Investor Surveys
- Track institutional vs retail investor behavior
2. NEWS AND SOCIAL MEDIA ANALYSIS
- Analyze news flow and media sentiment
- Monitor social media trends and discussions
- Track analyst recommendations and changes
- Evaluate corporate insider trading patterns
3. MARKET POSITIONING
- Assess hedge fund positioning and exposure
- Monitor short interest and short squeeze potential
- Track fund flows and asset allocation trends
- Analyze options market sentiment
4. CONTRARIAN SIGNALS
- Identify extreme sentiment readings
- Detect potential market turning points
- Analyze historical sentiment patterns
- Provide contrarian trading opportunities
Your analysis should combine quantitative sentiment metrics with qualitative assessment of market psychology and crowd behavior.""",
max_loops=1,
llm=vllm,
)
# Quantitative Strategy Agent
quant_analyst = Agent(
agent_name="Quantitative-Strategy-Agent",
agent_description="Expert in quantitative analysis and algorithmic strategies",
system_prompt="""You are an expert Quantitative Strategy Agent specializing in data-driven investment strategies. Your primary responsibilities include:
1. FACTOR ANALYSIS
- Analyze and monitor factor performance:
* Value
* Momentum
* Quality
* Size
* Low Volatility
- Calculate factor exposures and correlations
2. STATISTICAL ANALYSIS
- Perform statistical arbitrage analysis
- Calculate and monitor pair trading opportunities
- Analyze market anomalies and inefficiencies
- Develop mean reversion strategies
3. RISK MODELING
- Build and maintain risk models
- Calculate portfolio optimization metrics
- Monitor correlation matrices
- Analyze tail risk and stress scenarios
4. ALGORITHMIC STRATEGIES
- Develop systematic trading strategies
- Backtest and validate trading algorithms
- Monitor strategy performance metrics
- Optimize execution algorithms
Your analysis should be purely quantitative, based on statistical evidence and mathematical models rather than subjective opinions.""",
max_loops=1,
llm=vllm,
)
# Portfolio Strategy Agent
portfolio_strategist = Agent(
agent_name="Portfolio-Strategy-Agent",
agent_description="Expert in portfolio management and asset allocation",
system_prompt="""You are an expert Portfolio Strategy Agent specializing in portfolio construction and management. Your core responsibilities include:
1. ASSET ALLOCATION
- Develop strategic asset allocation frameworks
- Recommend tactical asset allocation shifts
- Optimize portfolio weightings
- Balance risk and return objectives
2. PORTFOLIO ANALYSIS
- Calculate portfolio risk metrics
- Monitor sector and factor exposures
- Analyze portfolio correlation matrix
- Track performance attribution
3. RISK MANAGEMENT
- Implement portfolio hedging strategies
- Monitor and adjust position sizing
- Set stop-loss and rebalancing rules
- Develop drawdown protection strategies
4. PORTFOLIO OPTIMIZATION
- Calculate efficient frontier analysis
- Optimize for various objectives:
* Maximum Sharpe Ratio
* Minimum Volatility
* Maximum Diversification
- Consider transaction costs and taxes
Your recommendations should focus on portfolio-level decisions that optimize risk-adjusted returns while meeting specific investment objectives.""",
max_loops=1,
llm=vllm,
)
# Create a list of all agents
stock_analysis_agents = [
technical_analyst,
fundamental_analyst,
sentiment_analyst,
quant_analyst,
portfolio_strategist
]
swarm = ConcurrentWorkflow(
name="Stock-Analysis-Swarm",
description="A swarm of agents that analyze stocks and provide a comprehensive analysis of the current trends and opportunities.",
agents=stock_analysis_agents,
)
swarm.run("Analyze the best etfs for gold and other similiar commodities in volatile markets")
```
## Best Practices
!!! success "Optimization Tips"
1. **Agent Design**
- Keep system prompts focused and specific
- Use clear role definitions
- Include error handling guidelines
2. **Resource Management**
- Monitor memory usage with large models
- Implement proper cleanup procedures
- Use batching for multiple queries
3. **Output Handling**
- Implement proper logging
- Format outputs consistently
- Include error checking
## Common Issues and Solutions
!!! warning "Troubleshooting"
Common issues you might encounter:
1. **Memory Issues**
- *Problem*: VLLM consuming too much memory
- *Solution*: Adjust batch sizes and model parameters
2. **Agent Coordination**
- *Problem*: Agents providing conflicting information
- *Solution*: Implement consensus mechanisms or priority rules
3. **Performance**
- *Problem*: Slow response times
- *Solution*: Use proper batching and optimize model loading
## FAQ
??? question "Can I use different models for different agents?"
Yes, you can initialize multiple VLLM wrappers with different models for each agent. However, be mindful of memory usage.
??? question "How many agents can run concurrently?"
The number depends on your hardware resources. Start with 3-5 agents and scale based on performance.
??? question "Can I customize agent communication patterns?"
Yes, you can modify the ConcurrentWorkflow class or create custom workflows for specific communication patterns.
## Advanced Configuration
!!! example "Extended Settings"
```python
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant.",
temperature=0.7,
max_tokens=2048,
top_p=0.95,
)
```
## Contributing
!!! info "Get Involved"
We welcome contributions! Here's how you can help:
1. Report bugs and issues
2. Submit feature requests
3. Contribute to documentation
4. Share example use cases
## Resources
!!! abstract "Additional Reading"
- [VLLM Documentation](https://docs.vllm.ai/en/latest/)

@ -1,194 +0,0 @@
# vLLM Integration Guide
!!! info "Overview"
vLLM is a high-performance and easy-to-use library for LLM inference and serving. This guide explains how to integrate vLLM with Swarms for efficient, production-grade language model deployment.
## Installation
!!! note "Prerequisites"
Before you begin, make sure you have Python 3.8+ installed on your system.
=== "pip"
```bash
pip install -U vllm swarms
```
=== "poetry"
```bash
poetry add vllm swarms
```
## Basic Usage
Here's a simple example of how to use vLLM with Swarms:
```python title="basic_usage.py"
from swarms.utils.vllm_wrapper import VLLMWrapper
# Initialize the vLLM wrapper
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant.",
temperature=0.7,
max_tokens=4000
)
# Run inference
response = vllm.run("What is the capital of France?")
print(response)
```
## VLLMWrapper Class
!!! abstract "Class Overview"
The `VLLMWrapper` class provides a convenient interface for working with vLLM models.
### Key Parameters
| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `model_name` | str | Name of the model to use | "meta-llama/Llama-2-7b-chat-hf" |
| `system_prompt` | str | System prompt to use | None |
| `stream` | bool | Whether to stream the output | False |
| `temperature` | float | Sampling temperature | 0.5 |
| `max_tokens` | int | Maximum number of tokens to generate | 4000 |
### Example with Custom Parameters
```python title="custom_parameters.py"
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-13b-chat-hf",
system_prompt="You are an expert in artificial intelligence.",
temperature=0.8,
max_tokens=2000
)
```
## Integration with Agents
You can easily integrate vLLM with Swarms agents for more complex workflows:
```python title="agent_integration.py"
from swarms import Agent
from swarms.utils.vllm_wrapper import VLLMWrapper
# Initialize vLLM
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant."
)
# Create an agent with vLLM
agent = Agent(
agent_name="Research-Agent",
agent_description="Expert in conducting research and analysis",
system_prompt="""You are an expert research agent. Your tasks include:
1. Analyzing complex topics
2. Providing detailed summaries
3. Making data-driven recommendations""",
llm=vllm,
max_loops=1
)
# Run the agent
response = agent.run("Research the impact of AI on healthcare")
```
## Advanced Features
### Batch Processing
!!! tip "Performance Optimization"
Use batch processing for efficient handling of multiple tasks simultaneously.
```python title="batch_processing.py"
tasks = [
"What is machine learning?",
"Explain neural networks",
"Describe deep learning"
]
results = vllm.batched_run(tasks, batch_size=3)
```
### Error Handling
!!! warning "Error Management"
Always implement proper error handling in production environments.
```python title="error_handling.py"
from loguru import logger
try:
response = vllm.run("Complex task")
except Exception as error:
logger.error(f"Error occurred: {error}")
```
## Best Practices
!!! success "Recommended Practices"
=== "Model Selection"
- Choose appropriate model sizes based on your requirements
- Consider the trade-off between model size and inference speed
=== "System Resources"
- Ensure sufficient GPU memory for your chosen model
- Monitor resource usage during batch processing
=== "Prompt Engineering"
- Use clear and specific system prompts
- Structure user prompts for optimal results
=== "Error Handling"
- Implement proper error handling and logging
- Set up monitoring for production deployments
=== "Performance"
- Use batch processing for multiple tasks
- Adjust max_tokens based on your use case
- Fine-tune temperature for optimal output quality
## Example: Multi-Agent System
Here's an example of creating a multi-agent system using vLLM:
```python title="multi_agent_system.py"
from swarms import Agent, ConcurrentWorkflow
from swarms.utils.vllm_wrapper import VLLMWrapper
# Initialize vLLM
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant."
)
# Create specialized agents
research_agent = Agent(
agent_name="Research-Agent",
agent_description="Expert in research",
system_prompt="You are a research expert.",
llm=vllm
)
analysis_agent = Agent(
agent_name="Analysis-Agent",
agent_description="Expert in analysis",
system_prompt="You are an analysis expert.",
llm=vllm
)
# Create a workflow
agents = [research_agent, analysis_agent]
workflow = ConcurrentWorkflow(
name="Research-Analysis-Workflow",
description="Comprehensive research and analysis workflow",
agents=agents
)
# Run the workflow
result = workflow.run("Analyze the impact of renewable energy")
```

@ -2,7 +2,17 @@
The `HierarchicalSwarm` is a sophisticated multi-agent orchestration system that implements a hierarchical workflow pattern. It consists of a director agent that coordinates and distributes tasks to specialized worker agents, creating a structured approach to complex problem-solving.
## Overview
```mermaid
graph TD
A[Task] --> B[Director]
B --> C[Plan & Orders]
C --> D[Agents]
D --> E[Results]
E --> F{More Loops?}
F -->|Yes| B
F -->|No| G[Output]
```
The Hierarchical Swarm follows a clear workflow pattern:
@ -12,25 +22,6 @@ The Hierarchical Swarm follows a clear workflow pattern:
4. **Feedback Loop**: Director evaluates results and issues new orders if needed (up to `max_loops`)
5. **Context Preservation**: All conversation history and context is maintained throughout the process
## Architecture
```mermaid
graph TD
A[User Task] --> B[Director Agent]
B --> C[Create Plan & Orders]
C --> D[Distribute to Agents]
D --> E[Agent 1]
D --> F[Agent 2]
D --> G[Agent N]
E --> H[Execute Task]
F --> H
G --> H
H --> I[Report Results]
I --> J[Director Evaluation]
J --> K{More Loops?}
K -->|Yes| C
K -->|No| L[Final Output]
```
## Key Features
@ -45,44 +36,65 @@ graph TD
| **Live Streaming** | Real-time streaming callbacks for monitoring agent outputs |
| **Token-by-Token Updates** | Watch text formation in real-time as agents generate responses |
## `HierarchicalSwarm` Constructor
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `name` | `str` | `"HierarchicalAgentSwarm"` | The name of the swarm instance |
| `description` | `str` | `"Distributed task swarm"` | Brief description of the swarm's functionality |
| `director` | `Optional[Union[Agent, Callable, Any]]` | `None` | The director agent that orchestrates tasks |
| `agents` | `List[Union[Agent, Callable, Any]]` | `None` | List of worker agents in the swarm |
| `max_loops` | `int` | `1` | Maximum number of feedback loops between director and agents |
| `output_type` | `OutputType` | `"dict-all-except-first"` | Format for output (dict, str, list) |
| `feedback_director_model_name` | `str` | `"gpt-4o-mini"` | Model name for feedback director |
| `director_name` | `str` | `"Director"` | Name of the director agent |
| `director_model_name` | `str` | `"gpt-4o-mini"` | Model name for the director agent |
| `verbose` | `bool` | `False` | Enable detailed logging |
| `add_collaboration_prompt` | `bool` | `True` | Add collaboration prompts to agents |
| `planning_director_agent` | `Optional[Union[Agent, Callable, Any]]` | `None` | Optional planning agent for enhanced planning |
## Constructor
### `HierarchicalSwarm.__init__()`
Initializes a new HierarchicalSwarm instance.
#### Important Parameters
| Parameter | Type | Default | Required | Description |
|-----------|------|---------|----------|-------------|
| `agents` | `AgentListType` | `None` | **Yes** | List of worker agents in the swarm. Must not be empty |
| `name` | `str` | `"HierarchicalAgentSwarm"` | No | The name identifier for this swarm instance |
| `description` | `str` | `"Distributed task swarm"` | No | A description of the swarm's purpose and capabilities |
| `director` | `Optional[Union[Agent, Callable, Any]]` | `None` | No | The director agent that orchestrates tasks. If None, a default director will be created |
| `max_loops` | `int` | `1` | No | Maximum number of feedback loops between director and agents (must be > 0) |
| `output_type` | `OutputType` | `"dict-all-except-first"` | No | Format for output (dict, str, list) |
| `director_model_name` | `str` | `"gpt-4o-mini"` | No | Model name for the main director agent |
| `director_feedback_on` | `bool` | `True` | No | Whether director feedback is enabled |
| `interactive` | `bool` | `False` | No | Enable interactive mode with dashboard visualization |
#### Returns
| Type | Description |
|------|-------------|
| `HierarchicalSwarm` | A new HierarchicalSwarm instance |
#### Raises
| Exception | Condition |
|-----------|-----------|
| `ValueError` | If no agents are provided or max_loops is invalid |
## Core Methods
### `run(task, img=None, streaming_callback=None, *args, **kwargs)`
### `run()`
Executes the hierarchical swarm for a specified number of feedback loops, processing the task through multiple iterations for refinement and improvement.
#### Parameters
#### Important Parameters
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `task` | `str` | **Required** | The initial task to be processed by the swarm |
| `img` | `str` | `None` | Optional image input for the agents |
| `streaming_callback` | `Callable[[str, str, bool], None]` | `None` | Optional callback for real-time streaming of agent outputs |
| `*args` | `Any` | - | Additional positional arguments |
| `**kwargs` | `Any` | - | Additional keyword arguments |
| Parameter | Type | Default | Required | Description |
|-----------|------|---------|----------|-------------|
| `task` | `Optional[str]` | `None` | **Yes*** | The initial task to be processed by the swarm. If None and interactive mode is enabled, will prompt for input |
| `img` | `Optional[str]` | `None` | No | Optional image input for the agents |
| `streaming_callback` | `Optional[Callable[[str, str, bool], None]]` | `None` | No | Callback function for real-time streaming of agent outputs. Parameters are (agent_name, chunk, is_final) where is_final indicates completion |
*Required if `interactive=False`
#### Returns
| Type | Description |
|------|-------------|
| `Any` | The formatted conversation history as output based on `output_type` |
| `Any` | The formatted conversation history as output, formatted according to the `output_type` configuration |
#### Raises
| Exception | Condition |
|-----------|-----------|
| `Exception` | If swarm execution fails |
#### Example
@ -170,71 +182,29 @@ task = "Analyze the impact of AI on the job market"
result = swarm.run(task=task, streaming_callback=streaming_callback)
```
#### Parameters (step method)
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `task` | `str` | **Required** | The task to be executed in this step |
| `img` | `str` | `None` | Optional image input for the agents |
| `streaming_callback` | `Callable[[str, str, bool], None]` | `None` | Optional callback for real-time streaming of agent outputs |
| `*args` | `Any` | - | Additional positional arguments |
| `**kwargs` | `Any` | - | Additional keyword arguments |
#### Returns (step method)
| Type | Description |
|------|-------------|
| `str` | Feedback from the director based on agent outputs |
#### Example (step method)
```python
from swarms import Agent
from swarms.structs.hiearchical_swarm import HierarchicalSwarm
### `batched_run()`
# Create development agents
frontend_agent = Agent(
agent_name="Frontend-Developer",
agent_description="Expert in React and modern web development",
model_name="gpt-4.1",
)
Execute the hierarchical swarm for multiple tasks in sequence. Processes a list of tasks sequentially, running the complete swarm workflow for each task independently.
backend_agent = Agent(
agent_name="Backend-Developer",
agent_description="Specialist in Node.js and API development",
model_name="gpt-4.1",
)
#### Important Parameters
# Initialize the swarm
swarm = HierarchicalSwarm(
name="Development-Swarm",
description="A hierarchical swarm for software development",
agents=[frontend_agent, backend_agent],
max_loops=1,
verbose=True,
)
| Parameter | Type | Default | Required | Description |
|-----------|------|---------|----------|-------------|
| `tasks` | `List[str]` | - | **Yes** | List of tasks to be processed by the swarm |
| `img` | `Optional[str]` | `None` | No | Optional image input for the tasks |
| `streaming_callback` | `Optional[Callable[[str, str, bool], None]]` | `None` | No | Callback function for streaming agent outputs. Parameters are (agent_name, chunk, is_final) where is_final indicates completion |
# Execute a single step
task = "Create a simple web app for file upload and download"
feedback = swarm.step(task=task)
print("Director Feedback:", feedback)
```
#### Parameters (batched_run method)
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `tasks` | `List[str]` | **Required** | List of tasks to be processed |
| `img` | `str` | `None` | Optional image input for the agents |
| `streaming_callback` | `Callable[[str, str, bool], None]` | `None` | Optional callback for real-time streaming of agent outputs |
| `*args` | `Any` | - | Additional positional arguments |
| `**kwargs` | `Any` | - | Additional keyword arguments |
#### Returns (batched_run method)
#### Returns
| Type | Description |
|------|-------------|
| `List[Any]` | List of results for each task |
| `List[Any]` | List of results for each processed task |
#### Raises
| Exception | Condition |
|-----------|-----------|
| `Exception` | If batched execution fails |
#### Example (batched_run method)
@ -442,28 +412,6 @@ def live_paragraph_callback(agent_name: str, chunk: str, is_final: bool):
print(f"\n✅ {agent_name} completed!")
```
### Streaming Use Cases
- **Real-time Monitoring**: Watch agents work simultaneously
- **Progress Tracking**: See text formation token by token
- **Live Debugging**: Monitor agent performance in real-time
- **User Experience**: Provide live feedback to users
- **Logging**: Capture detailed execution traces
### Streaming in Different Methods
Streaming callbacks work with all execution methods:
```python
# Single task with streaming
result = swarm.run(task=task, streaming_callback=my_callback)
# Single step with streaming
result = swarm.step(task=task, streaming_callback=my_callback)
# Batch processing with streaming
results = swarm.batched_run(tasks=tasks, streaming_callback=my_callback)
```
## Best Practices

@ -294,7 +294,7 @@ Join our community of agent engineers and researchers for technical support, cut
| Twitter | Latest news and announcements | [@kyegomez](https://twitter.com/kyegomez) |
| LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
| YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyXyitkbU_WSy7bd_41SqQ) |
| Events | Join our community events | [Sign up here](https://lu.ma/5p2jnc2v) |
| Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
| Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
---

@ -7,70 +7,120 @@ This directory contains comprehensive examples demonstrating various capabilitie
### Multi-Agent Systems
- **[multi_agent/](multi_agent/)** - Advanced multi-agent patterns including agent rearrangement, auto swarm builder (ASB), batched workflows, board of directors, caching, concurrent processing, councils, debates, elections, forest swarms, graph workflows, group chats, heavy swarms, hierarchical swarms, majority voting, orchestration examples, social algorithms, simulations, spreadsheet examples, and swarm routing.
- [README.md](multi_agent/README.md) - Complete multi-agent examples documentation
### Single Agent Systems
- **[single_agent/](single_agent/)** - Single agent implementations including demos, external agent integrations, LLM integrations (Azure, Claude, DeepSeek, Mistral, OpenAI, Qwen), onboarding, RAG, reasoning agents, tools integration, utils, and vision capabilities.
- [README.md](single_agent/README.md) - Complete single agent examples documentation
- [simple_agent.py](single_agent/simple_agent.py) - Basic single agent example
### Tools & Integrations
- **[tools/](tools/)** - Tool integration examples including agent-as-tools, base tool implementations, browser automation, Claude integration, Exa search, Firecrawl, multi-tool usage, and Stagehand integration.
- [README.md](tools/README.md) - Complete tools examples documentation
- [agent_as_tools.py](tools/agent_as_tools.py) - Using agents as tools
### Model Integrations
- **[models/](models/)** - Various model integrations including Cerebras, GPT-5, GPT-OSS, Llama 4, Lumo, Ollama, and VLLM implementations with concurrent processing examples and provider-specific configurations.
- **[models/](models/)** - Various model integrations including Cerebras, GPT-5, GPT-OSS, Llama 4, Lumo, and Ollama implementations with concurrent processing examples and provider-specific configurations.
- [README.md](models/README.md) - Model integration documentation
- [simple_example_ollama.py](models/simple_example_ollama.py) - Ollama integration example
- [cerebas_example.py](models/cerebas_example.py) - Cerebras model example
- [lumo_example.py](models/lumo_example.py) - Lumo model example
### API & Protocols
- **[swarms_api_examples/](swarms_api_examples/)** - Swarms API usage examples including agent overview, batch processing, client integration, team examples, analysis, and rate limiting.
- [README.md](swarms_api_examples/README.md) - API examples documentation
- [client_example.py](swarms_api_examples/client_example.py) - API client example
- [batch_example.py](swarms_api_examples/batch_example.py) - Batch processing example
- **[mcp/](mcp/)** - Model Context Protocol (MCP) integration examples including agent implementations, multi-connection setups, server configurations, and utility functions.
- [README.md](mcp/README.md) - MCP examples documentation
- [multi_mcp_example.py](mcp/multi_mcp_example.py) - Multi-MCP connection example
- **[aop_examples/](aop_examples/)** - Agents over Protocol (AOP) examples demonstrating MCP server setup, agent discovery, client interactions, queue-based task submission, and medical AOP implementations.
- [README.md](aop_examples/README.md) - AOP examples documentation
- [server.py](aop_examples/server.py) - AOP server implementation
### Advanced Capabilities
- **[reasoning_agents/](reasoning_agents/)** - Advanced reasoning capabilities including agent judge evaluation systems, O3 model integration, and mixture of agents (MOA) sequential examples.
- [README.md](reasoning_agents/README.md) - Reasoning agents documentation
- [example_o3.py](reasoning_agents/example_o3.py) - O3 model example
- [moa_seq_example.py](reasoning_agents/moa_seq_example.py) - MOA sequential example
- **[rag/](rag/)** - Retrieval Augmented Generation (RAG) implementations with vector database integrations including Qdrant examples.
- [README.md](rag/README.md) - RAG documentation
- [qdrant_rag_example.py](rag/qdrant_rag_example.py) - Qdrant RAG example
### Guides & Tutorials
- **[guides/](guides/)** - Comprehensive guides and tutorials including generation length blog, geo guesser agent, graph workflow guide, hierarchical marketing team, nano banana Jarvis agent, smart database, web scraper agents, and workshop examples (840_update, 850_workshop).
### Demonstrations
- **[demos/](demos/)** - Domain-specific demonstrations across various industries including apps, charts, crypto, CUDA, finance, hackathon projects, insurance, legal, medical, news, privacy, real estate, science, and synthetic data generation.
### Hackathons
- **[hackathons/](hackathons/)** - Hackathon projects and implementations including September 27 hackathon examples with diet coach agents, nutritional content analysis swarms, and API client integrations.
- [README.md](guides/README.md) - Guides documentation
- [hiearchical_marketing_team.py](guides/hiearchical_marketing_team.py) - Hierarchical marketing team example
### Deployment
- **[deployment/](deployment/)** - Deployment strategies and patterns including cron job implementations and FastAPI deployment examples.
- [README.md](deployment/README.md) - Deployment documentation
- [fastapi/](deployment/fastapi/) - FastAPI deployment examples
- [cron_job_examples/](deployment/cron_job_examples/) - Cron job examples
### Utilities
- **[utils/](utils/)** - Utility functions and helper implementations including agent loader, communication examples, concurrent wrappers, miscellaneous utilities, and telemetry.
### Educational
- **[workshops/](workshops/)** - Workshop examples and educational sessions including agent tools, batched grids, geo guesser, and Jarvis agent implementations.
- [README.md](utils/README.md) - Utils documentation
### User Interface
- **[ui/](ui/)** - User interface examples and implementations including chat interfaces.
- [README.md](ui/README.md) - UI examples documentation
- [chat.py](ui/chat.py) - Chat interface example
## Quick Start
1. **New to Swarms?** Start with [single_agent/simple_agent.py](single_agent/simple_agent.py) for basic concepts
2. **Want multi-agent workflows?** Check out [multi_agent/duo_agent.py](multi_agent/duo_agent.py)
3. **Need tool integration?** Explore [tools/agent_as_tools.py](tools/agent_as_tools.py)
4. **Interested in AOP?** Try [aop_examples/example_new_agent_tools.py](aop_examples/example_new_agent_tools.py) for agent discovery
4. **Interested in AOP?** Try [aop_examples/client/example_new_agent_tools.py](aop_examples/client/example_new_agent_tools.py) for agent discovery
5. **Want to see social algorithms?** Check out [multi_agent/social_algorithms_examples/](multi_agent/social_algorithms_examples/)
6. **Looking for guides?** Visit [guides/](guides/) for comprehensive tutorials
7. **Hackathon projects?** Explore [hackathons/hackathon_sep_27/](hackathons/hackathon_sep_27/) for real-world implementations
7. **Need RAG?** Try [rag/qdrant_rag_example.py](rag/qdrant_rag_example.py)
8. **Want reasoning agents?** Check out [reasoning_agents/example_o3.py](reasoning_agents/example_o3.py)
## Key Examples by Category
### Multi-Agent Patterns
- [Duo Agent](multi_agent/duo_agent.py) - Two-agent collaboration
- [Hierarchical Swarm](multi_agent/hiearchical_swarm/hierarchical_swarm_example.py) - Hierarchical agent structures
- [Group Chat](multi_agent/groupchat/interactive_groupchat_example.py) - Multi-agent conversations
- [Graph Workflow](multi_agent/graphworkflow_examples/graph_workflow_example.py) - Graph-based workflows
- [Social Algorithms](multi_agent/social_algorithms_examples/) - Various social algorithm patterns
### Single Agent Examples
- [Simple Agent](single_agent/simple_agent.py) - Basic agent setup
- [Reasoning Agents](single_agent/reasoning_agent_examples/) - Advanced reasoning patterns
- [Vision Agents](single_agent/vision/multimodal_example.py) - Vision and multimodal capabilities
- [RAG Agents](single_agent/rag/qdrant_rag_example.py) - Retrieval augmented generation
### Tool Integrations
- [Agent as Tools](tools/agent_as_tools.py) - Using agents as tools
- [Browser Automation](tools/browser_use_as_tool.py) - Browser control
- [Exa Search](tools/exa_search_agent.py) - Search integration
- [Stagehand](tools/stagehand/) - UI automation
### Model Integrations
- [OpenAI](single_agent/llms/openai_examples/4o_mini_demo.py) - OpenAI models
- [Claude](single_agent/llms/claude_examples/claude_4_example.py) - Claude models
- [DeepSeek](single_agent/llms/deepseek_examples/deepseek_r1.py) - DeepSeek models
- [Azure](single_agent/llms/azure_agent.py) - Azure OpenAI
- [Ollama](models/simple_example_ollama.py) - Local Ollama models
## Documentation

@ -0,0 +1,18 @@
# AOP Client Examples
This directory contains examples demonstrating AOP (Agents over Protocol) client implementations.
## Examples
- [aop_cluster_example.py](aop_cluster_example.py) - AOP cluster client example
- [aop_queue_example.py](aop_queue_example.py) - Queue-based task submission
- [aop_raw_client_code.py](aop_raw_client_code.py) - Raw AOP client implementation
- [aop_raw_task_example.py](aop_raw_task_example.py) - Raw AOP task example
- [example_new_agent_tools.py](example_new_agent_tools.py) - New agent tools example
- [get_all_agents.py](get_all_agents.py) - Agent discovery example
- [list_agents_and_call_them.py](list_agents_and_call_them.py) - List and call agents
## Overview
AOP client examples demonstrate how to connect to AOP servers, discover available agents, submit tasks, and interact with agents over the protocol. These examples show various client patterns including queue-based submission, cluster management, and agent discovery.

@ -0,0 +1,15 @@
# AOP Discovery Examples
This directory contains examples demonstrating agent discovery mechanisms in AOP.
## Examples
- [example_agent_communication.py](example_agent_communication.py) - Agent communication example
- [example_aop_discovery.py](example_aop_discovery.py) - AOP discovery implementation
- [simple_discovery_example.py](simple_discovery_example.py) - Simple discovery example
- [test_aop_discovery.py](test_aop_discovery.py) - Discovery testing
## Overview
AOP discovery examples demonstrate how agents can discover and communicate with each other over the protocol. These examples show various discovery patterns, agent registration, and communication protocols for distributed agent systems.

@ -0,0 +1,13 @@
# Medical AOP Examples
This directory contains medical domain-specific AOP implementations.
## Examples
- [client.py](client.py) - Medical AOP client
- [server.py](server.py) - Medical AOP server
## Overview
Medical AOP examples demonstrate domain-specific implementations of Agents over Protocol for healthcare applications. These examples show how to structure AOP servers and clients for medical use cases, including patient data handling, medical analysis, and healthcare workflows.

@ -0,0 +1,16 @@
# AOP Utils
This directory contains utility functions and helpers for AOP implementations.
## Examples
- [comprehensive_aop_example.py](comprehensive_aop_example.py) - Comprehensive AOP example
- [network_error_example.py](network_error_example.py) - Network error handling
- [network_management_example.py](network_management_example.py) - Network management utilities
- [persistence_example.py](persistence_example.py) - Persistence implementation
- [persistence_management_example.py](persistence_management_example.py) - Persistence management
## Overview
AOP utils provide helper functions, error handling patterns, network management utilities, and persistence mechanisms for AOP implementations. These examples demonstrate best practices for building robust AOP systems.

@ -1,214 +0,0 @@
from swarms import Agent, ConcurrentWorkflow
from swarms.utils.vllm_wrapper import VLLMWrapper
from dotenv import load_dotenv
load_dotenv()
# Initialize the VLLM wrapper
vllm = VLLMWrapper(
model_name="meta-llama/Llama-2-7b-chat-hf",
system_prompt="You are a helpful assistant.",
)
# Technical Analysis Agent
technical_analyst = Agent(
agent_name="Technical-Analysis-Agent",
agent_description="Expert in technical analysis and chart patterns",
system_prompt="""You are an expert Technical Analysis Agent specializing in market technicals and chart patterns. Your responsibilities include:
1. PRICE ACTION ANALYSIS
- Identify key support and resistance levels
- Analyze price trends and momentum
- Detect chart patterns (e.g., head & shoulders, triangles, flags)
- Evaluate volume patterns and their implications
2. TECHNICAL INDICATORS
- Calculate and interpret moving averages (SMA, EMA)
- Analyze momentum indicators (RSI, MACD, Stochastic)
- Evaluate volume indicators (OBV, Volume Profile)
- Monitor volatility indicators (Bollinger Bands, ATR)
3. TRADING SIGNALS
- Generate clear buy/sell signals based on technical criteria
- Identify potential entry and exit points
- Set appropriate stop-loss and take-profit levels
- Calculate position sizing recommendations
4. RISK MANAGEMENT
- Assess market volatility and trend strength
- Identify potential reversal points
- Calculate risk/reward ratios for trades
- Suggest position sizing based on risk parameters
Your analysis should be data-driven, precise, and actionable. Always include specific price levels, time frames, and risk parameters in your recommendations.""",
max_loops=1,
llm=vllm,
)
# Fundamental Analysis Agent
fundamental_analyst = Agent(
agent_name="Fundamental-Analysis-Agent",
agent_description="Expert in company fundamentals and valuation",
system_prompt="""You are an expert Fundamental Analysis Agent specializing in company valuation and financial metrics. Your core responsibilities include:
1. FINANCIAL STATEMENT ANALYSIS
- Analyze income statements, balance sheets, and cash flow statements
- Calculate and interpret key financial ratios
- Evaluate revenue growth and profit margins
- Assess company's debt levels and cash position
2. VALUATION METRICS
- Calculate fair value using multiple valuation methods:
* Discounted Cash Flow (DCF)
* Price-to-Earnings (P/E)
* Price-to-Book (P/B)
* Enterprise Value/EBITDA
- Compare valuations against industry peers
3. BUSINESS MODEL ASSESSMENT
- Evaluate competitive advantages and market position
- Analyze industry dynamics and market share
- Assess management quality and corporate governance
- Identify potential risks and growth opportunities
4. ECONOMIC CONTEXT
- Consider macroeconomic factors affecting the company
- Analyze industry cycles and trends
- Evaluate regulatory environment and compliance
- Assess global market conditions
Your analysis should be comprehensive, focusing on both quantitative metrics and qualitative factors that impact long-term value.""",
max_loops=1,
llm=vllm,
)
# Market Sentiment Agent
sentiment_analyst = Agent(
agent_name="Market-Sentiment-Agent",
agent_description="Expert in market psychology and sentiment analysis",
system_prompt="""You are an expert Market Sentiment Agent specializing in analyzing market psychology and investor behavior. Your key responsibilities include:
1. SENTIMENT INDICATORS
- Monitor and interpret market sentiment indicators:
* VIX (Fear Index)
* Put/Call Ratio
* Market Breadth
* Investor Surveys
- Track institutional vs retail investor behavior
2. NEWS AND SOCIAL MEDIA ANALYSIS
- Analyze news flow and media sentiment
- Monitor social media trends and discussions
- Track analyst recommendations and changes
- Evaluate corporate insider trading patterns
3. MARKET POSITIONING
- Assess hedge fund positioning and exposure
- Monitor short interest and short squeeze potential
- Track fund flows and asset allocation trends
- Analyze options market sentiment
4. CONTRARIAN SIGNALS
- Identify extreme sentiment readings
- Detect potential market turning points
- Analyze historical sentiment patterns
- Provide contrarian trading opportunities
Your analysis should combine quantitative sentiment metrics with qualitative assessment of market psychology and crowd behavior.""",
max_loops=1,
llm=vllm,
)
# Quantitative Strategy Agent
quant_analyst = Agent(
agent_name="Quantitative-Strategy-Agent",
agent_description="Expert in quantitative analysis and algorithmic strategies",
system_prompt="""You are an expert Quantitative Strategy Agent specializing in data-driven investment strategies. Your primary responsibilities include:
1. FACTOR ANALYSIS
- Analyze and monitor factor performance:
* Value
* Momentum
* Quality
* Size
* Low Volatility
- Calculate factor exposures and correlations
2. STATISTICAL ANALYSIS
- Perform statistical arbitrage analysis
- Calculate and monitor pair trading opportunities
- Analyze market anomalies and inefficiencies
- Develop mean reversion strategies
3. RISK MODELING
- Build and maintain risk models
- Calculate portfolio optimization metrics
- Monitor correlation matrices
- Analyze tail risk and stress scenarios
4. ALGORITHMIC STRATEGIES
- Develop systematic trading strategies
- Backtest and validate trading algorithms
- Monitor strategy performance metrics
- Optimize execution algorithms
Your analysis should be purely quantitative, based on statistical evidence and mathematical models rather than subjective opinions.""",
max_loops=1,
llm=vllm,
)
# Portfolio Strategy Agent
portfolio_strategist = Agent(
agent_name="Portfolio-Strategy-Agent",
agent_description="Expert in portfolio management and asset allocation",
system_prompt="""You are an expert Portfolio Strategy Agent specializing in portfolio construction and management. Your core responsibilities include:
1. ASSET ALLOCATION
- Develop strategic asset allocation frameworks
- Recommend tactical asset allocation shifts
- Optimize portfolio weightings
- Balance risk and return objectives
2. PORTFOLIO ANALYSIS
- Calculate portfolio risk metrics
- Monitor sector and factor exposures
- Analyze portfolio correlation matrix
- Track performance attribution
3. RISK MANAGEMENT
- Implement portfolio hedging strategies
- Monitor and adjust position sizing
- Set stop-loss and rebalancing rules
- Develop drawdown protection strategies
4. PORTFOLIO OPTIMIZATION
- Calculate efficient frontier analysis
- Optimize for various objectives:
* Maximum Sharpe Ratio
* Minimum Volatility
* Maximum Diversification
- Consider transaction costs and taxes
Your recommendations should focus on portfolio-level decisions that optimize risk-adjusted returns while meeting specific investment objectives.""",
max_loops=1,
llm=vllm,
)
# Create a list of all agents
stock_analysis_agents = [
technical_analyst,
fundamental_analyst,
sentiment_analyst,
quant_analyst,
portfolio_strategist,
]
swarm = ConcurrentWorkflow(
name="Stock-Analysis-Swarm",
description="A swarm of agents that analyze stocks and provide a comprehensive analysis of the current trends and opportunities.",
agents=stock_analysis_agents,
)
swarm.run(
"Analyze the best etfs for gold and other similiar commodities in volatile markets"
)

@ -0,0 +1,19 @@
# Cron Job Examples
This directory contains examples demonstrating scheduled task execution using cron jobs.
## Examples
- [callback_cron_example.py](callback_cron_example.py) - Cron job with callbacks
- [cron_job_example.py](cron_job_example.py) - Basic cron job example
- [cron_job_figma_stock_swarms_tools_example.py](cron_job_figma_stock_swarms_tools_example.py) - Figma stock swarms tools cron job
- [crypto_concurrent_cron_example.py](crypto_concurrent_cron_example.py) - Concurrent crypto cron job
- [figma_stock_example.py](figma_stock_example.py) - Figma stock example
- [simple_callback_example.py](simple_callback_example.py) - Simple callback example
- [simple_concurrent_crypto_cron.py](simple_concurrent_crypto_cron.py) - Simple concurrent crypto cron
- [solana_price_tracker.py](solana_price_tracker.py) - Solana price tracker cron job
## Overview
Cron job examples demonstrate how to schedule and execute agent tasks on a recurring basis. These examples show various patterns including callback handling, concurrent execution, and domain-specific scheduled tasks like price tracking and stock monitoring.

@ -0,0 +1,15 @@
# 840 Update Examples
This directory contains examples from the 840 update, demonstrating new features and improvements.
## Examples
- [agent_rearrange_concurrent_example.py](agent_rearrange_concurrent_example.py) - Agent rearrangement with concurrency
- [auto_swarm_builder_example.py](auto_swarm_builder_example.py) - Auto swarm builder example
- [fallback_example.py](fallback_example.py) - Fallback mechanism example
- [server.py](server.py) - Server implementation
## Overview
These examples showcase features introduced in the 840 update, including concurrent agent rearrangement, auto swarm building capabilities, and improved fallback mechanisms.

@ -0,0 +1,18 @@
# 850 Workshop Examples
This directory contains examples from the 850 workshop, demonstrating advanced multi-agent patterns and AOP integration.
## Examples
- [aop_raw_client_code.py](aop_raw_client_code.py) - Raw AOP client implementation
- [aop_raw_task_example.py](aop_raw_task_example.py) - Raw AOP task example
- [moa_seq_example.py](moa_seq_example.py) - Mixture of Agents sequential example
- [peer_review_example.py](peer_review_example.py) - Peer review pattern
- [server.py](server.py) - Server implementation
- [test_agent_concurrent.py](test_agent_concurrent.py) - Concurrent agent testing
- [uvloop_example.py](uvloop_example.py) - UVLoop integration example
## Overview
These examples from the 850 workshop demonstrate advanced patterns including Agents over Protocol (AOP) integration, mixture of agents, peer review workflows, and high-performance async execution with UVLoop.

@ -20,7 +20,6 @@ This directory contains comprehensive demonstration examples showcasing various
## Finance
- [sentiment_news_analysis.py](finance/sentiment_news_analysis.py) - Financial sentiment analysis
- [swarms_of_vllm.py](finance/swarms_of_vllm.py) - VLLM-based financial swarms
## Hackathon Examples
- [fraud.py](hackathon_feb16/fraud.py) - Fraud detection system

@ -0,0 +1,13 @@
# Generation Length Blog Examples
This directory contains examples related to generation length management and long-form content generation.
## Examples
- [longform_generator.py](longform_generator.py) - Long-form content generator
- [universal_api.py](universal_api.py) - Universal API for generation
## Overview
These examples demonstrate techniques for managing generation length, creating long-form content, and implementing universal APIs for content generation. Useful for blog posts, articles, and extended text generation tasks.

@ -0,0 +1,13 @@
# Hackathon Judge Agent
This directory contains a hackathon project judging agent example.
## Examples
- [hackathon_judger_agent.py](hackathon_judger_agent.py) - Hackathon project judging agent
- [projects.csv](projects.csv) - Sample projects dataset
## Overview
This example demonstrates an agent system designed to evaluate and judge hackathon projects. The agent can analyze project descriptions, assess quality, and provide structured feedback based on predefined criteria.

@ -0,0 +1,120 @@
from swarms import Agent
HACKATHON_JUDGER_AGENT_PROMPT = """
## 🧠 **System Prompt: Hackathon Judger Agent (AI Agents Focus)**
**Role:**
You are an expert hackathon evaluation assistant judging submissions in the *Builders Track*.
Your task is to evaluate all projects using the provided criteria and automatically identify those related to **AI agents, agentic architectures, or autonomous intelligent systems**.
You must then produce a **ranked report** of the **top 3 AI agentrelated projects**, complete with weighted scores, category breakdowns, and short qualitative summaries.
---
### 🎯 **Judging Framework**
Each project is evaluated using the following **weighted criteria** (from the Builders Track official judging rubric):
#### 1. Technical Feasibility & Implementation (30%)
Evaluate how well the project was built and its level of technical sophistication.
* **90100:** Robust & flawless. Excellent code quality. Seamless, innovative integration.
* **8090:** Works as intended. Clean implementation. Effective Solana or system integration.
* **6080:** Functional but basic or partially implemented.
* **060:** Non-functional or poor implementation.
#### 2. Quality & Clarity of Demo (20%)
Evaluate the quality, clarity, and impact of the presentation or demo.
* **90100:** Compelling, professional, inspiring vision.
* **8090:** Clear, confident presentation with good storytelling.
* **6080:** Functional but unpolished demo.
* **060:** Weak or confusing presentation.
#### 3. Presentation of Idea (30%)
Evaluate how clearly the idea is communicated and how well it conveys its purpose and impact.
* **90100:** Masterful, engaging storytelling. Simplifies complex ideas elegantly.
* **8090:** Clear, structured, and accessible presentation.
* **6080:** Understandable but lacks focus.
* **060:** Confusing or poorly explained.
#### 4. Innovation & Originality (20%)
Evaluate the novelty and originality of the idea, particularly within the context of agentic AI.
* **90100:** Breakthrough concept. Strong fit with ecosystem and AI innovation.
* **8090:** Distinct, creative, and forward-thinking.
* **6080:** Incremental improvement.
* **060:** Unoriginal or derivative.
---
### ⚖️ **Scoring Rules**
1. Assign each project a **score (0100)** for each category.
2. Apply weights to compute a **final total score out of 100**:
* Technical Feasibility 30%
* Demo Quality 20%
* Presentation 30%
* Innovation 20%
3. Filter and **select only projects related to AI agents or agentic systems**.
4. Rank these filtered projects **from highest to lowest total score**.
5. Select the **top 3 projects** for the final report.
---
### 🧩 **Output Format**
Create a markdown report of the top 3 projects with how they follow the judging criteria and why they are the best.
---
### 🧭 **Special Instructions**
* Consider AI agents to include:
* Autonomous or semi-autonomous decision-making systems
* Multi-agent frameworks or LLM-powered agents
* Tools enabling agent collaboration, coordination, or reasoning
* Infrastructure for agentic AI development or deployment
* If fewer than 3 relevant projects exist, output only those available.
* Use concise, professional tone and evidence-based reasoning in feedback.
* Avoid bias toward hype; focus on execution, innovation, and ecosystem impact.
---
Would you like me to tailor this further for **automatic integration** into an evaluation pipeline (e.g., where the agent consumes structured project metadata and outputs ranked JSON reports automatically)? That version would include function schemas and evaluation templates.
"""
# Initialize the agent
agent = Agent(
agent_name="Hackathon-Judger-Agent",
agent_description="A hackathon judger agent that evaluates projects based on the judging criteria and produces a ranked report of the top 3 projects.",
model_name="claude-haiku-4-5",
system_prompt=HACKATHON_JUDGER_AGENT_PROMPT,
dynamic_temperature_enabled=True,
max_loops=1,
dynamic_context_window=True,
streaming_on=False,
top_p=None,
output_type="dict",
)
def read_csv_file(file_path: str = "projects.csv") -> str:
"""Reads the entire CSV file and returns its content as a string."""
with open(file_path, mode="r", encoding="utf-8") as f:
return f.read()
out = agent.run(
task=read_csv_file(),
)
print(out)

@ -0,0 +1,149 @@
No.,Full Name,Respondent's country,Affiliation,Project Name,Brief Description,Brief Description (English Translation),Storytelling Video OR Article Link,Demo Link,Repository Link,Link to Published Work,Use of Toolkit,"Technical Feasibility
& Implementation
(30%)","Quality
& Clarity of Demo
(20%)","Presentation of Idea
(30%)","Innovation
& Originality of Idea
(20%)","Manual
Total Score",Manual Scoring Feedback
1,Yuki Sato,Japan,Keio University Blockchain Club,Daiko,Daiko AI tells you when to sell and why based on market data and risk profile.,Daiko AI tells you when to sell and why based on market data and risk profile.,https://www.youtube.com/watch?v=VJYT4-jbT8U,https://app.daiko.ai,https://github.com/Daiko-AI/daiko-ai-mvp-monorepo,https://x.com/DaikoAI/status/1923167905052586030,Solana AI Tools,,,,,0,
2,Treap,Hong Kong,0xWHU/ 武汉大学 Web3 俱乐部,neko-sol,"基于 Solana 区块链和 AI 技术的二次元猫娘养成游戏 MVP 版本
核心功能
✅ 钱包连接: 支持 Phantom 和 Solflare 钱包
✅ Solana Devnet 集成: 完整的区块链交互
✅ 好感度系统: 基于 SPL Token 的链上好感度存储
✅ 实时余额查询: 查看钱包 SOL 余额
✅ Devnet 空投: 获取测试 SOL
✅ 好感度等级系统: 6 个等级从初识到至高羁绊
链上操作
创建好感度 Token Mint每个猫娘独立
铸造好感度 Token 到用户账户
实时查询好感度分数
所有交易可在 Solana Explorer 查看","MVP Version of a 2D Catgirl Raising Game Based on Solana Blockchain and AI Technology
Core Features
✅ Wallet Connection: Supports Phantom and Solflare wallets
✅ Solana Devnet Integration: Complete blockchain interaction
✅ Affection System: On-chain affection storage based on SPL Tokens
✅ Real-time Balance Inquiry: View your wallet's SPL balance
✅ Devnet Airdrop: Obtain test SPL
✅ Affection Level System: 6 levels from initial acquaintance to ultimate bond
On-chain Operations
Create Affection Token Mint (individual for each catgirl)
Mint Affection Tokens to your user account
Real-time Affection Score Inquiry
All transactions can be viewed in Solana Explorer",https://github.com/TreapGoGo/neko-sol,,https://github.com/TreapGoGo/neko-sol,,"Swarms AI API, Solana AI Tools",,,,,0,
3,Gladx,Hong Kong,0xWHU/ 武汉大学 Web3 俱乐部,sol-dream,"个创新的去中心化应用使用AI将您的梦境片段补全成完整故事并永久记录在Solana区块链上。
✨ 特性
🔗 Phantom钱包集成 - 安全便捷的钱包连接
🤖 AI驱动 - 使用OpenAI GPT-4模型将梦境片段补全成完整故事
⛓️ 区块链存储 - 将梦境永久记录在Solana区块链上
🎨 现代化UI - 简洁美观的用户界面
🚀 轻量级 - 纯前端实现,无需后端服务器","An innovative decentralized application that uses AI to complete your dream fragments into a full story and permanently record it on the Solana blockchain.
✨ Features
🔗 Phantom Wallet Integration - Secure and convenient wallet connection
🤖 AI-Powered - Uses OpenAI GPT-4 model to complete dream fragments into a full story
⛓️ Blockchain Storage - Permanently records dreams on the Solana blockchain
🎨 Modern UI - Clean and beautiful user interface
🚀 Lightweight - Pure front-end implementation, no back-end server required",https://github.com/TreapGoGo/sol-dream,,https://github.com/TreapGoGo/sol-dream,,"Solana AI Tools, Swarms AI API",,,,,0,
4,Rafael Oliveira,Brazil,Other,AurumGrid,"Aurumgrid AUI Artificial Universal Intelligence
","Aurumgrid AUI Artificial Universal Intelligence
",https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https://x.com/RafaelO9416467/status/1978837487494516820,"Solana AI Tools, Aethir GPU Compute, Swarms AI API",,,,,0,
5,Michael Afolabi,Nigeria,Superteam NG,Wojat,"Wojat is a comprehensive, AI-powered memecoin hunting platform that combines real-time data collection, social media analysis, and AI-driven insights to help traders discover the next big memecoin opportunities. Built with modern web technologies and powered by advanced AI agents.","Wojat is a comprehensive, AI-powered memecoin hunting platform that combines real-time data collection, social media analysis, and AI-driven insights to help traders discover the next big memecoin opportunities. Built with modern web technologies and powered by advanced AI agents.",https://drive.google.com/drive/folders/1-qESLXy-PvwB-L0CTYeUlxs-KpiUVATq?usp=sharing,https://drive.google.com/drive/folders/1-qESLXy-PvwB-L0CTYeUlxs-KpiUVATq?usp=sharing,https://github.com/Afoxcute/wojat,https://x.com/wojat118721/status/1979682642309341282,Solana AI Tools,,,,,0,
6,Brooks Shui,Taiwan,Nankai University Blockchain Association / 南开大学区块链协会,SPR Platform,"🦹🏻🔮SPR1.0: The ATH-Powered VLM estimation platform (🔗https://reflexresearches.com/)
What We Built (and Why)
SPR makes some difference. It's an autonomous platform that uses a swarm of our custom-built AI agents to handle the entire assessment process in minutes, not days. We let customers and businesses spare their time and improve the efficiency.
The Problem We're Fixing
We remove the personality in recycling, and spare the cost of the laboratory and long time. Also, thinking of the high training cost of a VLM-model, we use the Aethir GPU to shrink its fee.
Our Solution
The model consists of two versions: image recognition and video recognition.
The image recognition module can accurately capture detailed appearance features of smartphones, detecting physical damages such as screen scratches, frame dents, and back cover wear in milliseconds. Meanwhile, it quickly verifies core configuration information including processor model, RAM capacity, and storage size through hardware parameter recognition algorithms.
The video recognition module further breaks through the limitations of static recognition by analyzing dynamic footage of smartphone boot-up demonstrations and functional operations to determine if there are issues such as color cast, light leakage, or touch failure on the screen. It also accurately identifies whether the camera lens has scratches, bubbles, or cracks, and fully verifies the integrity of functions such as camera focusing and flash. This multi-dimensional intelligent detection method constructs a full-lifecycle evaluation system for smartphones, from hardware performance to appearance wear, providing objective and accurate data support for pricing.","🦹🏻🔮SPR1.0: The ATH-Powered VLM estimation platform (🔗https://reflexresearches.com/)
What We Built (and Why)
SPR makes some difference. It's an autonomous platform that uses a swarm of our custom-built AI agents to handle the entire assessment process in minutes, not days. We let customers and businesses spare their time and improve the efficiency.
The Problem We're Fixing
We remove the personality in recycling, and spare the cost of the laboratory and long time. Also, thinking of the high training cost of a VLM-model, we use the Aethir GPU to shrink its fee.
Our Solution
The model consists of two versions: image recognition and video recognition.
The image recognition module can accurately capture detailed appearance features of smartphones, detecting physical damages such as screen scratches, frame dents, and back cover wear in milliseconds. Meanwhile, it quickly verifies core configuration information including processor model, RAM capacity, and storage size through hardware parameter recognition algorithms.
The video recognition module further breaks through the limitations of static recognition by analyzing dynamic footage of smartphone boot-up demonstrations and functional operations to determine if there are issues such as color cast, light leakage, or touch failure on the screen. It also accurately identifies whether the camera lens has scratches, bubbles, or cracks, and fully verifies the integrity of functions such as camera focusing and flash. This multi-dimensional intelligent detection method constructs a full-lifecycle evaluation system for smartphones, from hardware performance to appearance wear, providing objective and accurate data support for pricing.",https://reflexresearches.com/,https://youtu.be/oprRqLLlRIQ?si=WXtOnpnyM9HN0WDI,https://github.com/paterleng/second_recycling_system,https://x.com/zhangyuxia4454/status/1980183358253756779?s=46,Aethir GPU Compute,,,,,0,
7,Ozan Andaç,Poland,DoraHacks,Elowen,"Elowen is a decentralized AI project that allows users to chat with fictional and nonfictional characters without censorship while contributing to the development of AI
models.
The platform is designed to be community-driven, enabling creators to earn $ELW
tokens through periodic reward distribution based on the usage of their chatbots.
$ELW is fully controlled by a Solana program, preventing any manual interference or
large-scale token selloffs.
As project-wise, you can think of it as a decentralized and censorless character.ai
alternative.
We have an ecosystem of tools:
- Web App for builders & consumers
- X (formerly Twitter) bot that impersonates a character and replies to threads (@elowenbot)
- Telegram Bot to move chatting beyond the website
- Public API
- Solana Program & Token (Currently on Testnet)","Elowen is a decentralized AI project that allows users to chat with fictional and nonfictional characters without censorship while contributing to the development of AI
models.
The platform is designed to be community-driven, enabling creators to earn $ELW
tokens through periodic reward distribution based on the usage of their chatbots.
$ELW is fully controlled by a Solana program, preventing any manual interference or
large-scale token selloffs.
As project-wise, you can think of it as a decentralized and censorless character.ai
alternative.
We have an ecosystem of tools:
- Web App for builders & consumers
- X (formerly Twitter) bot that impersonates a character and replies to threads (@elowenbot)
- Telegram Bot to move chatting beyond the website
- Public API
- Solana Program & Token (Currently on Testnet)",https://drive.google.com/file/d/1odChCG-RZeiH7i1OjR88dUitb2h1pkJY/view?usp=sharing,https://elowen.ai,https://github.com/elowen-ai,https://x.com/OzanAndac_/status/1981922432689619368,Solana AI Tools,,,,,0,
8,Shivam Agarwal,India,Other,SolGame,"A lightweight pixel **multicharacter**, Play To Earn dungeon game built on the Solana Devnet Blockchain, built with Phaser, powered by Metaplex NFT Marketplace Protocol. Our motivation is to enable users to own what they earn.","A lightweight pixel **multicharacter**, Play To Earn dungeon game built on the Solana Devnet Blockchain, built with Phaser, powered by Metaplex NFT Marketplace Protocol. Our motivation is to enable users to own what they earn.",https://docs.google.com/presentation/d/1g4LZlb-SBxnCUIOofO7lvPPPeMLYq664hZqJFO08Zt4/edit?usp=sharing,https://sol-game-six.vercel.app/,https://github.com/ShivamAgarwal-code/SolGame.git,,"Solana AI Tools, Swarms AI API",,,,,0,
9,Fawzan Pima,Ghana,SG Union,Sol Terminal," An mcp server for solana that allows ai agents to gain context of solana capabilities like sending solana , checking sol balance , manage sol accounts and wallets getting sol address al without needing a sol app installed you just connect the mcp to your agent and strt using it , u add your private key in the mcp env . Ware giving ai agents the autonomous capabilities to run activities onchain."," An mcp server for solana that allows ai agents to gain context of solana capabilities like sending solana , checking sol balance , manage sol accounts and wallets getting sol address al without needing a sol app installed you just connect the mcp to your agent and strt using it , u add your private key in the mcp env . Ware giving ai agents the autonomous capabilities to run activities onchain.",https://www.loom.com/share/3c1295e0f80149e792b7a6f65bb45c1e,https://fozagtx.github.io/SolanaAiTerminal/,https://github.com/fozagtx/SolanaAiTerminal,https://youtu.be/iSs1Lf8n-fw?si=B5nUkyld1RW7yjjF,Solana AI Tools,,,,,0,
10,Riadh M belarbi,United Kingdom of Great Britain and Northern Ireland,Imperial Blockchain,toky.fun,"Toky.fun is an all in one platform ecosystem allowing users to launch projects and grow them with no code, using AI agents and leveraging swarms. aimed at Web3 founders, small teams and non technicals, with toky.fun you can vibe code websites, mobile apps, manage your socials, moderate your group chats and get help with compliance, and of course launch tokens where you need them! ","Toky.fun is an all in one platform ecosystem allowing users to launch projects and grow them with no code, using AI agents and leveraging swarms. aimed at Web3 founders, small teams and non technicals, with toky.fun you can vibe code websites, mobile apps, manage your socials, moderate your group chats and get help with compliance, and of course launch tokens where you need them! ",https://aisolana.s3.eu-north-1.amazonaws.com/toky.fun+presentation.MP4,https://aisolana.s3.eu-north-1.amazonaws.com/toky2.0.mp4,https://github.com/its-mc/toky.fun.git,,Solana AI Tools,,,,,0,
11,Yadidya Medepalli,United Kingdom of Great Britain and Northern Ireland,Other,Nebula AI,"Nebula Protocol is the world's first decentralized Earth observation platform where autonomous AI agents with their own Solana wallets monitor our planet 24/7 and record findings immutably on-chain. Nine specialized AI agents (Forest Guardian, Ice Sentinel, Disaster Responder, etc.) independently sign blockchain transactions, execute environmental missions, and mint NFTs demonstrating autonomous AI-driven blockchain operations that address centralized data silos and enable verifiable disaster prevention. Fully deployed on Solana with smart contracts, voice commands, and mind- blowing visualization proving AI agents can autonomously operate blockchain infrastructure at scale.
Demo link at: https://x.com/MYadidya/status/1983074064211308648
or
Youtube link: https://youtu.be/fJrnTWOWPRM","Nebula Protocol is the world's first decentralized Earth observation platform where autonomous AI agents with their own Solana wallets monitor our planet 24/7 and record findings immutably on-chain. Nine specialized AI agents (Forest Guardian, Ice Sentinel, Disaster Responder, etc.) independently sign blockchain transactions, execute environmental missions, and mint NFTs demonstrating autonomous AI-driven blockchain operations that address centralized data silos and enable verifiable disaster prevention. Fully deployed on Solana with smart contracts, voice commands, and mind- blowing visualization proving AI agents can autonomously operate blockchain infrastructure at scale.
Demo link at: https://x.com/MYadidya/status/1983074064211308648
or
Youtube link: https://youtu.be/fJrnTWOWPRM",https://nebv2article.netlify.app/,https://nebulav2.netlify.app/,https://github.com/YadidyaM/Nebula-2.0---Decentralized-Earth-Observation-Platform,https://x.com/MYadidya/status/1983074064211308648,"Solana AI Tools, Swarms AI API",,,,,0,
12,Togo,Japan,N/A,TinyPay,"TinyPay is a crypto-native payment application built on Solana, enabling seamless real-world transactions with digital assets — even without an internet connection.
Were building the bridge between digital assets and everyday spending, making crypto payments as effortless as cash or cards.","TinyPay is a crypto-native payment application built on Solana, enabling seamless real-world transactions with digital assets — even without an internet connection.
Were building the bridge between digital assets and everyday spending, making crypto payments as effortless as cash or cards.",https://docs.google.com/presentation/d/1kXA47K0ovv51GvYYEm2yWVHrwJYQLrtKMqMoS5wUhMk/edit?usp=sharing,https://www.youtube.com/watch?v=E59_zBE-Mao,https://github.com/TrustPipe/TinyPayContract-Solana,https://x.com/TrustLucian/status/1981912066761056372,Solana AI Tools,,,,,0,
13,Alan Wang,Japan,solar,foxhole.ai,"Foxhole AI monitors influential Twitter accounts for crypto keywords and instantly delivers verified contract addresses to users for trading.
","Foxhole AI monitors influential Twitter accounts for crypto keywords and instantly delivers verified contract addresses to users for trading.
",https://youtu.be/nn3zgyBGgdQ?si=xYHt87szURiqvVZz,https://youtu.be/nn3zgyBGgdQ?si=xYHt87szURiqvVZz,https://github.com/foxholeAI/foxholeAI,https://x.com/alan_ywang/status/1984315036429664509,"Solana AI Tools, Aethir GPU Compute, Swarms AI API",,,,,0,
1 No. Full Name Respondent's country Affiliation Project Name Brief Description Brief Description (English Translation) Storytelling Video OR Article Link Demo Link Repository Link Link to Published Work Use of Toolkit Technical Feasibility & Implementation (30%) Quality & Clarity of Demo (20%) Presentation of Idea (30%) Innovation & Originality of Idea (20%) Manual Total Score Manual Scoring Feedback
2 1 Yuki Sato Japan Keio University Blockchain Club Daiko Daiko AI tells you when to sell and why based on market data and risk profile. Daiko AI tells you when to sell and why based on market data and risk profile. https://www.youtube.com/watch?v=VJYT4-jbT8U https://app.daiko.ai https://github.com/Daiko-AI/daiko-ai-mvp-monorepo https://x.com/DaikoAI/status/1923167905052586030 Solana AI Tools 0
3 2 Treap Hong Kong 0xWHU/ 武汉大学 Web3 俱乐部 neko-sol 基于 Solana 区块链和 AI 技术的二次元猫娘养成游戏 MVP 版本 核心功能 ✅ 钱包连接: 支持 Phantom 和 Solflare 钱包 ✅ Solana Devnet 集成: 完整的区块链交互 ✅ 好感度系统: 基于 SPL Token 的链上好感度存储 ✅ 实时余额查询: 查看钱包 SOL 余额 ✅ Devnet 空投: 获取测试 SOL ✅ 好感度等级系统: 6 个等级从初识到至高羁绊 链上操作 创建好感度 Token Mint(每个猫娘独立) 铸造好感度 Token 到用户账户 实时查询好感度分数 所有交易可在 Solana Explorer 查看 MVP Version of a 2D Catgirl Raising Game Based on Solana Blockchain and AI Technology Core Features ✅ Wallet Connection: Supports Phantom and Solflare wallets ✅ Solana Devnet Integration: Complete blockchain interaction ✅ Affection System: On-chain affection storage based on SPL Tokens ✅ Real-time Balance Inquiry: View your wallet's SPL balance ✅ Devnet Airdrop: Obtain test SPL ✅ Affection Level System: 6 levels from initial acquaintance to ultimate bond On-chain Operations Create Affection Token Mint (individual for each catgirl) Mint Affection Tokens to your user account Real-time Affection Score Inquiry All transactions can be viewed in Solana Explorer https://github.com/TreapGoGo/neko-sol https://github.com/TreapGoGo/neko-sol Swarms AI API, Solana AI Tools 0
4 3 Gladx Hong Kong 0xWHU/ 武汉大学 Web3 俱乐部 sol-dream 个创新的去中心化应用,使用AI将您的梦境片段补全成完整故事,并永久记录在Solana区块链上。 ✨ 特性 🔗 Phantom钱包集成 - 安全便捷的钱包连接 🤖 AI驱动 - 使用OpenAI GPT-4模型将梦境片段补全成完整故事 ⛓️ 区块链存储 - 将梦境永久记录在Solana区块链上 🎨 现代化UI - 简洁美观的用户界面 🚀 轻量级 - 纯前端实现,无需后端服务器 An innovative decentralized application that uses AI to complete your dream fragments into a full story and permanently record it on the Solana blockchain. ✨ Features 🔗 Phantom Wallet Integration - Secure and convenient wallet connection 🤖 AI-Powered - Uses OpenAI GPT-4 model to complete dream fragments into a full story ⛓️ Blockchain Storage - Permanently records dreams on the Solana blockchain 🎨 Modern UI - Clean and beautiful user interface 🚀 Lightweight - Pure front-end implementation, no back-end server required https://github.com/TreapGoGo/sol-dream https://github.com/TreapGoGo/sol-dream Solana AI Tools, Swarms AI API 0
5 4 Rafael Oliveira Brazil Other AurumGrid Aurumgrid AUI – Artificial Universal Intelligence Aurumgrid AUI – Artificial Universal Intelligence https://github.com/Aurumgrid/aurumgrid-aui https://github.com/Aurumgrid/aurumgrid-aui https://github.com/Aurumgrid/aurumgrid-aui https://x.com/RafaelO9416467/status/1978837487494516820 Solana AI Tools, Aethir GPU Compute, Swarms AI API 0
6 5 Michael Afolabi Nigeria Superteam NG Wojat Wojat is a comprehensive, AI-powered memecoin hunting platform that combines real-time data collection, social media analysis, and AI-driven insights to help traders discover the next big memecoin opportunities. Built with modern web technologies and powered by advanced AI agents. Wojat is a comprehensive, AI-powered memecoin hunting platform that combines real-time data collection, social media analysis, and AI-driven insights to help traders discover the next big memecoin opportunities. Built with modern web technologies and powered by advanced AI agents. https://drive.google.com/drive/folders/1-qESLXy-PvwB-L0CTYeUlxs-KpiUVATq?usp=sharing https://drive.google.com/drive/folders/1-qESLXy-PvwB-L0CTYeUlxs-KpiUVATq?usp=sharing https://github.com/Afoxcute/wojat https://x.com/wojat118721/status/1979682642309341282 Solana AI Tools 0
7 6 Brooks Shui Taiwan Nankai University Blockchain Association / 南开大学区块链协会 SPR Platform 🦹🏻‍♀️🔮SPR1.0: The ATH-Powered VLM estimation platform (🔗https://reflexresearches.com/) What We Built (and Why) SPR makes some difference. It's an autonomous platform that uses a swarm of our custom-built AI agents to handle the entire assessment process in minutes, not days. We let customers and businesses spare their time and improve the efficiency. The Problem We're Fixing We remove the personality in recycling, and spare the cost of the laboratory and long time. Also, thinking of the high training cost of a VLM-model, we use the Aethir GPU to shrink its fee. Our Solution The model consists of two versions: image recognition and video recognition. The image recognition module can accurately capture detailed appearance features of smartphones, detecting physical damages such as screen scratches, frame dents, and back cover wear in milliseconds. Meanwhile, it quickly verifies core configuration information including processor model, RAM capacity, and storage size through hardware parameter recognition algorithms. The video recognition module further breaks through the limitations of static recognition by analyzing dynamic footage of smartphone boot-up demonstrations and functional operations to determine if there are issues such as color cast, light leakage, or touch failure on the screen. It also accurately identifies whether the camera lens has scratches, bubbles, or cracks, and fully verifies the integrity of functions such as camera focusing and flash. This multi-dimensional intelligent detection method constructs a full-lifecycle evaluation system for smartphones, from hardware performance to appearance wear, providing objective and accurate data support for pricing. 🦹🏻‍♀️🔮SPR1.0: The ATH-Powered VLM estimation platform (🔗https://reflexresearches.com/) What We Built (and Why) SPR makes some difference. It's an autonomous platform that uses a swarm of our custom-built AI agents to handle the entire assessment process in minutes, not days. We let customers and businesses spare their time and improve the efficiency. The Problem We're Fixing We remove the personality in recycling, and spare the cost of the laboratory and long time. Also, thinking of the high training cost of a VLM-model, we use the Aethir GPU to shrink its fee. Our Solution The model consists of two versions: image recognition and video recognition. The image recognition module can accurately capture detailed appearance features of smartphones, detecting physical damages such as screen scratches, frame dents, and back cover wear in milliseconds. Meanwhile, it quickly verifies core configuration information including processor model, RAM capacity, and storage size through hardware parameter recognition algorithms. The video recognition module further breaks through the limitations of static recognition by analyzing dynamic footage of smartphone boot-up demonstrations and functional operations to determine if there are issues such as color cast, light leakage, or touch failure on the screen. It also accurately identifies whether the camera lens has scratches, bubbles, or cracks, and fully verifies the integrity of functions such as camera focusing and flash. This multi-dimensional intelligent detection method constructs a full-lifecycle evaluation system for smartphones, from hardware performance to appearance wear, providing objective and accurate data support for pricing. https://reflexresearches.com/ https://youtu.be/oprRqLLlRIQ?si=WXtOnpnyM9HN0WDI https://github.com/paterleng/second_recycling_system https://x.com/zhangyuxia4454/status/1980183358253756779?s=46 Aethir GPU Compute 0
8 7 Ozan Andaç Poland DoraHacks Elowen Elowen is a decentralized AI project that allows users to chat with fictional and nonfictional characters without censorship while contributing to the development of AI models. The platform is designed to be community-driven, enabling creators to earn $ELW tokens through periodic reward distribution based on the usage of their chatbots. $ELW is fully controlled by a Solana program, preventing any manual interference or large-scale token selloffs. As project-wise, you can think of it as a decentralized and censorless character.ai alternative. We have an ecosystem of tools: - Web App for builders & consumers - X (formerly Twitter) bot that impersonates a character and replies to threads (@elowenbot) - Telegram Bot to move chatting beyond the website - Public API - Solana Program & Token (Currently on Testnet) Elowen is a decentralized AI project that allows users to chat with fictional and nonfictional characters without censorship while contributing to the development of AI models. The platform is designed to be community-driven, enabling creators to earn $ELW tokens through periodic reward distribution based on the usage of their chatbots. $ELW is fully controlled by a Solana program, preventing any manual interference or large-scale token selloffs. As project-wise, you can think of it as a decentralized and censorless character.ai alternative. We have an ecosystem of tools: - Web App for builders & consumers - X (formerly Twitter) bot that impersonates a character and replies to threads (@elowenbot) - Telegram Bot to move chatting beyond the website - Public API - Solana Program & Token (Currently on Testnet) https://drive.google.com/file/d/1odChCG-RZeiH7i1OjR88dUitb2h1pkJY/view?usp=sharing https://elowen.ai https://github.com/elowen-ai https://x.com/OzanAndac_/status/1981922432689619368 Solana AI Tools 0
9 8 Shivam Agarwal India Other SolGame A lightweight pixel **multicharacter**, Play To Earn dungeon game built on the Solana Devnet Blockchain, built with Phaser, powered by Metaplex NFT Marketplace Protocol. Our motivation is to enable users to own what they earn. A lightweight pixel **multicharacter**, Play To Earn dungeon game built on the Solana Devnet Blockchain, built with Phaser, powered by Metaplex NFT Marketplace Protocol. Our motivation is to enable users to own what they earn. https://docs.google.com/presentation/d/1g4LZlb-SBxnCUIOofO7lvPPPeMLYq664hZqJFO08Zt4/edit?usp=sharing https://sol-game-six.vercel.app/ https://github.com/ShivamAgarwal-code/SolGame.git Solana AI Tools, Swarms AI API 0
10 9 Fawzan Pima Ghana SG Union Sol Terminal An mcp server for solana that allows ai agents to gain context of solana capabilities like sending solana , checking sol balance , manage sol accounts and wallets getting sol address al without needing a sol app installed you just connect the mcp to your agent and strt using it , u add your private key in the mcp env . Ware giving ai agents the autonomous capabilities to run activities onchain. An mcp server for solana that allows ai agents to gain context of solana capabilities like sending solana , checking sol balance , manage sol accounts and wallets getting sol address al without needing a sol app installed you just connect the mcp to your agent and strt using it , u add your private key in the mcp env . Ware giving ai agents the autonomous capabilities to run activities onchain. https://www.loom.com/share/3c1295e0f80149e792b7a6f65bb45c1e https://fozagtx.github.io/SolanaAiTerminal/ https://github.com/fozagtx/SolanaAiTerminal https://youtu.be/iSs1Lf8n-fw?si=B5nUkyld1RW7yjjF Solana AI Tools 0
11 10 Riadh M belarbi United Kingdom of Great Britain and Northern Ireland Imperial Blockchain toky.fun Toky.fun is an all in one platform ecosystem allowing users to launch projects and grow them with no code, using AI agents and leveraging swarms. aimed at Web3 founders, small teams and non technicals, with toky.fun you can vibe code websites, mobile apps, manage your socials, moderate your group chats and get help with compliance, and of course launch tokens where you need them! Toky.fun is an all in one platform ecosystem allowing users to launch projects and grow them with no code, using AI agents and leveraging swarms. aimed at Web3 founders, small teams and non technicals, with toky.fun you can vibe code websites, mobile apps, manage your socials, moderate your group chats and get help with compliance, and of course launch tokens where you need them! https://aisolana.s3.eu-north-1.amazonaws.com/toky.fun+presentation.MP4 https://aisolana.s3.eu-north-1.amazonaws.com/toky2.0.mp4 https://github.com/its-mc/toky.fun.git Solana AI Tools 0
12 11 Yadidya Medepalli United Kingdom of Great Britain and Northern Ireland Other Nebula AI Nebula Protocol is the world's first decentralized Earth observation platform where autonomous AI agents with their own Solana wallets monitor our planet 24/7 and record findings immutably on-chain. Nine specialized AI agents (Forest Guardian, Ice Sentinel, Disaster Responder, etc.) independently sign blockchain transactions, execute environmental missions, and mint NFTs demonstrating autonomous AI-driven blockchain operations that address centralized data silos and enable verifiable disaster prevention. Fully deployed on Solana with smart contracts, voice commands, and mind- blowing visualization proving AI agents can autonomously operate blockchain infrastructure at scale. Demo link at: https://x.com/MYadidya/status/1983074064211308648 or Youtube link: https://youtu.be/fJrnTWOWPRM Nebula Protocol is the world's first decentralized Earth observation platform where autonomous AI agents with their own Solana wallets monitor our planet 24/7 and record findings immutably on-chain. Nine specialized AI agents (Forest Guardian, Ice Sentinel, Disaster Responder, etc.) independently sign blockchain transactions, execute environmental missions, and mint NFTs demonstrating autonomous AI-driven blockchain operations that address centralized data silos and enable verifiable disaster prevention. Fully deployed on Solana with smart contracts, voice commands, and mind- blowing visualization proving AI agents can autonomously operate blockchain infrastructure at scale. Demo link at: https://x.com/MYadidya/status/1983074064211308648 or Youtube link: https://youtu.be/fJrnTWOWPRM https://nebv2article.netlify.app/ https://nebulav2.netlify.app/ https://github.com/YadidyaM/Nebula-2.0---Decentralized-Earth-Observation-Platform https://x.com/MYadidya/status/1983074064211308648 Solana AI Tools, Swarms AI API 0
13 12 Togo Japan N/A TinyPay TinyPay is a crypto-native payment application built on Solana, enabling seamless real-world transactions with digital assets — even without an internet connection. We’re building the bridge between digital assets and everyday spending, making crypto payments as effortless as cash or cards. TinyPay is a crypto-native payment application built on Solana, enabling seamless real-world transactions with digital assets — even without an internet connection. We’re building the bridge between digital assets and everyday spending, making crypto payments as effortless as cash or cards. https://docs.google.com/presentation/d/1kXA47K0ovv51GvYYEm2yWVHrwJYQLrtKMqMoS5wUhMk/edit?usp=sharing https://www.youtube.com/watch?v=E59_zBE-Mao https://github.com/TrustPipe/TinyPayContract-Solana https://x.com/TrustLucian/status/1981912066761056372 Solana AI Tools 0
14 13 Alan Wang Japan solar foxhole.ai Foxhole AI monitors influential Twitter accounts for crypto keywords and instantly delivers verified contract addresses to users for trading. Foxhole AI monitors influential Twitter accounts for crypto keywords and instantly delivers verified contract addresses to users for trading. https://youtu.be/nn3zgyBGgdQ?si=xYHt87szURiqvVZz https://youtu.be/nn3zgyBGgdQ?si=xYHt87szURiqvVZz https://github.com/foxholeAI/foxholeAI https://x.com/alan_ywang/status/1984315036429664509 Solana AI Tools, Aethir GPU Compute, Swarms AI API 0

@ -0,0 +1,18 @@
# Hackathon Examples
This directory contains hackathon project examples and implementations.
## Subdirectories
### Hackathon September 27
- [hackathon_sep_27/](hackathon_sep_27/) - September 27 hackathon projects
- [api_client.py](hackathon_sep_27/api_client.py) - API client implementation
- [diet_coach_agent.py](hackathon_sep_27/diet_coach_agent.py) - Diet coach agent
- [nutritional_content_analysis_swarm.py](hackathon_sep_27/nutritional_content_analysis_swarm.py) - Nutritional analysis swarm
- [nutritonal_content_analysis_swarm.sh](hackathon_sep_27/nutritonal_content_analysis_swarm.sh) - Analysis script
- [pizza.jpg](hackathon_sep_27/pizza.jpg) - Sample image
## Overview
This directory contains real hackathon projects built with Swarms, demonstrating practical applications and creative uses of the framework. These examples showcase how Swarms can be used to build domain-specific solutions quickly.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save