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 any server of the /v1/systemone protocol, such as the hosted System One service, Laya or Ollama, through the SystemOneClient. 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 SystemOneClient. 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