Class DecisionResponse

java.lang.Object
org.springframework.ai.decision.DecisionResponse
All Implemented Interfaces:
ModelResponse<DecisionResult>

public final class DecisionResponse extends Object implements ModelResponse<DecisionResult>
The response of a DecisionModel: one DecisionResult per question, in the order the questions were asked, and the response metadata.

A response is built with builder(DecisionPrompt), which orders the answers by the prompt's questions and checks that each one answers its question, so a response always matches the prompt it answers.

Since:
2.1.0
Author:
Thomas Vitale