Current section

Files

Jump to
liter_llm lib liter_llm specific_tool_choice.ex
Raw

lib/liter_llm/specific_tool_choice.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:6e12ad2d0caa62df184195809bd0a5a989fc00f996ba000a83e5a6241f40da7b
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule LiterLlm.SpecificToolChoice do
@moduledoc "Directive to call a specific tool."
@typedoc "Directive to call a specific tool."
@type t :: %__MODULE__{
choice_type: String.t() | nil,
function: map()
}
defstruct choice_type: :function,
function: 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