Package com.openai.models.responses
Class ComputerAction.Type
-
- All Implemented Interfaces:
public final class ComputerAction.TypeAn action to type in text.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComputerAction.Type.BuilderA builder for Type.
-
Method Summary
Modifier and Type Method Description final Stringtext()The text to type. final JsonValue_type()Specifies the event type. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final ComputerAction.Type.BuildertoBuilder()final ComputerAction.Typevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComputerAction.Type.Builderbuilder()Returns a mutable builder for constructing an instance of Type. -
-
Method Detail
-
_type
final JsonValue _type()
Specifies the event type. For a type action, this property is always set to
type.Expected to always return the following:
JsonValue.from("type")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComputerAction.Type.Builder toBuilder()
-
validate
final ComputerAction.Type validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ComputerAction.Type.Builder builder()
Returns a mutable builder for constructing an instance of Type.
The following fields are required:
.text()
-
-
-
-