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:fec9b44a56d9714b7b12931bb48e1e8f6d57ef2d0ccaad1f9ac6046ce01a89af
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
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