Class: OpenAI::Models::BatchRequestCounts

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/batch_request_counts.rb

Instance Attribute 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, 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(completed: , failed: , total: ) ⇒ Object

The request counts for different statuses within the batch.

Parameters:

  • completed (Integer) (defaults to: )

    Number of requests that have been completed successfully.

  • failed (Integer) (defaults to: )

    Number of requests that have failed.

  • total (Integer) (defaults to: )

    Total number of requests in the batch.



# File 'lib/openai/models/batch_request_counts.rb', line 24

Instance Attribute Details

#completedInteger

Number of requests that have been completed successfully.

Returns:

  • (Integer)


10
# File 'lib/openai/models/batch_request_counts.rb', line 10

required :completed, Integer

#failedInteger

Number of requests that have failed.

Returns:

  • (Integer)


16
# File 'lib/openai/models/batch_request_counts.rb', line 16

required :failed, Integer

#totalInteger

Total number of requests in the batch.

Returns:

  • (Integer)


22
# File 'lib/openai/models/batch_request_counts.rb', line 22

required :total, Integer