Current section
Files
Jump to
Current section
Files
lib/schemas/eval/run/output_item/sample/input.ex
defmodule OpenAi.Eval.Run.OutputItem.Sample.Input do
@moduledoc """
Provides struct and type for a Eval.Run.OutputItem.Sample.Input
"""
@type t :: %__MODULE__{content: String.t(), role: String.t()}
defstruct [:content, :role]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[content: {:string, :generic}, role: {:string, :generic}]
end
end