Interface DecisionModelProvider

All Known Subinterfaces:
DecisionModelProvider.Custom
All Known Implementing Classes:
DecisionModelProvider.FromConfig, DecisionModelProvider.SystemOne

The decision model that answers the questions of a DecisionModelClient request.

A DecisionModelClient uses the provider configured in akka.javasdk.decision.model-provider unless you pass one to DecisionModelClient.model(DecisionModelProvider).

  • Method Details

    • fromConfig

      static DecisionModelProvider.FromConfig fromConfig()
      The provider configured in akka.javasdk.decision.model-provider.
    • fromConfig

      static DecisionModelProvider.FromConfig fromConfig(String configPath)
      The provider defined at a configuration path. A name without dots resolves under akka.javasdk.decision, so fromConfig("system-one") reads akka.javasdk.decision.system-one.

      The configuration section must define every key of a provider section. Inherit the defaults instead of repeating them:

      
       escalation-model = ${akka.javasdk.decision.system-one}
       escalation-model.model-name = "jev-1.14.0"
       
    • systemOne

      static DecisionModelProvider.SystemOne systemOne()
      A SystemOne provider with the defaults of akka.javasdk.decision.system-one. Set the API key and the model name.