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:5f17ebe676822cfa77ea15c5d293e0cac18cf5c5fd2e4c3c2b8974a130abfd16
# 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