Gemini.Types.Request.InlinedEmbedContentRequests (GeminiEx v0.8.4)

View Source

Container for multiple inlined embedding requests in a batch.

Wraps a list of InlinedEmbedContentRequest structs for submission as part of an async batch embedding job.

Fields

  • requests: List of InlinedEmbedContentRequest structs

Examples

%InlinedEmbedContentRequests{
  requests: [
    %InlinedEmbedContentRequest{request: embed_req1},
    %InlinedEmbedContentRequest{request: embed_req2}
  ]
}

Summary

Functions

Creates a new container for inlined requests.

Converts the inlined requests container to API-compatible map format.

Types

t()

@type t() :: %Gemini.Types.Request.InlinedEmbedContentRequests{
  requests: [Gemini.Types.Request.InlinedEmbedContentRequest.t()]
}

Functions

new(requests)

Creates a new container for inlined requests.

Parameters

  • requests: List of InlinedEmbedContentRequest structs

Examples

InlinedEmbedContentRequests.new([req1, req2, req3])

to_api_map(inlined_embed_content_requests)

@spec to_api_map(t()) :: map()

Converts the inlined requests container to API-compatible map format.