pull/432/head
Kye 1 year ago
parent cd58ffadaa
commit ed8fa1852e

@ -15,14 +15,12 @@ class MySwarm(BaseSwarm):
# Add your custom swarm to the AutoSwarmRouter # Add your custom swarm to the AutoSwarmRouter
router = AutoSwarmRouter( router = AutoSwarmRouter(swarms=[MySwarm])
swarms=[MySwarm]
)
# Create an AutoSwarm instance # Create an AutoSwarm instance
autoswarm = AutoSwarm( autoswarm = AutoSwarm(
name = "AutoSwarm, an API for all swarms", name="AutoSwarm, an API for all swarms",
description="A simple API to build and run swarms", description="A simple API to build and run swarms",
verbose=True, verbose=True,
router=router, router=router,

@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "4.6.8" version = "4.6.9"
description = "Swarms - Pytorch" description = "Swarms - Pytorch"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"] authors = ["Kye Gomez <kye@apac.ai>"]

@ -38,6 +38,7 @@ from swarms.models.popular_llms import (
ReplicateLLM as Replicate, ReplicateLLM as Replicate,
) )
from swarms.models.qwen import QwenVLMultiModal # noqa: E402 from swarms.models.qwen import QwenVLMultiModal # noqa: E402
# from swarms.models.sam_supervision import SegmentAnythingMarkGenerator # from swarms.models.sam_supervision import SegmentAnythingMarkGenerator
from swarms.models.sampling_params import SamplingParams, SamplingType from swarms.models.sampling_params import SamplingParams, SamplingType
from swarms.models.together import TogetherLLM # noqa: E402 from swarms.models.together import TogetherLLM # noqa: E402

@ -1,7 +1,7 @@
from __future__ import annotations from __future__ import annotations
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from dataclasses import dataclass, field from dataclasses import dataclass
import numpy as np import numpy as np
from typing import Callable from typing import Callable

@ -80,7 +80,6 @@ from swarms.structs.utils import (
) )
__all__ = [ __all__ = [
"Agent", "Agent",
"AgentJob", "AgentJob",

@ -17,7 +17,6 @@ class AgentProcess(BaseModel):
status: str = "Waiting" status: str = "Waiting"
pid: int = None pid: int = None
def set_pid(self, pid: int): def set_pid(self, pid: int):
self.pid = pid self.pid = pid

Loading…
Cancel
Save