Package com.openai.models
Class Run.LastError.Builder
-
- All Implemented Interfaces:
public final class Run.LastError.Builder
A builder for LastError.
-
-
Method Summary
Modifier and Type Method Description final Run.LastError.Builder
code(Run.LastError.Code code)
One of server_error
,rate_limit_exceeded
, orinvalid_prompt
.final Run.LastError.Builder
code(JsonField<Run.LastError.Code> code)
One of server_error
,rate_limit_exceeded
, orinvalid_prompt
.final Run.LastError.Builder
message(String message)
A human-readable description of the error. final Run.LastError.Builder
message(JsonField<String> message)
A human-readable description of the error. final Run.LastError.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Run.LastError.Builder
putAdditionalProperty(String key, JsonValue value)
final Run.LastError.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Run.LastError.Builder
removeAdditionalProperty(String key)
final Run.LastError.Builder
removeAllAdditionalProperties(Set<String> keys)
final Run.LastError
build()
-
-
Method Detail
-
code
final Run.LastError.Builder code(Run.LastError.Code code)
One of
server_error
,rate_limit_exceeded
, orinvalid_prompt
.
-
code
final Run.LastError.Builder code(JsonField<Run.LastError.Code> code)
One of
server_error
,rate_limit_exceeded
, orinvalid_prompt
.
-
message
final Run.LastError.Builder message(String message)
A human-readable description of the error.
-
message
final Run.LastError.Builder message(JsonField<String> message)
A human-readable description of the error.
-
additionalProperties
final Run.LastError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Run.LastError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Run.LastError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Run.LastError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Run.LastError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Run.LastError build()
-
-
-
-