Table of Contents

Class WorkerEnvelope

Namespace
InferenceEngine.Core.Worker
Assembly
InferenceEngine.Core.dll

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

string

EngineInfo

Loaded engine diagnostics (loaded only).

public InferenceEngineInfo? EngineInfo { get; set; }

Property Value

InferenceEngineInfo

Error

Non-null when the worker hit an error handling the request.

public string? Error { get; set; }

Property Value

string

Kind

One of: load, loaded, predict, result, shutdown.

public string Kind { get; set; }

Property Value

string

Options

Engine options (load only).

public WorkerEngineOptions? Options { get; set; }

Property Value

WorkerEngineOptions

Payload

Serialized input (predict) / output (result) payload, crossed via IWorkerSerializer<TInput, TOutput>.

public string? Payload { get; set; }

Property Value

string