Overview
TheSignal class is a dataclass that represents a signal in the AveniECA system. It extends the Base class and provides a structure for storing state vectors along with optional metadata like valence, score, and embedding input.
Class Definition
Fields
The state vector representing the signal. This is a list of floating-point values that encode the signal’s representation.
Optional valence value associated with the signal. Represents the emotional or evaluative tone of the signal.
Optional score associated with the signal. Can be used for ranking or importance metrics.
Optional embedding input identifier. References the ID of the embedding input used to generate this signal.
Inherited Methods
TheSignal class inherits from Base, which provides the following methods:
__dict__
Returns a dictionary representation of the signal.
json
Returns a JSON string representation of the signal with indentation.
to_json_file(file)
Writes the signal to a JSON file.
Parameters:
file(str): The file path where the JSON will be written