Skip to content

Class swarmauri_core.tool_llms.IToolPredict.IToolPredict

swarmauri_core.tool_llms.IToolPredict.IToolPredict

Bases: ABC

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

get_schema_converter abstractmethod

get_schema_converter()
Source code in swarmauri_core/tool_llms/IToolPredict.py
13
14
15
@abstractmethod
def get_schema_converter(self) -> Type["ISchemaConvert"]:
    pass

predict abstractmethod

predict(*args, **kwargs)

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

Source code in swarmauri_core/tool_llms/IToolPredict.py
31
32
33
34
35
36
@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/tool_llms/IToolPredict.py
38
39
40
41
42
43
@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/tool_llms/IToolPredict.py
45
46
47
48
49
50
@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/tool_llms/IToolPredict.py
52
53
54
55
56
57
@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/tool_llms/IToolPredict.py
59
60
61
62
63
64
@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/tool_llms/IToolPredict.py
66
67
68
69
70
71
@abstractmethod
async def abatch(self, *args, **kwargs) -> any:
    """
    Generate predictions based on the input data provided to the model.
    """
    pass