Search Results for

    Show / Hide Table of Contents

    Class RunBase

    Base class for Run and RunStep.

    Inheritance
    object
    OpenAIObject
    RunBase
    Run
    RunStep
    Inherited Members
    OpenAIObject.Id
    OpenAIObject.Object
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
    Syntax
    public class RunBase : OpenAIObject

    Properties

    | Edit this page View Source

    AssistantId

    The ID of the AssistantObject used for execution of this run.

    Declaration
    [JsonProperty("assistant_id")]
    public string AssistantId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    CancelledAt

    The Unix timestamp (in seconds) for when the run was cancelled.

    Declaration
    [JsonProperty("cancelled_at")]
    public UnixTime? CancelledAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    CompletedAt

    The Unix timestamp (in seconds) for when the run was Completed.

    Declaration
    [JsonProperty("completed_at")]
    public UnixTime? CompletedAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    ExpiresAt

    The Unix timestamp (in seconds) for when the run will expire.

    Declaration
    [JsonProperty("expires_at")]
    public UnixTime? ExpiresAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    FailedAt

    The Unix timestamp (in seconds) for when the run Failed.

    Declaration
    [JsonProperty("failed_at")]
    public UnixTime? FailedAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    LastError

    The last error associated with this run. Will be null if there are no errors.

    Declaration
    [JsonProperty("last_error")]
    public BackendException LastError { get; set; }
    Property Value
    Type Description
    BackendException
    | Edit this page View Source

    Metadata

    Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.

    Declaration
    [JsonProperty("metadata")]
    public ServerDictionary Metadata { get; set; }
    Property Value
    Type Description
    ServerDictionary
    | Edit this page View Source

    StartedAt

    The Unix timestamp (in seconds) for when the run was started.

    Declaration
    [JsonProperty("started_at")]
    public UnixTime? StartedAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    Status

    The status of the run, which can be either Queued, In_Progress, Requires_Action, Cancelling, Cancelled, Failed, Completed, or Expired.

    Declaration
    [JsonProperty("status")]
    public RunStatus? Status { get; set; }
    Property Value
    Type Description
    RunStatus?
    | Edit this page View Source

    ThreadId

    The ID of the thread that was executed on as a part of this run.

    Declaration
    [JsonProperty("thread_id")]
    public string ThreadId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Usage

    How much tokens were used for the request.

    Declaration
    [JsonProperty("usage")]
    public Usage Usage { get; set; }
    Property Value
    Type Description
    Usage

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation