AbstractSLM dataclass

Bases: ABC

The AbstractSLM serves as the base for all concrete Small Language Models (SLMs). It provides an interface for natural language communication and structured API interactions.

adapter: AbstractAdapter abstractmethod property writable

Returns our adapter

do_discuss(user_input, conversation) abstractmethod

Processes a natural language conversation input and returns a dict of the reply. Not intended for direct use.

load(storage_dir) abstractmethod

Loads from the specified directory.

reset_memory() abstractmethod

Resets our conversation memory

save(storage_dir) abstractmethod

Saves to the specified directory.