Skip to content

Commit

Permalink
[CLEANUP]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Apr 2, 2024
1 parent fc587b3 commit d8b42f0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 77 deletions.
6 changes: 1 addition & 5 deletions 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 = "4.7.0"
version = "4.7.1"
description = "Swarms - Pytorch"
license = "MIT"
authors = ["Kye Gomez <[email protected]>"]
Expand Down Expand Up @@ -68,7 +68,3 @@ unfixable = []
line-length = 70
target-version = ['py38']
preview = true


[tool.poetry.scripts]
swarms = 'swarms.cli._cli:main'
5 changes: 3 additions & 2 deletions rearrange_agent_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
from collections import defaultdict
from typing import Callable, Sequence
from swarms import Agent, Anthropic

from swarms.structs.base_swarm import BaseSwarm

# Assuming the existence of an appropriate Agent class and logger setup
class AgentRearrange:
class AgentRearrange(BaseSwarm):
def __init__(
self,
agents: Sequence[Agent] = None,
verbose: bool = False,
custom_prompt: str = None,
callbacks: Sequence[Callable] = None,
):
super().__init__()
if not all(isinstance(agent, Agent) for agent in agents):
raise ValueError(
"All elements must be instances of the Agent class."
Expand Down
Empty file removed swarms/cli/__init__.py
Empty file.
54 changes: 0 additions & 54 deletions swarms/cli/_cli.py

This file was deleted.

16 changes: 0 additions & 16 deletions swarms/cli/run_file.py

This file was deleted.

0 comments on commit d8b42f0

Please sign in to comment.