Class DecisionModelParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.FlattenHalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.decision.DecisionModelParam
Deprecated.
The input param of the decision model api.
Limits documented at https://docs.bailian.console.aliyun.com/zh/model-studio/decision-model-api :
stateaccepts a String, an Object, or an Array; the total request must fit within 65536 context tokens.questionscount is not hard-capped; the doc recommends ≤ 16.choicecriteria: 1–255 options.scorecriteria: 2–10 levels (recommended 3–7).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDecisionModelParam.DecisionModelParamBuilder<C extends DecisionModelParam,B extends DecisionModelParam.DecisionModelParamBuilder<C, B>> Deprecated.static classDeprecated.Available decision models.Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.FlattenHalfDuplexParamBase
FlattenHalfDuplexParamBase.FlattenHalfDuplexParamBaseBuilder<C extends FlattenHalfDuplexParamBase,B extends FlattenHalfDuplexParamBase.FlattenHalfDuplexParamBaseBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends HalfDuplexParamBase,B extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Documented upper bound onchoiceoptions.static final intDeprecated.static final intDeprecated.Documented bounds onscorelevels.Fields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic DecisionModelParam.DecisionModelParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.com.google.gson.JsonObjectDeprecated.Get the batch request data.getModel()Deprecated.The model name, currently onlyDecisionModelParam.Models.DECISION_MODEL_PREVIEW.Deprecated.The questions to answer, key is the caller-defined question id.getState()Deprecated.The business state: a String, aMap<String, Object>, or aList<?>.inthashCode()Deprecated.voidDeprecated.The model name, currently onlyDecisionModelParam.Models.DECISION_MODEL_PREVIEW.voidsetQuestions(Map<String, DecisionQuestion> questions) Deprecated.The questions to answer, key is the caller-defined question id.voidDeprecated.The business state: a String, aMap<String, Object>, or aList<?>.toString()Deprecated.voidvalidate()Deprecated.Validate the input and parameters.Methods inherited from class com.alibaba.dashscope.legacy_2x.base.FlattenHalfDuplexParamBase
addExtraBody, getBinaryData, getHeaders, getInput, getParameters, getResources, putHeaderMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
getApiKey, getEnableEncrypt, getWorkspace, isSecurityCheck, setApiKey, setEnableEncrypt, setHeaders, setParameters, setSecurityCheck, setWorkspace, shouldSerializeExplicitNulls
-
Field Details
-
MAX_CHOICE_OPTIONS
public static final int MAX_CHOICE_OPTIONSDeprecated.Documented upper bound onchoiceoptions.- See Also:
-
MIN_SCORE_LEVELS
public static final int MIN_SCORE_LEVELSDeprecated.Documented bounds onscorelevels.- See Also:
-
MAX_SCORE_LEVELS
public static final int MAX_SCORE_LEVELSDeprecated.- See Also:
-
-
Constructor Details
-
DecisionModelParam
Deprecated.
-
-
Method Details
-
getHttpBody
public com.google.gson.JsonObject getHttpBody()Deprecated.Description copied from class:HalfDuplexParamBaseGet the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}- Specified by:
getHttpBodyin classHalfDuplexParamBase- Returns:
- The http request body
-
validate
Deprecated.Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Overrides:
validatein classFlattenHalfDuplexParamBase- Throws:
InputRequiredException- Missing input fields.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classFlattenHalfDuplexParamBase
-
canEqual
Deprecated.- Overrides:
canEqualin classFlattenHalfDuplexParamBase
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classFlattenHalfDuplexParamBase
-
getModel
Deprecated.The model name, currently onlyDecisionModelParam.Models.DECISION_MODEL_PREVIEW.- Overrides:
getModelin classFlattenHalfDuplexParamBase
-
getState
Deprecated.The business state: a String, aMap<String, Object>, or aList<?>. The doc's noul example passes a bare String; the ticket-routing example passes an object. Kept asObjectso all three shapes serialize verbatim. -
getQuestions
Deprecated.The questions to answer, key is the caller-defined question id. -
setModel
Deprecated.The model name, currently onlyDecisionModelParam.Models.DECISION_MODEL_PREVIEW. -
setState
Deprecated.The business state: a String, aMap<String, Object>, or aList<?>. The doc's noul example passes a bare String; the ticket-routing example passes an object. Kept asObjectso all three shapes serialize verbatim. -
setQuestions
Deprecated.The questions to answer, key is the caller-defined question id. -
toString
Deprecated.- Overrides:
toStringin classFlattenHalfDuplexParamBase
-