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

Response structure for embedding content requests.

Contains the generated embedding vector from the input content.

## Fields

- `embedding`: The content embedding containing the numerical vector

## Examples

    %EmbedContentResponse{
      embedding: %ContentEmbedding{
        values: [0.123, -0.456, 0.789, ...]
      }
    }

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

```elixir
@type t() :: %Gemini.Types.Response.EmbedContentResponse{
  embedding: Gemini.Types.Response.ContentEmbedding.t()
}
```

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

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

Creates a new embedding response from API response data.

## Parameters

- `data`: Map containing the API response

## Examples

    EmbedContentResponse.from_api_response(%{
      "embedding" => %{"values" => [0.1, 0.2, 0.3]}
    })

# `get_values`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/embed_content_response.ex#L59)

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

Extracts the embedding values as a list of floats.

## Examples

    response = %EmbedContentResponse{...}
    values = EmbedContentResponse.get_values(response)
    # => [0.123, -0.456, 0.789, ...]

---

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