Class SystemOneDecisionModel

java.lang.Object
org.springframework.ai.systemone.SystemOneDecisionModel
All Implemented Interfaces:
DecisionModel, Model<DecisionPrompt,DecisionResponse>

public final class SystemOneDecisionModel extends Object implements DecisionModel
A DecisionModel backed by a System One server through the TypeSafe Java SDK: TypeSafe Jev, Laya or Ollama, since all three serve the same /v1/systemone protocol. A YesNoQuestion is asked as a noul, a ChoiceQuestion as a choice and a ScoreQuestion as a score, and the answers come back with the probabilities and confidence the server reports.

The connection belongs to the TypeSafeClient. The model takes the model name, defaulting to the client's default model, and the provider name recorded in observations, which is systemone unless the client points at a particular server.

Since:
2.1.0
Author:
Christian Tzolov