Module ml_agent

Module ml_agent 

Source
Expand description

ML inference base agent.

MlAgent provides a base implementation for machine-learning agents that run local inference (e.g. ONNX, PyTorch via candle, or HTTP microservices).

Subclasses override MlAgent::infer to implement model-specific logic. Results are published to the MQTT agents/{id}/detections topic.

Structs§

InferenceResult
A generic inference result (can be subclassed via config).
MlAgent
Base ML inference actor.
MlConfig
Configuration for an ML agent.

Enums§

MlBackend
Backend selection for the ML agent.