ExLLM.Providers.Gemini.Content.Part (ex_llm v0.8.1)

View Source

Represents a content part which can be text, inline data, or function call/response.

Summary

Functions

Converts Part struct to JSON format for API requests.

Types

t()

@type t() :: %ExLLM.Providers.Gemini.Content.Part{
  code_execution_result: map() | nil,
  function_call: map() | nil,
  function_response: map() | nil,
  inline_data: map() | nil,
  text: String.t() | nil
}

Functions

to_json(part)

@spec to_json(t()) :: map()

Converts Part struct to JSON format for API requests.