Package com.openai.models.realtime
Class RealtimeSession.MaxResponseOutputTokens
-
- All Implemented Interfaces:
public final class RealtimeSession.MaxResponseOutputTokensMaximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
inffor the maximum available tokens for a given model. Defaults toinf.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRealtimeSession.MaxResponseOutputTokens.VisitorAn interface that defines how to map each variant of MaxResponseOutputTokens to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<Long>integer()final Optional<JsonValue>inf()final BooleanisInteger()final BooleanisInf()final LongasInteger()final JsonValueasInf()final Optional<JsonValue>_json()final <T extends Any> Taccept(RealtimeSession.MaxResponseOutputTokens.Visitor<T> visitor)final RealtimeSession.MaxResponseOutputTokensvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeSession.MaxResponseOutputTokensofInteger(Long integer)final static RealtimeSession.MaxResponseOutputTokensofInf()-
-
Method Detail
-
accept
final <T extends Any> T accept(RealtimeSession.MaxResponseOutputTokens.Visitor<T> visitor)
-
validate
final RealtimeSession.MaxResponseOutputTokens validate()
-
ofInteger
final static RealtimeSession.MaxResponseOutputTokens ofInteger(Long integer)
-
ofInf
final static RealtimeSession.MaxResponseOutputTokens ofInf()
-
-
-
-