Package com.openai.models.beta.realtime
Class SessionUpdateEvent.Session.MaxResponseOutputTokens
-
- All Implemented Interfaces:
public final class SessionUpdateEvent.Session.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 interfaceSessionUpdateEvent.Session.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(SessionUpdateEvent.Session.MaxResponseOutputTokens.Visitor<T> visitor)final SessionUpdateEvent.Session.MaxResponseOutputTokensvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionUpdateEvent.Session.MaxResponseOutputTokensofInteger(Long integer)final static SessionUpdateEvent.Session.MaxResponseOutputTokensofInf()-
-
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()
-
-
-
-