Search Results for

    Show / Hide Table of Contents

    Class OpenAIObject

    Base class for all OpenAI API response objects. Provides common properties shared across different OpenAI API endpoints.

    Inheritance
    object
    OpenAIObject
    Assistant
    Batch
    ChatCompletionBase<TChoice>
    FineTuningEvent
    FineTuningJob
    MessageFile
    ModerationResponse
    OpenAIModelInfo
    OpenAIVectorStore
    RunBase
    RunStepDelta
    ThreadMessageDelta
    VectorStoreFile
    VectorStoreFilesBatch
    Inherited Members
    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.dll
    Syntax
    public abstract class OpenAIObject

    Properties

    | Edit this page View Source

    Id

    The unique identifier for this object. This ID can be used to reference the object in subsequent API calls.

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

    Object

    The object type, which indicates what kind of object this is. Examples: "chat.completion", "embedding", "image", "model", etc. This field helps distinguish between different response types in the OpenAI API.

    Declaration
    [JsonProperty("object")]
    public string Object { get; set; }
    Property Value
    Type Description
    string

    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