Class DecisionModel

java.lang.Object
com.alibaba.dashscope.legacy_2x.decision.DecisionModel

@Deprecated public final class DecisionModel extends Object
Deprecated.
Unofficial Java binding for the Bailian Decision Model API ("TypeSafe System One").

The upstream doc currently ships only cURL and Python (typesafe-sdk) examples; the Java surface here may evolve as the official spec matures.

Document: https://docs.bailian.console.aliyun.com/zh/model-studio/decision-model-api

The endpoint is workspace-scoped: https://{WorkspaceId}.{region}.maas.aliyuncs.com/compatible-mode/v1/systemone. A workspace id must be supplied either via the constructor or the "DASHSCOPE_WORKSPACE" environment variable.

  • Field Details

    • BASE_URL_TEMPLATE

      public static final String BASE_URL_TEMPLATE
      Deprecated.
      Hostname template for the workspace-scoped decision model gateway.
      See Also:
    • DEFAULT_REGION

      public static final String DEFAULT_REGION
      Deprecated.
      Region used when neither the constructor nor "DASHSCOPE_API_REGION" provides one.
      See Also:
    • ENV_WORKSPACE

      public static final String ENV_WORKSPACE
      Deprecated.
      Environment variable holding the Bailian workspace id.
      See Also:
    • ENV_REGION

      public static final String ENV_REGION
      Deprecated.
      Environment variable holding the region.
      See Also:
    • ENV_BASE_URL

      public static final String ENV_BASE_URL
      Deprecated.
      Dedicated environment variable that fully overrides the base URL. Do not reuse Constants.DASHSCOPE_HTTP_BASE_URL_ENV here — that variable is bound to the dashscope.aliyuncs.com/api/v1 shape used by the rest of the SDK.
      See Also:
  • Constructor Details

    • DecisionModel

      public DecisionModel()
      Deprecated.
      Resolve workspace and region from the environment.
    • DecisionModel

      public DecisionModel(String workspace)
      Deprecated.
      Use the given workspace with the region resolved from the environment.
    • DecisionModel

      public DecisionModel(String workspace, String region)
      Deprecated.
      Use the given workspace and region.
    • DecisionModel

      public DecisionModel(String workspace, String region, ConnectionOptions connectionOptions)
      Deprecated.
  • Method Details