Class BetaResponseApplyPatchToolCall
-
- All Implemented Interfaces:
public final class BetaResponseApplyPatchToolCallA tool call that applies file diffs by creating, deleting, or updating files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseApplyPatchToolCall.BuilderA builder for BetaResponseApplyPatchToolCall.
public final classBetaResponseApplyPatchToolCall.OperationOne of the create_file, delete_file, or update_file operations applied via apply_patch.
public final classBetaResponseApplyPatchToolCall.StatusThe status of the apply patch tool call. One of
in_progressorcompleted.public final classBetaResponseApplyPatchToolCall.AgentThe agent that produced this item.
public final classBetaResponseApplyPatchToolCall.CallerThe execution context that produced this tool call.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the apply patch tool call. final StringcallId()The unique ID of the apply patch tool call generated by the model. final BetaResponseApplyPatchToolCall.Operationoperation()One of the create_file, delete_file, or update_file operations applied via apply_patch. final BetaResponseApplyPatchToolCall.Statusstatus()The status of the apply patch tool call. final JsonValue_type()The type of the item. final Optional<BetaResponseApplyPatchToolCall.Agent>agent()The agent that produced this item. final Optional<BetaResponseApplyPatchToolCall.Caller>caller()The execution context that produced this tool call. final Optional<String>createdBy()The ID of the entity that created this tool call. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseApplyPatchToolCall.Operation>_operation()Returns the raw JSON value of operation. final JsonField<BetaResponseApplyPatchToolCall.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseApplyPatchToolCall.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseApplyPatchToolCall.Caller>_caller()Returns the raw JSON value of caller. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final Map<String, JsonValue>_additionalProperties()final BetaResponseApplyPatchToolCall.BuildertoBuilder()final BetaResponseApplyPatchToolCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseApplyPatchToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseApplyPatchToolCall. -
-
Method Detail
-
id
final String id()
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
operation
final BetaResponseApplyPatchToolCall.Operation operation()
One of the create_file, delete_file, or update_file operations applied via apply_patch.
-
status
final BetaResponseApplyPatchToolCall.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).
-
agent
final Optional<BetaResponseApplyPatchToolCall.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseApplyPatchToolCall.Caller> caller()
The execution context that produced this tool call.
-
_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.
-
_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<BetaResponseApplyPatchToolCall.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<BetaResponseApplyPatchToolCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseApplyPatchToolCall.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<BetaResponseApplyPatchToolCall.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<String> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseApplyPatchToolCall.Builder toBuilder()
-
validate
final BetaResponseApplyPatchToolCall 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 BetaResponseApplyPatchToolCall.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseApplyPatchToolCall.
The following fields are required:
.id() .callId() .operation() .status()
-
-
-
-