Current section

Files

Jump to
ex_openai lib ex_openai generated components chat_session_history.ex
Raw

lib/ex_openai/generated/components/chat_session_history.ex

defmodule ExOpenAI.Components.ChatSessionHistory do
use ExOpenAI.Jason
@moduledoc """
History retention preferences returned for the session.
## Fields
* `:enabled` - **required** - `boolean()`
Indicates if chat history is persisted for the session.
* `:recent_threads` - **required** - `integer() | any()`
"""
@type t() :: %{__struct__: __MODULE__, enabled: boolean(), recent_threads: integer() | any()}
defstruct [:enabled, :recent_threads]
end