Current section

Files

Jump to
liter_llm lib liter_llm response_tool.ex
Raw

lib/liter_llm/response_tool.ex

# 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.ResponseTool do
@moduledoc "A tool available for the response request."
@typedoc "A tool available for the response request."
@type t :: %__MODULE__{
tool_type: String.t() | nil,
config: String.t() | nil
}
defstruct tool_type: nil,
config: 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