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

Output of an async batch embedding job.

This is a union type - exactly ONE of the fields will be set.

## Union Type - ONE will be set:

- `responses_file`: File ID containing JSONL responses (for file-based output)
- `inlined_responses`: Direct inline responses (for inline output)

## Fields

- `responses_file`: GCS file containing batch results
- `inlined_responses`: Container with inline response data

## Examples

    # File-based output
    %EmbedContentBatchOutput{
      responses_file: "gs://bucket/outputs/batch-001-results.jsonl",
      inlined_responses: nil
    }

    # Inline output
    %EmbedContentBatchOutput{
      responses_file: nil,
      inlined_responses: %InlinedEmbedContentResponses{...}
    }

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

```elixir
@type t() :: %Gemini.Types.Response.EmbedContentBatchOutput{
  inlined_responses:
    Gemini.Types.Response.InlinedEmbedContentResponses.t() | nil,
  responses_file: String.t() | nil
}
```

# `file_based?`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/embed_content_batch_output.ex#L71)

```elixir
@spec file_based?(t()) :: boolean()
```

Checks if the output is file-based.

## Examples

    EmbedContentBatchOutput.file_based?(output)
    # => true

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

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

Creates batch output from API response data.

## Parameters

- `data`: Map containing the API response

## Examples

    EmbedContentBatchOutput.from_api_response(%{
      "responsesFile" => "gs://bucket/results.jsonl"
    })

# `inline?`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.11.0/lib/gemini/types/response/embed_content_batch_output.ex#L83)

```elixir
@spec inline?(t()) :: boolean()
```

Checks if the output is inline.

## Examples

    EmbedContentBatchOutput.inline?(output)
    # => false

---

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