Class: OpenAI::Models::FineTuning::JobListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/fine_tuning/job_list_params.rb,
sig/openai/models/fine_tuning/job_list_params.rbs

Overview

See Also:

  • OpenAI::Resources::FineTuning::Jobs#list

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(after: nil, limit: nil, metadata: nil, request_options: {}) ⇒ JobListParams

Returns a new instance of JobListParams.

Parameters:

  • after (defaults to: nil) —

    Identifier for the last job from the previous pagination request.

  • limit (defaults to: nil) —

    Number of fine-tuning jobs to retrieve.

  • metadata (defaults to: nil) —

    Optional metadata filter. To filter, use the syntax metadata[k]=v. Omitting the parameter or passing an empty object applies no metadata filter. An empty value, such as metadata[k]=, filters for that key with an empty string value. To select jobs with null metadata, send the literal query string metadata=null. Nullable caller types do not specify how a client serializes null for a deep-object parameter. Use a raw query parameter if the client omits null. Do not combine the two query forms.

  • after: (String) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • metadata: (::Hash[Symbol, String], nil) (defaults to: nil)
  • request_options: (OpenAI::request_opts) (defaults to: {})


# File 'lib/openai/models/fine_tuning/job_list_params.rb', line 35

Instance Attribute Details

#after ⇒ String?

Identifier for the last job from the previous pagination request.

Returns:

  • (String, nil)


15
# File 'lib/openai/models/fine_tuning/job_list_params.rb', line 15

optional :after, String

#limit ⇒ Integer?

Number of fine-tuning jobs to retrieve.

Returns:

  • (Integer, nil)


21
# File 'lib/openai/models/fine_tuning/job_list_params.rb', line 21

optional :limit, Integer

#metadata ⇒ ::Hash[Symbol, String]?

Optional metadata filter. To filter, use the syntax metadata[k]=v. Omitting the parameter or passing an empty object applies no metadata filter. An empty value, such as metadata[k]=, filters for that key with an empty string value. To select jobs with null metadata, send the literal query string metadata=null. Nullable caller types do not specify how a client serializes null for a deep-object parameter. Use a raw query parameter if the client omits null. Do not combine the two query forms.

Returns:

  • (::Hash[Symbol, String], nil)


33
# File 'lib/openai/models/fine_tuning/job_list_params.rb', line 33

optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true

Instance Method Details

#to_hash ⇒ { ?after: String, ?limit: Integer, ?metadata: ::Hash[Symbol, String]?, ?request_options: OpenAI::RequestOptions }

Returns:

  • ({ ?after: String, ?limit: Integer, ?metadata: ::Hash[Symbol, String]?, ?request_options: OpenAI::RequestOptions })


56
57
58
59
60
61
# File 'sig/openai/models/fine_tuning/job_list_params.rbs', line 56

def to_hash: -> {
  ?after: String,
  ?limit: Integer,
  ?metadata: ::Hash[Symbol, String]?,
  ?request_options: OpenAI::RequestOptions
}