RunStatus Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. agents. persistent. models. RunStatus
- com.
- com.
public final class RunStatus
extends ExpandableStringEnum<RunStatus>
Possible values for the status of an agent thread run.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Run |
CANCELLED
Represents a run that has been cancelled. |
|
static final
Run |
CANCELLING
Represents a run that is in the process of cancellation. |
|
static final
Run |
COMPLETED
Represents a run that successfully completed. |
|
static final
Run |
EXPIRED
Represents a run that expired before it could otherwise finish. |
|
static final
Run |
FAILED
Represents a run that failed. |
|
static final
Run |
IN_PROGRESS
Represents a run that is in progress. |
|
static final
Run |
QUEUED
Represents a run that is queued to start. |
|
static final
Run |
REQUIRES_ACTION
Represents a run that needs another operation, such as tool output submission, to continue. |
Constructor Summary
| Constructor | Description |
|---|---|
| RunStatus() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Run |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Run |
fromString(String name)
Creates or finds a Run |
|
static
Collection<Run |
values()
Gets known Run |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CANCELLED
public static final RunStatus CANCELLED
Represents a run that has been cancelled.
CANCELLING
public static final RunStatus CANCELLING
Represents a run that is in the process of cancellation.
COMPLETED
public static final RunStatus COMPLETED
Represents a run that successfully completed.
EXPIRED
public static final RunStatus EXPIRED
Represents a run that expired before it could otherwise finish.
FAILED
public static final RunStatus FAILED
Represents a run that failed.
IN_PROGRESS
public static final RunStatus IN_PROGRESS
Represents a run that is in progress.
QUEUED
public static final RunStatus QUEUED
Represents a run that is queued to start.
REQUIRES_ACTION
public static final RunStatus REQUIRES_ACTION
Represents a run that needs another operation, such as tool output submission, to continue.
Constructor Details
RunStatus
@Deprecated
public RunStatus()
Deprecated
Creates a new instance of RunStatus value.
Method Details
fromString
public static RunStatus fromString(String name)
Creates or finds a RunStatus from its string representation.
Parameters:
Returns:
values
public static Collection<RunStatus> values()
Gets known RunStatus values.
Returns: