Class: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::Source::Responses

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/evals/run_create_params.rb,
sig/openai/models/evals/run_create_params.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ Responses

Returns a new instance of Responses.

Parameters:

  • created_after —

    Only include items created after this timestamp (inclusive). This is a query parameter used to select responses.

  • created_before —

    Only include items created before this timestamp (inclusive). This is a query parameter used to select responses.

  • instructions_search —

    Optional string to search the 'instructions' field. This is a query parameter used to select responses.

  • metadata —

    Metadata filter for the responses. This is a query parameter used to select responses.

  • model —

    The name of the model to find responses for. This is a query parameter used to select responses.

  • reasoning_effort —

    Constrains effort on reasoning for reasoning models. Currently supported values are none, minimal, low, medium, high, xhigh, and max. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Not all reasoning models support every value. See the reasoning guide for model-specific support.

  • temperature —

    Sampling temperature. This is a query parameter used to select responses.

  • tools —

    List of tool names. This is a query parameter used to select responses.

  • top_p —

    Nucleus sampling parameter. This is a query parameter used to select responses.

  • users —

    List of user identifiers. This is a query parameter used to select responses.

  • type —

    The type of run data source. Always responses.

  • created_after: (Integer, nil)
  • created_before: (Integer, nil)
  • instructions_search: (String, nil)
  • metadata: (top, nil)
  • model: (String, nil)
  • reasoning_effort: (OpenAI::Models::reasoning_effort, nil)
  • temperature: (Float, nil)
  • tools: (::Array[String], nil)
  • top_p: (Float, nil)
  • users: (::Array[String], nil)
  • type: (:responses)


366
367
368
369
370
371
372
373
374
375
376
377
378
# File 'sig/openai/models/evals/run_create_params.rbs', line 366

def initialize: (
  ?created_after: Integer?,
  ?created_before: Integer?,
  ?instructions_search: String?,
  ?metadata: top?,
  ?model: String?,
  ?reasoning_effort: OpenAI::Models::reasoning_effort?,
  ?temperature: Float?,
  ?tools: ::Array[String]?,
  ?top_p: Float?,
  ?users: ::Array[String]?,
  ?type: :responses
) -> void

Instance Attribute Details

#created_after ⇒ Integer?

Only include items created after this timestamp (inclusive). This is a query parameter used to select responses.

Returns:

  • (Integer, nil)


236
# File 'lib/openai/models/evals/run_create_params.rb', line 236

optional :created_after, Integer, nil?: true

#created_before ⇒ Integer?

Only include items created before this timestamp (inclusive). This is a query parameter used to select responses.

Returns:

  • (Integer, nil)


243
# File 'lib/openai/models/evals/run_create_params.rb', line 243

optional :created_before, Integer, nil?: true

#instructions_search ⇒ String?

Optional string to search the 'instructions' field. This is a query parameter used to select responses.

Returns:

  • (String, nil)


250
# File 'lib/openai/models/evals/run_create_params.rb', line 250

optional :instructions_search, String, nil?: true

#metadata ⇒ top?

Metadata filter for the responses. This is a query parameter used to select responses.

Returns:

  • (top, nil)


257
# File 'lib/openai/models/evals/run_create_params.rb', line 257

optional :metadata, OpenAI::Internal::Type::Unknown, nil?: true

#model ⇒ String?

The name of the model to find responses for. This is a query parameter used to select responses.

Returns:

  • (String, nil)


264
# File 'lib/openai/models/evals/run_create_params.rb', line 264

optional :model, String, nil?: true

#reasoning_effort ⇒ OpenAI::Models::reasoning_effort?

Constrains effort on reasoning for reasoning models. Currently supported values are none, minimal, low, medium, high, xhigh, and max. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Not all reasoning models support every value. See the reasoning guide for model-specific support.

Returns:

  • (OpenAI::Models::reasoning_effort, nil)


275
# File 'lib/openai/models/evals/run_create_params.rb', line 275

optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true

#temperature ⇒ Float?

Sampling temperature. This is a query parameter used to select responses.

Returns:

  • (Float, nil)


281
# File 'lib/openai/models/evals/run_create_params.rb', line 281

optional :temperature, Float, nil?: true

#tools ⇒ ::Array[String]?

List of tool names. This is a query parameter used to select responses.

Returns:

  • (::Array[String], nil)


287
# File 'lib/openai/models/evals/run_create_params.rb', line 287

optional :tools, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#top_p ⇒ Float?

Nucleus sampling parameter. This is a query parameter used to select responses.

Returns:

  • (Float, nil)


293
# File 'lib/openai/models/evals/run_create_params.rb', line 293

optional :top_p, Float, nil?: true

#type ⇒ :responses

The type of run data source. Always responses.

Returns:

  • (:responses)


229
# File 'lib/openai/models/evals/run_create_params.rb', line 229

required :type, const: :responses

#users ⇒ ::Array[String]?

List of user identifiers. This is a query parameter used to select responses.

Returns:

  • (::Array[String], nil)


299
# File 'lib/openai/models/evals/run_create_params.rb', line 299

optional :users, OpenAI::Internal::Type::ArrayOf[String], nil?: true

Instance Method Details

#to_hash ⇒ { ?type: :responses, ?created_after: Integer?, ?created_before: Integer?, ?instructions_search: String?, ?metadata: top?, ?model: String?, ?reasoning_effort: OpenAI::Models::reasoning_effort?, ?temperature: Float?, ?tools: ::Array[String]?, ?top_p: Float?, ?users: ::Array[String]? }

Returns:

  • ({ ?type: :responses, ?created_after: Integer?, ?created_before: Integer?, ?instructions_search: String?, ?metadata: top?, ?model: String?, ?reasoning_effort: OpenAI::Models::reasoning_effort?, ?temperature: Float?, ?tools: ::Array[String]?, ?top_p: Float?, ?users: ::Array[String]? })


380
381
382
383
384
385
386
387
388
389
390
391
392
# File 'sig/openai/models/evals/run_create_params.rbs', line 380

def to_hash: -> {
  ?type: :responses,
  ?created_after: Integer?,
  ?created_before: Integer?,
  ?instructions_search: String?,
  ?metadata: top?,
  ?model: String?,
  ?reasoning_effort: OpenAI::Models::reasoning_effort?,
  ?temperature: Float?,
  ?tools: ::Array[String]?,
  ?top_p: Float?,
  ?users: ::Array[String]?
}