Package com.openai.models.responses
Class ResponseMcpCallFailedEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseMcpCallFailedEvent.Builder
A builder for ResponseMcpCallFailedEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseMcpCallFailedEvent.Builder
sequenceNumber(Long sequenceNumber)
The sequence number of this event. final ResponseMcpCallFailedEvent.Builder
sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value. final ResponseMcpCallFailedEvent.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ResponseMcpCallFailedEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseMcpCallFailedEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseMcpCallFailedEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseMcpCallFailedEvent.Builder
removeAdditionalProperty(String key)
final ResponseMcpCallFailedEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseMcpCallFailedEvent
build()
Returns an immutable instance of ResponseMcpCallFailedEvent. -
-
Method Detail
-
sequenceNumber
final ResponseMcpCallFailedEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final ResponseMcpCallFailedEvent.Builder sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value.
You should usually call Builder.sequenceNumber with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseMcpCallFailedEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("response.mcp_call.failed")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseMcpCallFailedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseMcpCallFailedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseMcpCallFailedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseMcpCallFailedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseMcpCallFailedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseMcpCallFailedEvent build()
Returns an immutable instance of ResponseMcpCallFailedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.sequenceNumber()
-
-
-
-