io.github.sashirestela.openai.domain.assistant.ThreadRunStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-openai Show documentation
Show all versions of simple-openai Show documentation
A Java library to use the OpenAI API in the simplest possible way.
package io.github.sashirestela.openai.domain.assistant;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.github.sashirestela.openai.common.Usage;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Map;
@NoArgsConstructor
@Getter
@ToString
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class ThreadRunStep {
private String id;
private String object;
private Integer createdAt;
private String assistantId;
private String threadId;
private String runId;
private RunStepType type;
private RunStepStatus status;
private StepDetail stepDetails;
private LastError lastError;
private Integer expiredAt;
private Integer cancelledAt;
private Integer failedAt;
private Integer completedAt;
private Map metadata;
private Usage usage;
public enum RunStepStatus {
@JsonProperty("in_progress")
IN_PROGRESS,
@JsonProperty("cancelled")
CANCELLED,
@JsonProperty("failed")
FAILED,
@JsonProperty("completed")
COMPLETED,
@JsonProperty("expired")
EXPIRED;
}
}