Class: OpenAI::Models::Evals::RunListResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/evals/run_list_response.rb

Defined Under Namespace

Modules: Content, Role, Type

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(image_url:, detail: nil, type: :input_image) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Evals::RunListResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Content::InputImage for more details.

An image input block used within EvalItem content arrays.

Parameters:

  • image_url (String)

    The URL of the image input.

  • detail (String) (defaults to: nil)

    The detail level of the image to be sent to the model. One of ‘high`, `low`, or

  • type (Symbol, :input_image) (defaults to: :input_image)

    The type of the image input. Always ‘input_image`.



# File 'lib/openai/models/evals/run_list_response.rb', line 493

Instance Attribute Details

#contentString, ...

Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.



475
476
# File 'lib/openai/models/evals/run_list_response.rb', line 475

required :content,
union: -> { OpenAI::Models::Evals::RunListResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Content }

#roleSymbol, OpenAI::Models::Evals::RunListResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Role

The role of the message input. One of ‘user`, `assistant`, `system`, or `developer`.



483
484
# File 'lib/openai/models/evals/run_list_response.rb', line 483

required :role,
enum: -> { OpenAI::Models::Evals::RunListResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Role }

#typeSymbol, ...

The type of the message input. Always ‘message`.



490
491
# File 'lib/openai/models/evals/run_list_response.rb', line 490

optional :type,
enum: -> { OpenAI::Models::Evals::RunListResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/evals/run_list_response.rb', line 611