Class WorkerEnvelope
Single envelope for all worker messages. The Kind discriminator selects the role
of the other fields. Framed on the wire as <4-byte little-endian length><UTF-8 JSON>.
public sealed class WorkerEnvelope
- Inheritance
-
WorkerEnvelope
- Inherited Members
Properties
EngineId
Consumer-defined engine id (load only).
public string EngineId { get; set; }
Property Value
EngineInfo
Loaded engine diagnostics (loaded only).
public InferenceEngineInfo? EngineInfo { get; set; }
Property Value
Error
Non-null when the worker hit an error handling the request.
public string? Error { get; set; }
Property Value
Kind
One of: load, loaded, predict, result, shutdown.
public string Kind { get; set; }
Property Value
Options
Engine options (load only).
public WorkerEngineOptions? Options { get; set; }
Property Value
Payload
Serialized input (predict) / output (result) payload, crossed via IWorkerSerializer<TInput, TOutput>.
public string? Payload { get; set; }