/// EmbeddingResponse represents the response from the embedding API.
/// It contains the embedding vector and metadata about the response.
usecrate::prelude::*;/// The response to an embedding request,
/// including the vector and its metadata
#[derive(Debug, Clone, Deserialize, Serialize)]pubstructEmbeddingResponse{/// Type of object returned (e.g., "embedding"). Useful for
/// distinguishing response types.
pubobject: String,
/// The embedding vector generated for the input text. This
/// is the main result.
pubembedding:Vec<f32>,
/// Index of the input in the batch. Useful when multiple
/// inputs are embedded at once.
pubindex:i32}implEmbeddingResponse{/// Returns a clone of the embedding vector. This allows
/// further processing without mutating the original response.
pubfnactual_embedding(&self)->Vec<f32>{self.embedding.clone()}}