# This file is auto-generated by alef — DO NOT EDIT. # alef:hash:52effca2513e1c5f8a9a5b90a372d645388de4b92e4f822acc38d97502c322b6 # To regenerate: alef generate # To verify freshness: alef verify --exit-code defmodule LiterLlm.StreamToolCall do @moduledoc "A streaming tool call being built incrementally." @typedoc "A streaming tool call being built incrementally." @type t :: %__MODULE__{ index: non_neg_integer(), id: String.t() | nil, call_type: String.t() | nil | nil, function: map() | nil } defstruct index: 0, id: nil, call_type: nil, function: nil defimpl Jason.Encoder do @doc false def encode(value, opts) do value |> Map.from_struct() |> Enum.reject(fn {_k, v} -> v == nil end) |> Enum.into(%{}) |> Jason.Encoder.encode(opts) end end end