Class BetaResponseInputItem.ApplyPatchCall
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ApplyPatchCallA tool call representing a request to create, delete, or update files using diff patches.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ApplyPatchCall.BuilderA builder for ApplyPatchCall.
public final classBetaResponseInputItem.ApplyPatchCall.OperationThe specific create, delete, or update instruction for the apply_patch tool call.
public final classBetaResponseInputItem.ApplyPatchCall.StatusThe status of the apply patch tool call. One of
in_progressorcompleted.public final classBetaResponseInputItem.ApplyPatchCall.AgentThe agent that produced this item.
public final classBetaResponseInputItem.ApplyPatchCall.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.ApplyPatchCall.Operationoperation()The specific create, delete, or update instruction for the apply_patch tool call. final BetaResponseInputItem.ApplyPatchCall.Statusstatus()The status of the apply patch tool call. final JsonValue_type()The type of the item. final Optional<String>id()The unique ID of the apply patch tool call. final Optional<BetaResponseInputItem.ApplyPatchCall.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputItem.ApplyPatchCall.Caller>caller()The execution context that produced this tool call. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseInputItem.ApplyPatchCall.Operation>_operation()Returns the raw JSON value of operation. final JsonField<BetaResponseInputItem.ApplyPatchCall.Status>_status()Returns the raw JSON value of status. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.ApplyPatchCall.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputItem.ApplyPatchCall.Caller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ApplyPatchCall.BuildertoBuilder()final BetaResponseInputItem.ApplyPatchCallvalidate()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.ApplyPatchCall.Builderbuilder()Returns a mutable builder for constructing an instance of ApplyPatchCall. -
-
Method Detail
-
operation
final BetaResponseInputItem.ApplyPatchCall.Operation operation()
The specific create, delete, or update instruction for the apply_patch tool call.
-
status
final BetaResponseInputItem.ApplyPatchCall.Status status()
The status of the apply patch tool call. One of
in_progressorcompleted.
-
_type
final JsonValue _type()
The type of the item. Always
apply_patch_call.Expected to always return the following:
JsonValue.from("apply_patch_call")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. Populated when this item is returned via API.
-
agent
final Optional<BetaResponseInputItem.ApplyPatchCall.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseInputItem.ApplyPatchCall.Caller> caller()
The execution context that produced this tool call.
-
_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.
-
_operation
final JsonField<BetaResponseInputItem.ApplyPatchCall.Operation> _operation()
Returns the raw JSON value of operation.
Unlike operation, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseInputItem.ApplyPatchCall.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.ApplyPatchCall.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.ApplyPatchCall.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputItem.ApplyPatchCall.Builder toBuilder()
-
validate
final BetaResponseInputItem.ApplyPatchCall 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.ApplyPatchCall.Builder builder()
Returns a mutable builder for constructing an instance of ApplyPatchCall.
The following fields are required:
.callId() .operation() .status()
-
-
-
-