Module messages

Source
Expand description

Message types for Edge Impulse model communication.

This module defines the message structures used for communication between the runner and the Edge Impulse model process via Unix sockets. All messages are serialized to JSON for transmission.

The communication follows a request-response pattern with the following types:

  • Initialization messages (HelloMessage)
  • Classification requests (ClassifyMessage)
  • Model information responses (ModelInfo)
  • Inference results (InferenceResponse)
  • Error responses (ErrorResponse)
  • Threshold messages (SetThresholdMessage)

Structs§

ClassifyMessage
Message containing features for classification.
ErrorResponse
Response indicating an error condition.
HelloMessage
Initial handshake message sent to the model process.
InferenceResponse
Response containing inference results.
ModelInfo
Response containing model information and parameters.
SetThresholdMessage
Message for setting model thresholds
SetThresholdResponse
Different types of threshold configurations that can be set

Enums§

InferenceResult
Represents different types of inference results.
ThresholdConfig