RunStep Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. RunStep
- com.
Implements
public final class RunStep
implements JsonSerializable<RunStep>
Detailed information about a single step of an agent thread run.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
| String |
getAssistantId()
Get the assistant |
|
Offset |
getCancelledAt()
Get the cancelled |
|
Offset |
getCompletedAt()
Get the completed |
|
Offset |
getCreatedAt()
Get the created |
|
Offset |
getExpiredAt()
Get the expired |
|
Offset |
getFailedAt()
Get the failed |
| String |
getId()
Get the id property: The identifier, which can be referenced in API endpoints. |
|
Run |
getLastError()
Get the last |
| Map<String,String> |
getMetadata()
Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. |
| String |
getObject()
Get the object property: The object type, which is always 'thread. |
| String |
getRunId()
Get the run |
|
Run |
getStatus()
Get the status property: The status of this run step. |
|
Run |
getStepDetails()
Get the step |
| String |
getThreadId()
Get the thread |
|
Run |
getType()
Get the type property: The type of run step, which can be either message_creation or tool_calls. |
|
Run |
getUsage()
Get the usage property: Usage statistics related to the run step. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static RunStep fromJson(JsonReader jsonReader)
Reads an instance of RunStep from the JsonReader.
Parameters:
Returns:
Throws:
getAssistantId
public String getAssistantId()
Get the assistantId property: The ID of the agent associated with the run step.
Returns:
getCancelledAt
public OffsetDateTime getCancelledAt()
Get the cancelledAt property: The Unix timestamp, in seconds, representing when this was cancelled.
Returns:
getCompletedAt
public OffsetDateTime getCompletedAt()
Get the completedAt property: The Unix timestamp, in seconds, representing when this completed.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp, in seconds, representing when this object was created.
Returns:
getExpiredAt
public OffsetDateTime getExpiredAt()
Get the expiredAt property: The Unix timestamp, in seconds, representing when this item expired.
Returns:
getFailedAt
public OffsetDateTime getFailedAt()
Get the failedAt property: The Unix timestamp, in seconds, representing when this failed.
Returns:
getId
public String getId()
Get the id property: The identifier, which can be referenced in API endpoints.
Returns:
getLastError
public RunStepError getLastError()
Get the lastError property: If applicable, information about the last error encountered by this run step.
Returns:
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.
Returns:
getObject
public String getObject()
Get the object property: The object type, which is always 'thread.run.step'.
Returns:
getRunId
public String getRunId()
Get the runId property: The ID of the run that this run step is a part of.
Returns:
getStatus
public RunStepStatus getStatus()
Get the status property: The status of this run step.
Returns:
getStepDetails
public RunStepDetails getStepDetails()
Get the stepDetails property: The details for this run step.
Returns:
getThreadId
public String getThreadId()
Get the threadId property: The ID of the thread that was run.
Returns:
getType
public RunStepType getType()
Get the type property: The type of run step, which can be either message_creation or tool_calls.
Returns:
getUsage
public RunStepCompletionUsage getUsage()
Get the usage property: Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.
Returns: