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

Container for all responses in an inline batch.

Contains a list of InlinedEmbedContentResponse structs, each representing
the result of one request from the batch.

## Fields

- `inlined_responses`: List of InlinedEmbedContentResponse structs

## Examples

    %InlinedEmbedContentResponses{
      inlined_responses: [
        %InlinedEmbedContentResponse{response: ..., error: nil},
        %InlinedEmbedContentResponse{response: nil, error: ...}
      ]
    }

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

```elixir
@type t() :: %Gemini.Types.Response.InlinedEmbedContentResponses{
  inlined_responses: [Gemini.Types.Response.InlinedEmbedContentResponse.t()]
}
```

# `failed_responses`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/inlined_embed_content_responses.ex#L86)

```elixir
@spec failed_responses(t()) :: [{integer(), map()}]
```

Extracts all failed responses with their indices and error details.

## Returns

List of tuples: `{index, error_map}`

## Examples

    failures = InlinedEmbedContentResponses.failed_responses(responses)
    # => [{2, %{"code" => 400, "message" => "Invalid"}}, ...]

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

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

Creates an inlined responses container from API response data.

## Parameters

- `data`: Map containing the API response with inlined responses

## Examples

    InlinedEmbedContentResponses.from_api_response(%{
      "inlinedResponses" => [
        %{"response" => %{"embedding" => ...}},
        %{"error" => %{"code" => 400}}
      ]
    })

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

```elixir
@spec successful_responses(t()) :: [Gemini.Types.Response.EmbedContentResponse.t()]
```

Extracts all successful responses from the container.

## Returns

List of EmbedContentResponse structs

## Examples

    successful = InlinedEmbedContentResponses.successful_responses(responses)
    # => [%EmbedContentResponse{...}, %EmbedContentResponse{...}]

---

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