Class: OpenAI::Models::Responses::ResponseTextDoneEvent::Logprob::TopLogprob
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseTextDoneEvent::Logprob::TopLogprob
- Defined in:
- lib/openai/models/responses/response_text_done_event.rb
Instance Attribute Summary collapse
-
#logprob ⇒ Float?
The log probability of this token.
-
#token ⇒ String?
A possible text token.
Instance Method Summary collapse
- #initialize(token: nil, logprob: nil) ⇒ void constructor
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, 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(token: nil, logprob: nil) ⇒ void
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/openai/models/responses/response_text_done_event.rb', line 106 class TopLogprob < OpenAI::Internal::Type::BaseModel # @!attribute token # A possible text token. # # @return [String, nil] optional :token, String # @!attribute logprob # The log probability of this token. # # @return [Float, nil] optional :logprob, Float # @!method initialize(token: nil, logprob: nil) # @param token [String] A possible text token. # # @param logprob [Float] The log probability of this token. end |
Instance Attribute Details
#logprob ⇒ Float?
The log probability of this token.
117 |
# File 'lib/openai/models/responses/response_text_done_event.rb', line 117 optional :logprob, Float |
#token ⇒ String?
A possible text token.
111 |
# File 'lib/openai/models/responses/response_text_done_event.rb', line 111 optional :token, String |