Current section

Files

Jump to
liter_llm lib liter_llm create_response_request.ex
Raw

lib/liter_llm/create_response_request.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:1213a045f6c720bcab8727df8faa87409c027be1ac51394a1bf33f9c83c5d07c
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule LiterLlm.CreateResponseRequest do
@moduledoc "Request to create a structured response."
@typedoc "Request to create a structured response."
@type t :: %__MODULE__{
model: String.t() | nil,
input: String.t() | nil,
instructions: String.t() | nil,
tools: [map()] | nil,
temperature: float() | nil,
max_output_tokens: non_neg_integer() | nil,
metadata: String.t() | nil
}
defstruct model: nil,
input: nil,
instructions: nil,
tools: nil,
temperature: nil,
max_output_tokens: nil,
metadata: 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