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