Current section

Files

Jump to
liter_llm lib liter_llm stream_function_call.ex
Raw

lib/liter_llm/stream_function_call.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:b159ec7bf40f2249b9f5696d5819688bca2310a2b26cc9acae8194e6255f8b03
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule LiterLlm.StreamFunctionCall do
@moduledoc "Partial function call details in a stream."
@typedoc "Partial function call details in a stream."
@type t :: %__MODULE__{
name: String.t() | nil,
arguments: String.t() | nil
}
defstruct name: nil,
arguments: 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