Current section
Files
Jump to
Current section
Files
lib/schemas/chat/completion/message_tool/call_chunk.ex
defmodule OpenAi.Chat.Completion.MessageTool.CallChunk do
@moduledoc """
Provides struct and type for a Chat.Completion.MessageTool.CallChunk
"""
@type t :: %__MODULE__{
function: OpenAi.Chat.Completion.MessageTool.CallChunkFunction.t() | nil,
id: String.t() | nil,
index: integer,
type: String.t() | nil
}
defstruct [:function, :id, :index, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
function: {OpenAi.Chat.Completion.MessageTool.CallChunkFunction, :t},
id: {:string, :generic},
index: :integer,
type: {:const, "function"}
]
end
end