AssistantsModelFactory.RunStep Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of RunStep.
public static Azure.AI.OpenAI.Assistants.RunStep RunStep (string id = default, Azure.AI.OpenAI.Assistants.RunStepType type = default, string assistantId = default, string threadId = default, string runId = default, Azure.AI.OpenAI.Assistants.RunStepStatus status = default, Azure.AI.OpenAI.Assistants.RunStepDetails stepDetails = default, Azure.AI.OpenAI.Assistants.RunStepError lastError = default, DateTimeOffset createdAt = default, DateTimeOffset? expiredAt = default, DateTimeOffset? completedAt = default, DateTimeOffset? cancelledAt = default, DateTimeOffset? failedAt = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default);
static member RunStep : string * Azure.AI.OpenAI.Assistants.RunStepType * string * string * string * Azure.AI.OpenAI.Assistants.RunStepStatus * Azure.AI.OpenAI.Assistants.RunStepDetails * Azure.AI.OpenAI.Assistants.RunStepError * DateTimeOffset * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.AI.OpenAI.Assistants.RunStep
Public Shared Function RunStep (Optional id As String = Nothing, Optional type As RunStepType = Nothing, Optional assistantId As String = Nothing, Optional threadId As String = Nothing, Optional runId As String = Nothing, Optional status As RunStepStatus = Nothing, Optional stepDetails As RunStepDetails = Nothing, Optional lastError As RunStepError = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional expiredAt As Nullable(Of DateTimeOffset) = Nothing, Optional completedAt As Nullable(Of DateTimeOffset) = Nothing, Optional cancelledAt As Nullable(Of DateTimeOffset) = Nothing, Optional failedAt As Nullable(Of DateTimeOffset) = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing) As RunStep
Parameters
- id
- String
The identifier, which can be referenced in API endpoints.
- type
- RunStepType
The type of run step, which can be either message_creation or tool_calls.
- assistantId
- String
The ID of the assistant associated with the run step.
- threadId
- String
The ID of the thread that was run.
- runId
- String
The ID of the run that this run step is a part of.
- status
- RunStepStatus
The status of this run step.
- stepDetails
- RunStepDetails
The details for this run step.
- lastError
- RunStepError
If applicable, information about the last error encountered by this run step.
- createdAt
- DateTimeOffset
The Unix timestamp, in seconds, representing when this object was created.
- expiredAt
- Nullable<DateTimeOffset>
The Unix timestamp, in seconds, representing when this item expired.
- completedAt
- Nullable<DateTimeOffset>
The Unix timestamp, in seconds, representing when this completed.
- cancelledAt
- Nullable<DateTimeOffset>
The Unix timestamp, in seconds, representing when this was cancelled.
- failedAt
- Nullable<DateTimeOffset>
The Unix timestamp, in seconds, representing when this failed.
- metadata
- IReadOnlyDictionary<String,String>
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
A new RunStep instance for mocking.
Applies to
Azure SDK for .NET