From 4c58d1213e44d45c828287d31153777d9435ebf3 Mon Sep 17 00:00:00 2001 From: Kye Gomez Date: Thu, 3 Apr 2025 14:48:55 +0800 Subject: [PATCH] Update and publish --- cleanup_and_publish.sh | 24 ++++ docs/swarms_cloud/subscription_tiers.md | 165 ++++++++++++------------ pyproject.toml | 2 +- swarms/agents/flexion_agent.py | 3 +- 4 files changed, 110 insertions(+), 84 deletions(-) create mode 100755 cleanup_and_publish.sh diff --git a/cleanup_and_publish.sh b/cleanup_and_publish.sh new file mode 100755 index 00000000..1212e4ef --- /dev/null +++ b/cleanup_and_publish.sh @@ -0,0 +1,24 @@ + +echo "🧹 Starting code cleanup and publishing process..." + +echo "⚫ Running Black formatter..." +black . && echo "✅ Code formatting complete!" || echo "❌ Black formatting failed!" + +echo "🔍 Running Ruff linter..." +ruff check . --fix && echo "✅ Linting complete!" || echo "❌ Linting failed!" + +echo "🏗️ Building package..." +poetry build && echo "✅ Build successful!" || echo "❌ Build failed!" + +echo "📦 Publishing to PyPI..." +poetry publish && echo "✅ Package published!" || echo "❌ Publishing failed!" + +echo "📝 Committing changes to Git..." +git add . && echo "✅ Changes staged!" +git commit -m "Update and publish" && echo "✅ Changes committed!" + +echo "🚀 Pushing to remote repository..." +git push && echo "✅ Changes pushed to remote!" + +echo "✨ All done! Package cleaned, built, and published successfully! ✨" + diff --git a/docs/swarms_cloud/subscription_tiers.md b/docs/swarms_cloud/subscription_tiers.md index 1ee07923..2d01a62b 100644 --- a/docs/swarms_cloud/subscription_tiers.md +++ b/docs/swarms_cloud/subscription_tiers.md @@ -1,129 +1,130 @@ -# Swarms Cloud Subscription Tiers +# Swarms Cloud Subscription Tiers / Swarms 云订阅等级 -!!! abstract "Overview" +!!! abstract "Overview / 概述" Choose the perfect plan for your agent infrastructure needs. All plans include our core features with additional benefits as you scale up. + 为您的智能体基础设施需求选择完美方案。所有计划都包含我们的核心功能,随着您的扩展提供额外优势。 -## Pricing Plans +## Pricing Plans / 定价方案 -### Free Tier +### Free Tier / 免费版 -!!! example "Free" - **$0/year** +!!! example "Free / 免费" + **$0/year / 0美元/年** Perfect for getting started with AI development. + 非常适合开始AI开发。 - [Get Started](https://swarms.world/platform/account){ .md-button .md-button--primary } + [Get Started / 开始使用](https://swarms.world/platform/account){ .md-button .md-button--primary } - **What's Included:** + **What's Included: / 包含内容:** - - [x] Sign up Bonus! + - [x] Sign up Bonus! / 注册奖励! - - [x] Basic Access + - [x] Basic Access / 基础访问权限 - - [x] Pay-Per-Use Pricing + - [x] Pay-Per-Use Pricing / 按使用量付费 - - [x] Community Support + - [x] Community Support / 社区支持 - - [x] Standard Processing Speed + - [x] Standard Processing Speed / 标准处理速度 -### Premium Tier +### Premium Tier / 高级版 -!!! success "Premium" +!!! success "Premium / 高级版" - **Monthly $100/month** + **Monthly $100/month / 每月100美元** - **Yearly $1,020/year** (Save 15% on annual billing) + **Yearly $1,020/year / 每年1,020美元** (Save 15% on annual billing / 年付节省15%) - [Subscribe Now](https://swarms.world/platform/account){ .md-button .md-button--primary } + [Subscribe Now / 立即订阅](https://swarms.world/platform/account){ .md-button .md-button--primary } - **Everything in Free, plus:** + **Everything in Free, plus: / 包含免费版所有内容,外加:** - - [x] Full Access to Explorer and Agents + - [x] Full Access to Explorer and Agents / 完全访问Explorer和智能体 - - [x] Access to Premium Multi-Modality Models + - [x] Access to Premium Multi-Modality Models / 访问高级多模态模型 - - [x] Priority Access to Swarms + - [x] Priority Access to Swarms / 优先访问Swarms - - [x] High-Performance Infrastructure + - [x] High-Performance Infrastructure / 高性能基础设施 - - [x] Exclusive Webinars and Tutorials + - [x] Exclusive Webinars and Tutorials / 独家网络研讨会和教程 - - [x] Priority Support + - [x] Priority Support / 优先支持 - - [x] Enhanced Security Features + - [x] Enhanced Security Features / 增强的安全功能 - - [x] Early Access to New Models and Features + - [x] Early Access to New Models and Features / 新模型和功能的早期访问 -### Enterprise Tier +### Enterprise Tier / 企业版 -!!! tip "Enterprise" - **Contact for more Information** +!!! tip "Enterprise / 企业版" + **Contact for more Information / 联系获取更多信息** - [Book a Call](https://cal.com/swarms){ .md-button .md-button--primary } + [Book a Call / 预约通话](https://cal.com/swarms){ .md-button .md-button--primary } - **Everything in Premium, plus:** + **Everything in Premium, plus: / 包含高级版所有内容,外加:** - - [x] High-Performance Infrastructure + - [x] High-Performance Infrastructure / 高性能基础设施 - - [x] Batch API + - [x] Batch API / 批量API - - [x] Early Access to New Swarms + - [x] Early Access to New Swarms / 新Swarms的早期访问 - - [x] Dedicated 24/7 Support + - [x] Dedicated 24/7 Support / 专属24/7支持 - - [x] Custom Solutions Engineering + - [x] Custom Solutions Engineering / 定制解决方案工程 - - [x] Advanced Security Features + - [x] Advanced Security Features / 高级安全功能 - - [x] Onsite Training and Onboarding + - [x] Onsite Training and Onboarding / 现场培训和入职 - - [x] Custom Model Training + - [x] Custom Model Training / 定制模型训练 - - [x] Priority Support + - [x] Priority Support / 优先支持 - - [x] Pay-Per-Use Pricing + - [x] Pay-Per-Use Pricing / 按使用量付费 - - [x] Enterprise Telemetry Platform + - [x] Enterprise Telemetry Platform / 企业遥测平台 - - [x] Regular Check-In Strategy Sessions + - [x] Regular Check-In Strategy Sessions / 定期战略会议 +## Feature Comparison / 功能对比 -## Feature Comparison - -| Feature | Free | Premium | Enterprise | +| Feature / 功能 | Free / 免费版 | Premium / 高级版 | Enterprise / 企业版 | |---------|------|---------|------------| -| Sign up Bonus | ✅ | ✅ | ✅ | -| Basic Access | ✅ | ✅ | ✅ | -| Pay-Per-Use Pricing | ✅ | ✅ | ✅ | -| Community Support | ✅ | ✅ | ✅ | -| Standard Processing Speed | ✅ | ✅ | ✅ | -| Full Access to Explorer and Agents | ❌ | ✅ | ✅ | -| Premium Multi-Modality Models | ❌ | ✅ | ✅ | -| Priority Access to Swarms | ❌ | ✅ | ✅ | -| High-Performance GPUs | ❌ | ✅ | ✅ | -| Exclusive Webinars and Tutorials | ❌ | ✅ | ✅ | -| Priority Support | ❌ | ✅ | ✅ | -| Enhanced Security Features | ❌ | ✅ | ✅ | -| Early Access to New Models | ❌ | ✅ | ✅ | -| Batch API | ❌ | ❌ | ✅ | -| Dedicated 24/7 Support | ❌ | ❌ | ✅ | -| Custom Solutions Engineering | ❌ | ❌ | ✅ | -| Onsite Training and Onboarding | ❌ | ❌ | ✅ | -| Custom Model Training | ❌ | ❌ | ✅ | - -## Rate Limits - -!!! info "Rate Limit Increases" - - **Premium**: 100% increase in rate limits - - **Enterprise**: Custom rate limits based on your needs (contact us for details) - -## Getting Started - -1. Choose your plan -2. Create your account -3. Start building with Swarms! - -!!! success "Need Help?" - - For general questions: [Contact Support](mailto:kye@swarms.world) - - For enterprise inquiries: [Book a Call](https://cal.com/swarms) - - Upgrade Your Membership: [Upgrade Now](https://swarms.world/platform/account) +| Sign up Bonus / 注册奖励 | ✅ | ✅ | ✅ | +| Basic Access / 基础访问权限 | ✅ | ✅ | ✅ | +| Pay-Per-Use Pricing / 按使用量付费 | ✅ | ✅ | ✅ | +| Community Support / 社区支持 | ✅ | ✅ | ✅ | +| Standard Processing Speed / 标准处理速度 | ✅ | ✅ | ✅ | +| Full Access to Explorer and Agents / 完全访问Explorer和智能体 | ❌ | ✅ | ✅ | +| Premium Multi-Modality Models / 高级多模态模型 | ❌ | ✅ | ✅ | +| Priority Access to Swarms / 优先访问Swarms | ❌ | ✅ | ✅ | +| High-Performance GPUs / 高性能GPU | ❌ | ✅ | ✅ | +| Exclusive Webinars and Tutorials / 独家网络研讨会和教程 | ❌ | ✅ | ✅ | +| Priority Support / 优先支持 | ❌ | ✅ | ✅ | +| Enhanced Security Features / 增强的安全功能 | ❌ | ✅ | ✅ | +| Early Access to New Models / 新模型的早期访问 | ❌ | ✅ | ✅ | +| Batch API / 批量API | ❌ | ❌ | ✅ | +| Dedicated 24/7 Support / 专属24/7支持 | ❌ | ❌ | ✅ | +| Custom Solutions Engineering / 定制解决方案工程 | ❌ | ❌ | ✅ | +| Onsite Training and Onboarding / 现场培训和入职 | ❌ | ❌ | ✅ | +| Custom Model Training / 定制模型训练 | ❌ | ❌ | ✅ | + +## Rate Limits / 速率限制 + +!!! info "Rate Limit Increases / 速率限制提升" + - **Premium / 高级版**: 100% increase in rate limits / 速率限制提升100% + - **Enterprise / 企业版**: Custom rate limits based on your needs (contact us for details) / 根据您的需求定制速率限制(详情请联系我们) + +## Getting Started / 开始使用 + +1. Choose your plan / 选择您的方案 +2. Create your account / 创建您的账户 +3. Start building with Swarms! / 开始使用Swarms构建! + +!!! success "Need Help? / 需要帮助?" + - For general questions: [Contact Support](mailto:kye@swarms.world) / 一般问题:[联系支持](mailto:kye@swarms.world) + - For enterprise inquiries: [Book a Call](https://cal.com/swarms) / 企业咨询:[预约通话](https://cal.com/swarms) + - Upgrade Your Membership: [Upgrade Now](https://swarms.world/platform/account) / 升级会员:[立即升级](https://swarms.world/platform/account) diff --git a/pyproject.toml b/pyproject.toml index dbdf8cf7..08f59ac3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "swarms" -version = "7.6.3" +version = "7.6.4" description = "Swarms - TGSC" license = "MIT" authors = ["Kye Gomez "] diff --git a/swarms/agents/flexion_agent.py b/swarms/agents/flexion_agent.py index 73197439..d77ee731 100644 --- a/swarms/agents/flexion_agent.py +++ b/swarms/agents/flexion_agent.py @@ -9,7 +9,8 @@ from loguru import logger # Define Reflexion prompt with detailed instructions -REFLEXION_PROMPT = """You are Reflexion, an advanced AI assistant designed to generate high-quality responses and continuously improve through self-reflection. +REFLEXION_PROMPT = """ +You are Reflexion, an advanced AI assistant designed to generate high-quality responses and continuously improve through self-reflection. CAPABILITIES: - Deep reasoning: Break down complex problems step-by-step