darcyai.stream_data

StreamData Objects

class StreamData(Serializable)

Class to hold data from a stream.

Arguments

  • data (Any): The data to be stored.
  • timestamp (int): The timestamp of the data.

serialize

def serialize() -> dict

Serializes the data.

Returns

dict: The serialized data.