Package com.openai.models.beta.realtime
Class SessionUpdateEvent.Session.MaxResponseOutputTokens
-
- All Implemented Interfaces:
public final class SessionUpdateEvent.Session.MaxResponseOutputTokens
Maximum 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
inf
for the maximum available tokens for a given model. Defaults toinf
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
SessionUpdateEvent.Session.MaxResponseOutputTokens.Visitor
An 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 Boolean
isInteger()
final Boolean
isInf()
final Long
asInteger()
final JsonValue
asInf()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(SessionUpdateEvent.Session.MaxResponseOutputTokens.Visitor<T> visitor)
final SessionUpdateEvent.Session.MaxResponseOutputTokens
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static SessionUpdateEvent.Session.MaxResponseOutputTokens
ofInteger(Long integer)
final static SessionUpdateEvent.Session.MaxResponseOutputTokens
ofInf()
-
-
Method Detail
-
accept
final <T extends Any> T accept(SessionUpdateEvent.Session.MaxResponseOutputTokens.Visitor<T> visitor)
-
validate
final SessionUpdateEvent.Session.MaxResponseOutputTokens validate()
-
ofInteger
final static SessionUpdateEvent.Session.MaxResponseOutputTokens ofInteger(Long integer)
-
ofInf
final static SessionUpdateEvent.Session.MaxResponseOutputTokens ofInf()
-
-
-
-