-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public interface InferenceAdapter implements AutoCloseable
A loaded on-device model. The SDK core never names a task: it hands an opaque input to run and ships back an opaque output. The shape of input/output is a contract between the server and the adapter for this model's inference kind.
-
-
Method Summary
Modifier and Type Method Description abstract JsonObjectrun(JsonObject input)Run one job. abstract SampleResultrunSample(JsonObject sample)Warm up / self-test using the recipe's sample. abstract ModelConfiggetConfig()-
-
Method Detail
-
run
abstract JsonObject run(JsonObject input)
Run one job. Input and output are opaque JSON the SDK core never inspects.
-
runSample
abstract SampleResult runSample(JsonObject sample)
Warm up / self-test using the recipe's sample.
-
getConfig
abstract ModelConfig getConfig()
-
-
-
-