Skip to content

Class swarmauri_core.llms.IPredict.IPredict

swarmauri_core.llms.IPredict.IPredict

Bases: ABC

Interface focusing on the basic properties and settings essential for defining models.

predict abstractmethod

predict(*args, **kwargs)

Generate predictions based on the input data provided to the model.

Source code in swarmauri_core/llms/IPredict.py
 9
10
11
12
13
14
@abstractmethod
def predict(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass

apredict abstractmethod async

apredict(*args, **kwargs)

Generate predictions based on the input data provided to the model.

Source code in swarmauri_core/llms/IPredict.py
16
17
18
19
20
21
@abstractmethod
async def apredict(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass

stream abstractmethod

stream(*args, **kwargs)

Generate predictions based on the input data provided to the model.

Source code in swarmauri_core/llms/IPredict.py
23
24
25
26
27
28
@abstractmethod
def stream(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass

astream abstractmethod async

astream(*args, **kwargs)

Generate predictions based on the input data provided to the model.

Source code in swarmauri_core/llms/IPredict.py
30
31
32
33
34
35
@abstractmethod
async def astream(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass

batch abstractmethod

batch(*args, **kwargs)

Generate predictions based on the input data provided to the model.

Source code in swarmauri_core/llms/IPredict.py
37
38
39
40
41
42
@abstractmethod
def batch(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass

abatch abstractmethod async

abatch(*args, **kwargs)

Generate predictions based on the input data provided to the model.

Source code in swarmauri_core/llms/IPredict.py
44
45
46
47
48
49
@abstractmethod
async def abatch(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass