EmbedderResponse
Rust struct goodmem::models::EmbedderResponse: declaration, fields or variants, and implementations.
Struct EmbedderResponse
goodmem::models::EmbedderResponse
Embedder configuration information
pub struct EmbedderResponse {
pub embedder_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 dimensionality: i32,
pub distribution_type: DistributionType,
pub max_sequence_length: Option<i32>,
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>,
pub gemini_endpoint_config: Option<Box<GeminiEndpointConfig>>,
}Referenced types: DashScopeApiDialect, DistributionType, EndpointAuthentication, GeminiEndpointConfig, Modality, ProviderType.
Fields
embedder_id
pub embedder_id: String
Unique identifier of the embedder
Wire name: embedderId.
display_name
pub display_name: String
User-facing name of the embedder
Wire name: displayName.
description
pub description: Option<String>
Description of the embedder
Wire name: description.
provider_type
pub provider_type: ProviderType
Type of embedding provider
Wire name: providerType.
endpoint_url
pub endpoint_url: String
Canonical base HTTP(S) endpoint used for provider requests.
Wire name: endpointUrl.
api_path
pub api_path: Option<String>
Configured provider-relative request path. For Gemini, this is the selected API version: /v1beta for Developer or /v1 for Google Cloud.
Wire name: apiPath.
model_identifier
pub model_identifier: String
Model identifier
Wire name: modelIdentifier.
dimensionality
pub dimensionality: i32
Output vector dimensions
Wire name: dimensionality.
distribution_type
pub distribution_type: DistributionType
Type of embedding distribution (DENSE or SPARSE)
Wire name: distributionType.
max_sequence_length
pub max_sequence_length: Option<i32>
Maximum input sequence length
Wire name: maxSequenceLength.
supported_modalities
pub supported_modalities: Vec<Modality>
Supported content modalities
Wire name: supportedModalities.
credentials
pub credentials: Option<Box<EndpointAuthentication>>
Stored credentials; present only when GetEmbedder explicitly requests them and the caller has READ_EMBEDDER_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 embedder
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 embedder
Wire name: createdById.
updated_by_id
pub updated_by_id: String
ID of the user who last updated the embedder
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.
gemini_endpoint_config
pub gemini_endpoint_config: Option<Box<GeminiEndpointConfig>>
Persisted Gemini backend routing; present only for Gemini embedder resources.
Wire name: geminiEndpointConfig.
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 EmbedderResponseimpl std::fmt::Debug for EmbedderResponse