export class Embedding {
    vectors;
    model;
    input_tokens;
    dimensions;
    constructor(response) {
        this.vectors = response.vectors;
        this.model = response.model;
        this.input_tokens = response.input_tokens;
        this.dimensions = response.dimensions;
    }
    /**
     * Get the first vector (useful for single-input embeddings)
     */
    get vector() {
        return this.vectors[0] || [];
    }
    /**
     * Convert to string representation (shows dimensions and token count)
     */
    toString() {
        return `Embedding(model=${this.model}, dimensions=${this.dimensions}, tokens=${this.input_tokens}, count=${this.vectors.length})`;
    }
}
