// This file is auto-generated by alef — DO NOT EDIT.
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
// To regenerate: alef generate
// To verify freshness: alef verify --exit-code
// Issues & docs: https://github.com/kreuzberg-dev/alef

package dev.kreuzberg.e2e;

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import dev.kreuzberg.Kreuzberg;
import dev.kreuzberg.EmbeddingConfig;
import dev.kreuzberg.ExtractionConfig;
import java.util.Optional;
import dev.kreuzberg.JsonUtil;

/** E2e tests for category: embeddings. */
class EmbeddingsTest {

    @Test
    void testEmbedTextsDifferentPreset() throws Exception {
        // embed_texts: multilingual preset
        var config = JsonUtil.fromJson("{\"model\":{\"name\":\"multilingual\",\"type\":\"preset\"}}", EmbeddingConfig.class);

        var result = Kreuzberg.embedTexts(java.util.Arrays.asList(JsonUtil.fromJson("\"Hello world\"", String.class), JsonUtil.fromJson("\"Test\"", String.class)), config);
        // skipped: field 'embeddings' not available on result type

    }


    @Test
    void testGetEmbeddingPresetKnown() throws Exception {
        // get_embedding_preset: known preset
        var result = Kreuzberg.getEmbeddingPreset("balanced");


    }


    @Test
    void testGetEmbeddingPresetNominal() throws Exception {
        // get_embedding_preset: nominal case
        var result = Kreuzberg.getEmbeddingPreset("balanced");


    }


    @Test
    void testGetEmbeddingPresetUnknown() throws Exception {
        // get_embedding_preset: unknown preset fails
        var result = Kreuzberg.getEmbeddingPreset("nonexistent-xyz");
        assertNull(result, "expected empty value");


    }


    @Test
    void testListEmbeddingPresetsSanity() throws Exception {
        // list_embedding_presets: returns at least one
        var result = Kreuzberg.listEmbeddingPresets();
assertFalse(result.isEmpty(), "expected non-empty value");

    }

}
