RerankerResponse
Rust struct goodmem::models::RerankerResponse: declaration, fields or variants, and implementations.
Struct RerankerResponse
goodmem::models::RerankerResponse
Reranker configuration information
pub struct RerankerResponse {
pub reranker_id: String,
pub display_name: String,
pub description: Option<String>,
pub provider_type: ProviderType,
pub endpoint_url: String,
pub api_path: Option<String>,
pub model_identifier: String,
pub supported_modalities: Vec<Modality>,
pub credentials: Option<Box<EndpointAuthentication>>,
pub labels: BTreeMap<String, String>,
pub version: Option<String>,
pub monitoring_endpoint: Option<String>,
pub owner_id: String,
pub created_at: i64,
pub updated_at: i64,
pub created_by_id: String,
pub updated_by_id: String,
pub dashscope_api_dialect: Option<DashScopeApiDialect>,
}Referenced types: DashScopeApiDialect, EndpointAuthentication, Modality, ProviderType.
Fields
reranker_id
pub reranker_id: String
Unique identifier of the reranker
Wire name: rerankerId.
display_name
pub display_name: String
User-facing name of the reranker
Wire name: displayName.
description
pub description: Option<String>
Description of the reranker
Wire name: description.
provider_type
pub provider_type: ProviderType
Type of reranking provider
Wire name: providerType.
endpoint_url
pub endpoint_url: String
API endpoint URL
Wire name: endpointUrl.
api_path
pub api_path: Option<String>
API path for reranking request
Wire name: apiPath.
model_identifier
pub model_identifier: String
Model identifier
Wire name: modelIdentifier.
supported_modalities
pub supported_modalities: Vec<Modality>
Supported content modalities
Wire name: supportedModalities.
credentials
pub credentials: Option<Box<EndpointAuthentication>>
Stored credentials; present only when GetReranker explicitly requests them and the caller has READ_RERANKER_CREDENTIALS. Always omitted from create, update, and list responses.
Wire name: credentials.
labels
pub labels: BTreeMap<String, String>
User-defined labels for categorization
Wire name: labels.
version
pub version: Option<String>
Version information
Wire name: version.
monitoring_endpoint
pub monitoring_endpoint: Option<String>
Monitoring endpoint URL
Wire name: monitoringEndpoint.
owner_id
pub owner_id: String
Owner ID of the reranker
Wire name: ownerId.
created_at
pub created_at: i64
Creation timestamp (milliseconds since epoch)
Wire name: createdAt.
updated_at
pub updated_at: i64
Last update timestamp (milliseconds since epoch)
Wire name: updatedAt.
created_by_id
pub created_by_id: String
ID of the user who created the reranker
Wire name: createdById.
updated_by_id
pub updated_by_id: String
ID of the user who last updated the reranker
Wire name: updatedById.
dashscope_api_dialect
pub dashscope_api_dialect: Option<DashScopeApiDialect>
Configured DashScope request and response API dialect; present only for DashScope configurations with a persisted dialect.
Wire name: dashscopeApiDialect.
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 RerankerResponseimpl std::fmt::Debug for RerankerResponse