Current section
Files
Jump to
Current section
Files
lib/letta_api/model/provider.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.13.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule LettaAPI.Model.Provider do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:id,
:name,
:provider_type,
:api_key,
:base_url,
:organization_id,
:updated_at
]
@type t :: %__MODULE__{
:id => String.t | nil,
:name => String.t,
:provider_type => LettaAPI.Model.ProviderType.t,
:api_key => String.t | nil,
:base_url => String.t | nil,
:organization_id => String.t | nil,
:updated_at => DateTime.t | nil
}
alias LettaAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:provider_type, :struct, LettaAPI.Model.ProviderType)
end
end