Current section

Files

Jump to
liter_llm lib liter_llm specific_function.ex
Raw

lib/liter_llm/specific_function.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:0ad579c4e6402a59f477d57e2df40488d9809a1a212e52fe47279587ff8c442e
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
# Issues & docs: https://github.com/sample_crate-dev/alef
defmodule LiterLlm.SpecificFunction do
@moduledoc "Name of the specific function to invoke."
@typedoc "Name of the specific function to invoke."
@type t :: %__MODULE__{
name: String.t() | nil
}
defstruct name: 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