Class SessionCreateResponse.MaxResponseOutputTokens
-
- All Implemented Interfaces:
public final class SessionCreateResponse.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
SessionCreateResponse.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(SessionCreateResponse.MaxResponseOutputTokens.Visitor<T> visitor)
final SessionCreateResponse.MaxResponseOutputTokens
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static SessionCreateResponse.MaxResponseOutputTokens
ofInteger(Long integer)
final static SessionCreateResponse.MaxResponseOutputTokens
ofInf()
-
-
Method Detail
-
accept
final <T extends Any> T accept(SessionCreateResponse.MaxResponseOutputTokens.Visitor<T> visitor)
-
validate
final SessionCreateResponse.MaxResponseOutputTokens validate()
-
ofInteger
final static SessionCreateResponse.MaxResponseOutputTokens ofInteger(Long integer)
-
ofInf
final static SessionCreateResponse.MaxResponseOutputTokens ofInf()
-
-
-
-