ExAgent. Classifier. NxServing
(ExAgent v3.0.0)
View Source
Classify with a host-owned Nx serving. A registered name uses the serving's
batching and distribution. An inline serving runs in the classifier's
deadline-bound task. The host includes the optional :nx dependency
and owns the serving's lifecycle.
Each call yields one label. If the classifier times out after dispatch,
it returns :result_unconfirmed. A serving process can finish its batch
after the caller's deadline.
Stability — Candidate.
Summary
Functions
Accept a serving struct, a registered atom, or {:local, name} or
{:distributed, name}. Set an optional :name for usage attribution.
The optional unary :decode function projects the serving's return into
a declared label string or a {label, confidence} tuple, with confidence
in 0..1 or nil. The default decoder takes the serving's result as-is.
This adapter reports unknown usage.
Types
Functions
Accept a serving struct, a registered atom, or {:local, name} or
{:distributed, name}. Set an optional :name for usage attribution.
The optional unary :decode function projects the serving's return into
a declared label string or a {label, confidence} tuple, with confidence
in 0..1 or nil. The default decoder takes the serving's result as-is.
This adapter reports unknown usage.
Raises ArgumentError if the optional Nx dependency is missing.