GoodMemGoodMem
ReferenceSdkRustTypes

DecisionModelResponse

Rust struct goodmem::models::DecisionModelResponse: declaration, fields or variants, and implementations.

All types

Struct DecisionModelResponse

goodmem::models::DecisionModelResponse

Connection settings and supported features of a registered decision model.

pub struct DecisionModelResponse {
    pub decision_model_id: String,
    pub display_name: String,
    pub description: Option<String>,
    pub provider_type: DecisionModelProviderType,
    pub endpoint_url: String,
    pub api_path: String,
    pub model_identifier: String,
    pub credentials: Option<Box<EndpointAuthentication>>,
    pub configuration: BTreeMap<String, serde_json::Value>,
    pub labels: BTreeMap<String, String>,
    pub version: Option<String>,
    pub monitoring_endpoint: Option<String>,
    pub owner_id: String,
    pub capabilities: Box<DecisionModelCapabilities>,
    pub created_at: i64,
    pub updated_at: i64,
    pub created_by_id: String,
    pub updated_by_id: String,
}

Referenced types: DecisionModelCapabilities, DecisionModelProviderType, EndpointAuthentication.

Fields

decision_model_id

pub decision_model_id: String

UUID of the decision model. Wire name: decisionModelId.

display_name

pub display_name: String

Name shown in the console and CLI. Wire name: displayName.

description

pub description: Option<String>

Optional description. Wire name: description.

provider_type

pub provider_type: DecisionModelProviderType

Provider used by this model. Wire name: providerType.

endpoint_url

pub endpoint_url: String

Provider base URL. Wire name: endpointUrl.

api_path

pub api_path: String

Inference path appended to the base URL. Wire name: apiPath.

model_identifier

pub model_identifier: String

Configured model identifier. Wire name: modelIdentifier.

credentials

pub credentials: Option<Box<EndpointAuthentication>>

Stored credentials. Returned only by get when includeCredentials=true and you have READ_DECISION_MODEL_CREDENTIALS permission. Wire name: credentials.

configuration

pub configuration: BTreeMap<String, serde_json::Value>

Settings used when calling the provider. These do not change which features the model supports. Wire name: configuration.

labels

pub labels: BTreeMap<String, String>

Labels for filtering and organization. Wire name: labels.

version

pub version: Option<String>

Optional version label. Wire name: version.

monitoring_endpoint

pub monitoring_endpoint: Option<String>

Optional HTTP(S) health or metrics URL. Wire name: monitoringEndpoint.

owner_id

pub owner_id: String

UUID of the principal that owns this model. Wire name: ownerId.

capabilities

pub capabilities: Box<DecisionModelCapabilities>

Supported questions and media, known limits, and the meaning of each answer type. Wire name: capabilities.

created_at

pub created_at: i64

Creation time in milliseconds since epoch. Wire name: createdAt.

updated_at

pub updated_at: i64

Last update time in milliseconds since epoch. Wire name: updatedAt.

created_by_id

pub created_by_id: String

UUID of the principal or API key that created this model. Wire name: createdById.

updated_by_id

pub updated_by_id: String

UUID of the principal or API key that last updated this model. Wire name: updatedById.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for DecisionModelResponse
  • impl std::fmt::Debug for DecisionModelResponse

On this page