Class InputTokenCountParams.Input
-
- All Implemented Interfaces:
public final class InputTokenCountParams.InputText, image, or file inputs to the model, used to generate a response
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceInputTokenCountParams.Input.VisitorAn interface that defines how to map each variant of Input to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<String>string()A text input to the model, equivalent to a text input with the userrole.final Optional<List<ResponseInputItem>>responseInputItems()final BooleanisString()final BooleanisResponseInputItems()final StringasString()A text input to the model, equivalent to a text input with the userrole.final List<ResponseInputItem>asResponseInputItems()final Optional<JsonValue>_json()final <T extends Any> Taccept(InputTokenCountParams.Input.Visitor<T> visitor)final InputTokenCountParams.Inputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static InputTokenCountParams.InputofString(String string)A text input to the model, equivalent to a text input with the userrole.final static InputTokenCountParams.InputofResponseInputItems(List<ResponseInputItem> responseInputItems)-
-
Method Detail
-
string
final Optional<String> string()
A text input to the model, equivalent to a text input with the
userrole.
-
responseInputItems
final Optional<List<ResponseInputItem>> responseInputItems()
-
isResponseInputItems
final Boolean isResponseInputItems()
-
asString
final String asString()
A text input to the model, equivalent to a text input with the
userrole.
-
asResponseInputItems
final List<ResponseInputItem> asResponseInputItems()
-
accept
final <T extends Any> T accept(InputTokenCountParams.Input.Visitor<T> visitor)
-
validate
final InputTokenCountParams.Input validate()
-
ofString
final static InputTokenCountParams.Input ofString(String string)
A text input to the model, equivalent to a text input with the
userrole.
-
ofResponseInputItems
final static InputTokenCountParams.Input ofResponseInputItems(List<ResponseInputItem> responseInputItems)
-
-
-
-