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()A list of one or many input items to the model, containing different content types. final BooleanisString()final BooleanisResponseInputItems()final StringasString()A text input to the model, equivalent to a text input with the userrole.final List<ResponseInputItem>asResponseInputItems()A list of one or many input items to the model, containing different content types. 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)A list of one or many input items to the model, containing different content types. -
-
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()
A list of one or many input items to the model, containing different content types.
-
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()
A list of one or many input items to the model, containing different content types.
-
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)
A list of one or many input items to the model, containing different content types.
-
-
-
-