Packages

Elixir SDK for Bifrost, the LLM gateway by Maxim

Current section

Files

Jump to
ex_bifrost lib ex_bifrost model get_batch_results_200_response.ex
Raw

lib/ex_bifrost/model/get_batch_results_200_response.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.23.0 (https://openapi-generator.tech)
# using the Elixir SDK Generator template (https://github.com/houllette/elixir-sdk-generator).
# Do not edit this file manually — edit the templates and regenerate instead.
defmodule ExBifrost.Model.GetBatchResults200Response do
@moduledoc """
GetBatchResults200Response model.
"""
@derive JSON.Encoder
defstruct [
:batch_id,
:results,
:has_more,
:next_cursor,
:extra_fields
]
@type t :: %__MODULE__{
:batch_id => String.t() | nil,
:results => [ExBifrost.Model.GetBatchResults200ResponseResultsInner.t()] | nil,
:has_more => boolean() | nil,
:next_cursor => String.t() | nil,
:extra_fields => ExBifrost.Model.BifrostResponseExtraFields.t() | nil
}
alias ExBifrost.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:results, :list, ExBifrost.Model.GetBatchResults200ResponseResultsInner)
|> Deserializer.deserialize(:extra_fields, :struct, ExBifrost.Model.BifrostResponseExtraFields)
end
end