Interface DecisionModelProvider.Custom

All Superinterfaces:
DecisionModelProvider
Enclosing interface:
DecisionModelProvider

public static non-sealed interface DecisionModelProvider.Custom extends DecisionModelProvider
A provider that answers in the service process instead of calling a model, for example a mock in tests.
  • Method Details

    • decide

      Answer the request. The returned decision must answer every question with an answer that matches the type, options and levels of the question. The client checks the answers and fails the call with ModelException when one is missing or does not match. Answers for questions that the request did not ask are dropped.

      The client calls this method on the SDK executor and waits for the result, so it may block. The client applies no timeout, retries or tracing to the call. An exception thrown here fails the request with that exception, unchanged.