Class BetaResponseMcpCallFailedEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseMcpCallFailedEvent.BuilderA builder for BetaResponseMcpCallFailedEvent.
-
-
Method Summary
-
-
Method Detail
-
itemId
final BetaResponseMcpCallFailedEvent.Builder itemId(String itemId)
The ID of the MCP tool call item that failed.
-
itemId
final BetaResponseMcpCallFailedEvent.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputIndex
final BetaResponseMcpCallFailedEvent.Builder outputIndex(Long outputIndex)
The index of the output item that failed.
-
outputIndex
final BetaResponseMcpCallFailedEvent.Builder outputIndex(JsonField<Long> outputIndex)
Sets Builder.outputIndex to an arbitrary JSON value.
You should usually call Builder.outputIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sequenceNumber
final BetaResponseMcpCallFailedEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final BetaResponseMcpCallFailedEvent.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 BetaResponseMcpCallFailedEvent.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.
-
agent
final BetaResponseMcpCallFailedEvent.Builder agent(BetaResponseMcpCallFailedEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseMcpCallFailedEvent.Builder agent(Optional<BetaResponseMcpCallFailedEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseMcpCallFailedEvent.Builder agent(JsonField<BetaResponseMcpCallFailedEvent.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseMcpCallFailedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseMcpCallFailedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseMcpCallFailedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseMcpCallFailedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseMcpCallFailedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseMcpCallFailedEvent build()
Returns an immutable instance of BetaResponseMcpCallFailedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.itemId() .outputIndex() .sequenceNumber()
-
-
-
-