Package com.openai.models.beta.realtime
Class RealtimeResponse.MaxOutputTokens
-
- All Implemented Interfaces:
public final class RealtimeResponse.MaxOutputTokens
Maximum number of output tokens for a single assistant response, inclusive of tool calls, that was used in this response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
RealtimeResponse.MaxOutputTokens.Visitor
An interface that defines how to map each variant of MaxOutputTokens to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<Long>
integer()
final Optional<JsonValue>
inf()
final Boolean
isInteger()
final Boolean
isInf()
final Long
asInteger()
final JsonValue
asInf()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(RealtimeResponse.MaxOutputTokens.Visitor<T> visitor)
final RealtimeResponse.MaxOutputTokens
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeResponse.MaxOutputTokens
ofInteger(Long integer)
final static RealtimeResponse.MaxOutputTokens
ofInf()
-
-
Method Detail
-
accept
final <T extends Any> T accept(RealtimeResponse.MaxOutputTokens.Visitor<T> visitor)
-
validate
final RealtimeResponse.MaxOutputTokens validate()
-
ofInteger
final static RealtimeResponse.MaxOutputTokens ofInteger(Long integer)
-
ofInf
final static RealtimeResponse.MaxOutputTokens ofInf()
-
-
-
-