Skip to content

Commit

Permalink
[CLEANUP]
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 4, 2024
1 parent e927669 commit 94c7125
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
59 changes: 59 additions & 0 deletions 6_0_0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Swarms 6.0.0 - Performance & Reliability Update 🚀

We're excited to announce the release of Swarms 6.0.0, bringing significant improvements to performance, reliability, and developer experience. This release focuses on streamlining core functionalities while enhancing the overall stability of the framework.

## 📦 Installation

```bash
pip3 install -U swarms
```

## 🌟 Highlights

### Agent Enhancements
- **Improved RAG Performance**: Significant improvements to Retrieval-Augmented Generation capabilities
- **Enhanced Prompt Generation**: Auto-generate prompt now incorporates name, description, and system prompt for more contextual interactions
- **Streamlined Architecture**: Cleaned up unused code for better performance and maintainability
- **Simplified State Management**: Consolidated state management methods into a single `load()` function

### Tools & Execution
- **Optimized Environment Management**: Fixed multiple environment instantiation issue
- Environments now initialize once during `__init__`
- **New SwarmRouter Function**: Simplified routing mechanism
- Returns consolidated string output from all agents
- Improved coordination between swarm components

## 💪 Performance Improvements
- Faster execution times
- Reduced memory footprint
- More reliable logging system
- Lightweight and efficient codebase

## 🤝 Join Our Community

### We're Hiring!
Join our growing team! We're currently looking for:
- Agent Engineers
- Developer Relations
- Infrastructure Engineers
- And more!

### Get Involved
- ⭐ Star our repository
- 🔄 Fork the project
- 🛠 Submit pull requests
- 🐛 Report issues
- 💡 Share your ideas

### Contact & Support
- 📧 Email: [email protected]
- 🔗 Issues: [GitHub Issues](https://github.com/kyegomez/swarms/issues)

## 🔜 What's Next?
Have ideas for features, bug fixes, or improvements? We'd love to hear from you! Reach out through our GitHub issues or email us directly.

---

*Thank you to all our contributors and users who make Swarms better every day. Together, we're building the future of swarm intelligence.*

#SwarmAI #OpenSource #AI #MachineLearning
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "swarms"
version = "6.0.0"
version = "6.0.1"
description = "Swarms - Pytorch"
license = "MIT"
authors = ["Kye Gomez <[email protected]>"]
Expand Down Expand Up @@ -78,6 +78,7 @@ aiofiles = "*"
swarm-models = "*"
clusterops = "*"
chromadb = "*"
uvloop = "*"
reportlab = "*"

[tool.poetry.scripts]
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pydantic==2.8.2
tenacity==8.5.0
Pillow==10.4.0
psutil
uvloop
sentry-sdk
python-dotenv
opencv-python-headless
Expand Down
13 changes: 12 additions & 1 deletion swarms/structs/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
from swarms.utils.data_to_text import data_to_text
from swarms.utils.file_processing import create_file_in_folder
from swarms.utils.pdf_to_text import pdf_to_text

from swarms.artifacts.main_artifact import Artifact

# Utils
# Custom stopping condition
Expand Down Expand Up @@ -566,6 +566,8 @@ def __init__(

# Telemetry Processor to log agent data
threading.Thread(target=self.log_agent_data).start()



def check_if_no_prompt_then_autogenerate(self, task: str = None):
"""
Expand Down Expand Up @@ -2279,3 +2281,12 @@ def run(
except Exception as e:
logger.error(f"An error occurred during execution: {e}")
raise e


def handle_artifacts(self, text: str, file_output_path: str, file_extension: str):
artifact = Artifact(
file_path=file_output_path,
file_type=file_extension,
contents=text,

)

0 comments on commit 94c7125

Please sign in to comment.