Class BetaResponseApplyPatchToolCallOutput
-
- All Implemented Interfaces:
public final class BetaResponseApplyPatchToolCallOutputThe output emitted by an apply patch tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseApplyPatchToolCallOutput.BuilderA builder for BetaResponseApplyPatchToolCallOutput.
public final classBetaResponseApplyPatchToolCallOutput.StatusThe status of the apply patch tool call output. One of
completedorfailed.public final classBetaResponseApplyPatchToolCallOutput.AgentThe agent that produced this item.
public final classBetaResponseApplyPatchToolCallOutput.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 output. final StringcallId()The unique ID of the apply patch tool call generated by the model. final BetaResponseApplyPatchToolCallOutput.Statusstatus()The status of the apply patch tool call output. final JsonValue_type()The type of the item. final Optional<BetaResponseApplyPatchToolCallOutput.Agent>agent()The agent that produced this item. final Optional<BetaResponseApplyPatchToolCallOutput.Caller>caller()The execution context that produced this tool call. final Optional<String>createdBy()The ID of the entity that created this tool call output. final Optional<String>output()Optional textual output returned by the apply patch tool. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseApplyPatchToolCallOutput.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseApplyPatchToolCallOutput.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseApplyPatchToolCallOutput.Caller>_caller()Returns the raw JSON value of caller. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final JsonField<String>_output()Returns the raw JSON value of output. final Map<String, JsonValue>_additionalProperties()final BetaResponseApplyPatchToolCallOutput.BuildertoBuilder()final BetaResponseApplyPatchToolCallOutputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseApplyPatchToolCallOutput.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseApplyPatchToolCallOutput. -
-
Method Detail
-
id
final String id()
The unique ID of the apply patch tool call output. Populated when this item is returned via API.
-
status
final BetaResponseApplyPatchToolCallOutput.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).
-
agent
final Optional<BetaResponseApplyPatchToolCallOutput.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseApplyPatchToolCallOutput.Caller> caller()
The execution context that produced this tool call.
-
createdBy
final Optional<String> createdBy()
The ID of the entity that created this tool call output.
-
_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.
-
_status
final JsonField<BetaResponseApplyPatchToolCallOutput.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<BetaResponseApplyPatchToolCallOutput.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<BetaResponseApplyPatchToolCallOutput.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.
-
_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 BetaResponseApplyPatchToolCallOutput.Builder toBuilder()
-
validate
final BetaResponseApplyPatchToolCallOutput 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 BetaResponseApplyPatchToolCallOutput.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseApplyPatchToolCallOutput.
The following fields are required:
.id() .callId() .status()
-
-
-
-