# `Gemini.Types.Response.BatchEmbedContentsResponse`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/batch_embed_contents_response.ex#L1)

Response structure for batch embedding requests.

Contains embeddings for multiple content items in the same order as
the input requests.

## Fields

- `embeddings`: List of content embeddings

## Examples

    %BatchEmbedContentsResponse{
      embeddings: [
        %ContentEmbedding{values: [0.1, 0.2, ...]},
        %ContentEmbedding{values: [0.3, 0.4, ...]},
        %ContentEmbedding{values: [0.5, 0.6, ...]}
      ]
    }

# `t`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/batch_embed_contents_response.ex#L28)

```elixir
@type t() :: %Gemini.Types.Response.BatchEmbedContentsResponse{
  embeddings: [Gemini.Types.Response.ContentEmbedding.t()]
}
```

# `from_api_response`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/batch_embed_contents_response.ex#L49)

```elixir
@spec from_api_response(map()) :: t()
```

Creates a new batch embedding response from API response data.

## Parameters

- `data`: Map containing the API response

## Examples

    BatchEmbedContentsResponse.from_api_response(%{
      "embeddings" => [
        %{"values" => [0.1, 0.2]},
        %{"values" => [0.3, 0.4]}
      ]
    })

# `get_all_values`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/batch_embed_contents_response.ex#L67)

```elixir
@spec get_all_values(t()) :: [[float()]]
```

Gets all embedding values as a list of lists.

## Examples

    response = %BatchEmbedContentsResponse{...}
    all_values = BatchEmbedContentsResponse.get_all_values(response)
    # => [[0.1, 0.2, ...], [0.3, 0.4, ...], ...]

---

*Consult [api-reference.md](api-reference.md) for complete listing*
