Class TypeSafeDecisionRequestParameters

java.lang.Object
dev.langchain4j.model.decision.request.DefaultDecisionRequestParameters
dev.langchain4j.model.typesafe.TypeSafeDecisionRequestParameters
All Implemented Interfaces:
DecisionRequestParameters

@Experimental public class TypeSafeDecisionRequestParameters extends DefaultDecisionRequestParameters
The per-call parameters of a TypeSafeDecisionModel request. Parameters that are not set fall back to the ones configured on the TypeSafeDecisionModel builder. Parameters made for another decision model are rejected with an IllegalArgumentException.
DecisionRequest request = DecisionRequest.builder()
        .input("...")
        .question("spam", YesNoQuestion.of("Is this message spam?"))
        .parameters(TypeSafeDecisionRequestParameters.builder()
                .customParameters(Map.of("parameter_name", "value"))
                .build())
        .build();
Since:
1.23.0