Class Session.MaxResponseOutputTokens
-
- All Implemented Interfaces:
public final class 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 interfaceSession.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(Session.MaxResponseOutputTokens.Visitor<T> visitor)final Session.MaxResponseOutputTokensvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Session.MaxResponseOutputTokensofInteger(Long integer)final static Session.MaxResponseOutputTokensofInf()-
-
Method Detail
-
accept
final <T extends Any> T accept(Session.MaxResponseOutputTokens.Visitor<T> visitor)
-
validate
final Session.MaxResponseOutputTokens validate()
-
ofInteger
final static Session.MaxResponseOutputTokens ofInteger(Long integer)
-
ofInf
final static Session.MaxResponseOutputTokens ofInf()
-
-
-
-