Class BetaManagedAgentsWorkflowRunErrorEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWorkflowRunErrorEventA workflow run met an error, or an error kept a run from being created. A run that ends with a
result.typeoferroremits this event before itsworkflow_run.status_ended, with the sameerror.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWorkflowRunErrorEvent.BuilderA builder for BetaManagedAgentsWorkflowRunErrorEvent.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final BetaManagedAgentsWorkflowRunErrorerror()Why the run did not finish, or was not created. final OffsetDateTimeprocessedAt()Timestamp when this event was processed. final Optional<String>workflowRunId()Identifier of the run that met the error, or nullwhen the error kept a run from being created.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("workflow_run.error")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaManagedAgentsWorkflowRunError>_error()Returns the raw JSON value of error. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<String>_workflowRunId()Returns the raw JSON value of workflowRunId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWorkflowRunErrorEvent.BuildertoBuilder()final BetaManagedAgentsWorkflowRunErrorEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWorkflowRunErrorEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWorkflowRunErrorEvent. -
-
Method Detail
-
error
final BetaManagedAgentsWorkflowRunError error()
Why the run did not finish, or was not created.
-
processedAt
final OffsetDateTime processedAt()
Timestamp when this event was processed.
-
workflowRunId
final Optional<String> workflowRunId()
Identifier of the run that met the error, or
nullwhen the error kept a run from being created.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("workflow_run.error")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_error
final JsonField<BetaManagedAgentsWorkflowRunError> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_processedAt
final JsonField<OffsetDateTime> _processedAt()
Returns the raw JSON value of processedAt.
Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_workflowRunId
final JsonField<String> _workflowRunId()
Returns the raw JSON value of workflowRunId.
Unlike workflowRunId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsWorkflowRunErrorEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsWorkflowRunErrorEvent 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 BetaManagedAgentsWorkflowRunErrorEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWorkflowRunErrorEvent.
The following fields are required:
.id() .error() .processedAt() .workflowRunId()
-
-
-
-