Class ModelSettings

java.lang.Object
ai.redouble.nucleo.Settings
ai.redouble.nucleo.harness.models.ModelSettings

public class ModelSettings extends Settings
The model-resolution knobs: which catalog backend serves specs, which picker resolves seats, how far the shipped picker may stray from a request's grade, and the deployment's Bedrock Mantle projects that model eligibility and request routing consult.
Since:
0.1 (2026-09-18)
Author:
Andrey Santrosyan
  • Field Details

    • backendClass

      public volatile Class<? extends ModelsBackend> backendClass
      Model catalog backend. The shipped JsonModelsBackend reads the classpath catalog.
    • pickerClass

      public volatile Class<? extends ModelPicker> pickerClass
      The deployment's ModelPicker as a no-arg class: policy over the catalog's entries, such as which endpoints may stand in for each other. Which entry serves a grade is the catalog's pins, and the shipped DefaultModelPicker reads them, so most deployments name no class. A picker that needs constructor arguments is declared with ModelPickers.use(ModelPicker) at startup instead.
    • fallbackToStronger

      public volatile boolean fallbackToStronger
      Whether DefaultModelPicker serves a request from a grade above its own when nothing of its grade can serve it. Off, a request whose grade has nothing callable is refused with a ModelResolutionError rather than run on a stronger, dearer model.
    • fallbackToWeaker

      public volatile boolean fallbackToWeaker
      Whether DefaultModelPicker serves a request from a grade below its own when nothing of its grade or above can serve it. Off, such a request is refused with a ModelResolutionError rather than run on a model weaker than the work declared.
    • mantleLaxProject

      public volatile String mantleLaxProject
      Bedrock Mantle project (workspace) id whose data retention mode is provider_data_share, or null in a deployment that has not provisioned one. Models whose spec declares requiresLax can only be served under this project, so a null makes them ineligible to every picker and refused at the request gate.
    • mantleStrictProject

      public volatile String mantleStrictProject
      Bedrock Mantle project (workspace) id whose data retention mode is none, or null in a deployment that has not provisioned one. When set, every Mantle request for a model that does not require data sharing is pinned to this project, making the zero-retention guarantee independent of the account-level setting. When null, no header is sent and requests resolve through the account default.
  • Constructor Details

    • ModelSettings

      public ModelSettings()