ADK.Model.LlmResponse (adk_ex v1.1.0)

Copy Markdown View Source

Response from a model's generate_content call.

Fields mirror Google ADK's LlmResponse. When streaming, partial chunks have partial: true and the final chunk has turn_complete: true.

Summary

Types

t()

@type t() :: %ADK.Model.LlmResponse{
  citation_metadata: map() | nil,
  content: ADK.Types.Content.t() | nil,
  custom_metadata: map() | nil,
  error_code: String.t() | nil,
  error_message: String.t() | nil,
  finish_reason: String.t() | nil,
  grounding_metadata: map() | nil,
  interrupted: boolean(),
  partial: boolean(),
  turn_complete: boolean(),
  usage_metadata: map() | nil
}