pull/483/merge
evelynmitchell 1 year ago committed by GitHub
commit cc31f11eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,4 +1,3 @@
---
name: Codacy
on:
push:
@ -6,7 +5,7 @@ on:
pull_request:
branches: ["master"]
schedule:
- cron: "0 0 * * "
- cron: '0 0 * * *'
permissions:
contents: read

@ -12,12 +12,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: "3.10"
- run: pip install mkdocs-material
- run: pip install mkdocs-glightbox
- run: pip install "mkdocstrings[python]"
- run: pip install mkdocs-same-dir
- run: pip3 install mkdocs-git-authors-plugin
- run: pip install mkdocs-jupyter==0.16.0
- run: pip install mkdocs-jupyter
- run: pip install "mkdocstrings[python]"
- run: pip install --upgrade lxml_html_clean
- run: pip install mkdocs-git-committers-plugin
- run: pip3 install mkdocs-git-revision-date-localized-plugin

@ -1,4 +1,3 @@
---
name: Lint
on: [push, pull_request] # yamllint disable-line rule:truthy
jobs:

@ -291,7 +291,7 @@ agent = Agent(
)
# Run the agent
out = agent("Create a new file for a plan to take over the world.")
out = agent("Create a new file for a plan to create abundance in the world. Save the file and also display the contents of the file.")
print(out)
```

@ -49,7 +49,7 @@
- Case Studies and Use Cases
## **Introdution**
## **Introduction**
Swarms provides automation-as-a-service through swarms of autonomous agents that work together as a team. We enable our customers to build, deploy, and scale production-grade multi-agent applications to automate real-world tasks.
### **Vision**
@ -69,7 +69,7 @@ The team has thousands of hours building and optimizing autonomous agents. Leade
Key milestones: get 80K framework users in January 2024, start contracts in target verticals, introduce commercial products in 2025 with various pricing models.
### **Resources**
- [Swarm Pre-Seed Deck](https://drive.google.com/file/d/1n8o2mjORbG96uDfx4TabjnyieludYaZz/view?usp=sharing)
- [Swarm Pre-Seed Deck](https://www.dropbox.com/scl/fi/qglgu970d921zbuge3rig/Swarms_Pitch_Deck_compressed.pdf?rlkey=2b6mbv4k4pfn44xwr5h3dzra2&e=1&st=0rp0mst4&dl=0)
- [Swarm Memo](https://docs.google.com/document/d/1hS_nv_lFjCqLfnJBoF6ULY9roTbSgSuCkvXvSUSc7Lo/edit?usp=sharing)

@ -1,22 +1,21 @@
docs_dir: '.' # replace with the correct path if your documentation files are not in the same directory as mkdocs.yml
copyright: "© TGSC Corp 2024. All rights reserved."
site_name: Swarms Documentation
site_url: https://swarms.apac.ai
site_url: https://swarms.world
site_author: Swarms
site_description: Orchestrate Swarms of Agents From Any Framework Like OpenAI, Langchain, and Etc for Real World Workflow Automation.
site_description: "Orchestrate Swarms of Agents From Any Framework Like OpenAI, Langchain, and Etc for Real World Workflow Automation."
repo_name: kyegomez/swarms
repo_url: https://github.com/kyegomez/swarms
edit_uri: https://github.com/kyegomez/swarms/tree/main/docs
copyright: TGSC Corp 2024. All rights reserved.
plugins:
# - glightbox
- search
- same-dir
- git-authors
- mkdocs-jupyter:
kernel_name: python3
execute: false
include_source: True
#execute: false # default
include_source: true
include_requirejs: true
- mkdocstrings:
default_handler: python
@ -40,6 +39,7 @@ plugins:
# token: !ENV ["GITHUB_TOKEN"]
- git-revision-date-localized:
enable_creation_date: true
extra_css:
- assets/css/extra.css
extra:
@ -49,15 +49,14 @@ extra:
- icon: fontawesome/brands/github
link: https://github.com/kyegomez/swarms
theme:
name: material
custom_dir: overrides
logo: assets/img/SwarmsLogoIcon.png
palette:
# Palette toggle for light mode
name: material
custom_dir: overrides
logo: assets/img/SwarmsLogoIcon.png
palette: # Palette toggle for light mode
- scheme: default
primary: black
toggle:
icon: material/brightness-7
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
@ -65,14 +64,14 @@ theme:
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- content.code.copy
- content.code.annotate
- navigation.tabs
- navigation.sections
- navigation.expand
- navigation.top
- announce.dismiss
features:
- content.code.copy
- content.code.annotate
- navigation.tabs
- navigation.sections
- navigation.expand
- navigation.top
- announce.dismiss
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
@ -104,15 +103,15 @@ nav:
- Agents with tools: "swarms/tools/main.md"
- Multi-Agent Collaboration:
- Overview: "swarms/structs/multi_agent_orchestration.md"
- Workflows: "swarms/structs/workflows.md"
- Multi-Agent Architectures: "swarms/structs/multi_agent_architectures.md"
- Workflows: "swarms/structs/workflow.md"
- Multi-Agent Architectures: "swarms/structs/multi_agent_orchestration.md"
- Reference:
- Overview: "swarms/framework_structure.md"
- Models:
- How to Create A Custom Language Model: "swarms/models/custom_model.md"
- Models Available: "swarms/models/index.md"
- MultiModal Models Available: "swarms/models/multimodal_models.md"
- Deploying Azure OpenAI in Production A Comprehensive Guide: "swarms/models/azure_openai.md"
# - MultiModal Models Available: "swarms/models/multimodal_models.md"
# - Deploying Azure OpenAI in Production A Comprehensive Guide: "swarms/models/azure_openai.md"
- Language Models:
- BaseLLM: "swarms/models/base_llm.md"
- HuggingFaceLLM: "swarms/models/huggingface.md"
@ -162,13 +161,13 @@ nav:
- Guides:
- Models:
- How to Create A Custom Language Model: "swarms/models/custom_model.md"
- Deploying Azure OpenAI in Production, A Comprehensive Guide: "swarms/models/azure_openai.md"
# - Deploying Azure OpenAI in Production, A Comprehensive Guide: "swarms/models/azure_openai.md"
- Agents:
- Agent: "examples/flow.md"
- DIY Build Your Own Agent: "diy_your_own_agent.md"
- Equipping Autonomous Agents with Tools: "examples/tools_agent.md"
- DIY Build Your Own Agent: "structs/diy_your_own_agent.md"
# - Equipping Autonomous Agents with Tools: "examples/tools_agent.md"
- Swarms:
- SequentialWorkflow: "examples/reliable_autonomous_agents.md"
- SequentialWorkflow: "structs/sequential_workflow.md"
- References:
- Agent Glossary: "swarms/glossary.md"
- List of The Best Multi-Agent Papers: "swarms/papers.md"

@ -117,11 +117,16 @@ Here's an example of how to use the `AgentRearrange` class and the `rearrange` f
from swarms import Agent, AgentRearrange, rearrange
from typing import List
llm = Anthropic(
temperature=0.1,
anthropic_api_key = anthropic_api_key
)
# Initialize the director agent
director = Agent(
agent_name="Director",
system_prompt="Directs the tasks for the workers",
llm=Anthropic(),
llm=llm,
max_loops=1,
dashboard=False,
streaming_on=True,
@ -135,7 +140,7 @@ director = Agent(
worker1 = Agent(
agent_name="Worker1",
system_prompt="Generates a transcript for a youtube video on what swarms are",
llm=Anthropic(),
llm=llm,
max_loops=1,
dashboard=False,
streaming_on=True,
@ -149,7 +154,7 @@ worker1 = Agent(
worker2 = Agent(
agent_name="Worker2",
system_prompt="Summarizes the transcript generated by Worker1",
llm=Anthropic(),
llm=llm,
max_loops=1,
dashboard=False,
streaming_on=True,

Loading…
Cancel
Save