Class ModelConfigInfo (0.20.6)

ModelConfigInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The resolved, server-side view of model selector configuration for the end-user. The backend computes this per-request by applying, in order: Mendel flag evaluation, regional availability rules based on the engine's location, and admin-panel overrides from model_configs.

The backend is the single source of truth for this configuration; clients should render resolved_models directly in the model selector dropdown, in the order provided, without applying their own filtering, ordering, or localization.

Attributes

Name Description
resolved_models MutableSequence[google.cloud.discoveryengine_v1.types.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel]
Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
default_model_id str
Output only. The model_id of the model that should be selected by default in the model selector when the end-user has not made an explicit choice. The value is always one of the model_id\ s present in resolved_models.
auto_model_id str
Output only. The model_id a client must send when the end-user picks the "Auto" entry (the empty model_id). Populated only for surfaces known to have no true "Auto" mode, where leaving the model unset would fall back to a platform default rather than a backend-chosen model. Empty on every other surface, where "Auto" is resolved server-side, and when none of the surface's ranked models is available. When set, it is always one of the non-empty model_id\ s present in resolved_models.

Classes

ResolvedModel

ResolvedModel(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A single model that is resolved to be available to the end-user in the model selector, with all of its localized display metadata.