Class BetaResponseInputItem.ApplyPatchCallOutput
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ApplyPatchCallOutputThe streamed output emitted by an apply patch tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ApplyPatchCallOutput.BuilderA builder for ApplyPatchCallOutput.
public final classBetaResponseInputItem.ApplyPatchCallOutput.StatusThe status of the apply patch tool call output. One of
completedorfailed.public final classBetaResponseInputItem.ApplyPatchCallOutput.AgentThe agent that produced this item.
public final classBetaResponseInputItem.ApplyPatchCallOutput.CallerThe execution context that produced this tool call.
-
Method Summary
Modifier and Type Method Description final StringcallId()The unique ID of the apply patch tool call generated by the model. final BetaResponseInputItem.ApplyPatchCallOutput.Statusstatus()The status of the apply patch tool call output. final JsonValue_type()The type of the item. final Optional<String>id()The unique ID of the apply patch tool call output. final Optional<BetaResponseInputItem.ApplyPatchCallOutput.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputItem.ApplyPatchCallOutput.Caller>caller()The execution context that produced this tool call. final Optional<String>output()Optional human-readable log text from the apply patch tool (e.g., patch results or errors). final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseInputItem.ApplyPatchCallOutput.Status>_status()Returns the raw JSON value of status. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.ApplyPatchCallOutput.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputItem.ApplyPatchCallOutput.Caller>_caller()Returns the raw JSON value of caller. final JsonField<String>_output()Returns the raw JSON value of output. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ApplyPatchCallOutput.BuildertoBuilder()final BetaResponseInputItem.ApplyPatchCallOutputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputItem.ApplyPatchCallOutput.Builderbuilder()Returns a mutable builder for constructing an instance of ApplyPatchCallOutput. -
-
Method Detail
-
status
final BetaResponseInputItem.ApplyPatchCallOutput.Status status()
The status of the apply patch tool call output. One of
completedorfailed.
-
_type
final JsonValue _type()
The type of the item. Always
apply_patch_call_output.Expected to always return the following:
JsonValue.from("apply_patch_call_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
id
final Optional<String> id()
The unique ID of the apply patch tool call output. Populated when this item is returned via API.
-
agent
final Optional<BetaResponseInputItem.ApplyPatchCallOutput.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseInputItem.ApplyPatchCallOutput.Caller> caller()
The execution context that produced this tool call.
-
output
final Optional<String> output()
Optional human-readable log text from the apply patch tool (e.g., patch results or errors).
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseInputItem.ApplyPatchCallOutput.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseInputItem.ApplyPatchCallOutput.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_caller
final JsonField<BetaResponseInputItem.ApplyPatchCallOutput.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_output
final JsonField<String> _output()
Returns the raw JSON value of output.
Unlike output, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputItem.ApplyPatchCallOutput.Builder toBuilder()
-
validate
final BetaResponseInputItem.ApplyPatchCallOutput 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 BetaResponseInputItem.ApplyPatchCallOutput.Builder builder()
Returns a mutable builder for constructing an instance of ApplyPatchCallOutput.
The following fields are required:
.callId() .status()
-
-
-
-