Class: OpenAI::Models::Responses::ResponseOutputText::Logprob
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseOutputText::Logprob
- Defined in:
- lib/openai/models/responses/response_output_text.rb,
sig/openai/models/responses/response_output_text.rbs
Defined Under Namespace
Classes: TopLogprob
Instance Attribute Summary collapse
- #bytes ⇒ Array<Integer>
- #logprob ⇒ Float
- #token ⇒ String
- #top_logprobs ⇒ Array<OpenAI::Models::Responses::ResponseOutputText::Logprob::TopLogprob>
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ Logprob
constructor
A new instance of Logprob.
- #to_hash ⇒ { token: String, bytes: ::Array[Integer], logprob: Float, top_logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob::TopLogprob] }
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 ⇒ Logprob
Returns a new instance of Logprob.
265 266 267 268 269 270 |
# File 'sig/openai/models/responses/response_output_text.rbs', line 265
def initialize: (
token: String,
bytes: ::Array[Integer],
logprob: Float,
top_logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob::TopLogprob]
) -> void
|
Instance Attribute Details
#bytes ⇒ Array<Integer>
263 |
# File 'lib/openai/models/responses/response_output_text.rb', line 263 required :bytes, OpenAI::Internal::Type::ArrayOf[Integer] |
#logprob ⇒ Float
268 |
# File 'lib/openai/models/responses/response_output_text.rb', line 268 required :logprob, Float |
#token ⇒ String
258 |
# File 'lib/openai/models/responses/response_output_text.rb', line 258 required :token, String |
#top_logprobs ⇒ Array<OpenAI::Models::Responses::ResponseOutputText::Logprob::TopLogprob>
273 274 275 276 |
# File 'lib/openai/models/responses/response_output_text.rb', line 273 required( :top_logprobs, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseOutputText::Logprob::TopLogprob] } ) |
Instance Method Details
#to_hash ⇒ { token: String, bytes: ::Array[Integer], logprob: Float, top_logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob::TopLogprob] }
272 273 274 275 276 277 |
# File 'sig/openai/models/responses/response_output_text.rbs', line 272
def to_hash: -> {
token: String,
bytes: ::Array[Integer],
logprob: Float,
top_logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob::TopLogprob]
}
|