You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/models/base.py

12 lines
267 B

from abc import ABC, abstractmethod
class AbstractModel(ABC):
#abstract base class for language models
@abstractmethod
def run(self, prompt):
#generate text using language model
pass
def chat(self, prompt, history):
pass