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:fc01bdfd1822b862e54f8604901b3cef280c17c7091f6856e7b7502376362478
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
# Issues & docs: https://github.com/kreuzberg-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