Package ai.extend.types
Class ParseStepRun
- java.lang.Object
-
- ai.extend.types.ParseStepRun
-
- All Implemented Interfaces:
IStepRunBase
public final class ParseStepRun extends java.lang.Object implements IStepRunBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParseStepRun._FinalStagestatic classParseStepRun.Builderstatic interfaceParseStepRun.IdStagestatic interfaceParseStepRun.StatusStagestatic interfaceParseStepRun.StepStagestatic interfaceParseStepRun.WorkflowRunIdStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParseStepRun.IdStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.List<FileSummary>getFiles()java.lang.StringgetId()java.lang.StringgetObject()java.util.Optional<ParseResult>getResult()StepRunBaseStatusgetStatus()ParseStepRunStepgetStep()java.lang.StringgetWorkflowRunId()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getObject
public java.lang.String getObject()
- Specified by:
getObjectin interfaceIStepRunBase- Returns:
- The type of object. In this case, it will always be
"workflow_step_run".
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceIStepRunBase- Returns:
- The ID of the workflow step run.
Example:
"workflow_step_run_xKm9pNv3qWsY_jL2tR5Dh"
-
getWorkflowRunId
public java.lang.String getWorkflowRunId()
- Specified by:
getWorkflowRunIdin interfaceIStepRunBase- Returns:
- The ID of the parent workflow run.
Example:
"workflow_run_xKm9pNv3qWsY_jL2tR5Dh"
-
getStatus
public StepRunBaseStatus getStatus()
- Specified by:
getStatusin interfaceIStepRunBase- Returns:
- The status of the workflow step run:
"PENDING"- The step run is waiting to be executed"WAITING"- The step run is waiting for a dependency to complete"PROCESSING"- The step run is currently executing"PROCESSED"- The step run completed successfully"FAILED"- The step run encountered an error"CANCELLED"- The step run was cancelled
-
getFiles
public java.util.List<FileSummary> getFiles()
- Specified by:
getFilesin interfaceIStepRunBase- Returns:
- The files associated with this step run.
-
getStep
public ParseStepRunStep getStep()
-
getResult
public java.util.Optional<ParseResult> getResult()
- Returns:
- The result of this parse step. Currently,
resultis always present for returned step runs. It is nullable to allow for future support of returning step runs with non-successful statuses.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ParseStepRun.IdStage builder()
-
-