Search Results for

    Show / Hide Table of Contents

    Class RunService

    Run: https://platform.openai.com/docs/api-reference/runs

    Inheritance
    object
    CrudServiceBase<OpenAIClient>
    RunService
    Implements
    ICrudService
    IBetaService
    Inherited Members
    CrudServiceBase<OpenAIClient>.client
    CrudServiceBase<OpenAIClient>.ApiKey
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI.Services
    Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
    Syntax
    public sealed class RunService : CrudServiceBase<OpenAIClient>, ICrudService, IBetaService

    Constructors

    | Edit this page View Source

    RunService(OpenAIClient)

    Declaration
    public RunService(OpenAIClient client)
    Parameters
    Type Name Description
    OpenAIClient client

    Properties

    | Edit this page View Source

    Steps

    Declaration
    public RunStepService Steps { get; }
    Property Value
    Type Description
    RunStepService

    Methods

    | Edit this page View Source

    CancelAsync(string, string, RequestOptions)

    Declaration
    public UniTask<Run> CancelAsync(string threadId, string runId, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    string runId
    RequestOptions options
    Returns
    Type Description
    UniTask<Run>
    | Edit this page View Source

    CreateAsync(string, RunRequest, RequestOptions)

    Declaration
    public UniTask<Run> CreateAsync(string threadId, RunRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    RunRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Run>
    | Edit this page View Source

    ListAsync(string, CursorQuery, RequestOptions)

    Declaration
    public UniTask<Queried<Run>> ListAsync(string threadId, CursorQuery query = null, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    CursorQuery query
    RequestOptions options
    Returns
    Type Description
    UniTask<Queried<Run>>
    | Edit this page View Source

    RetrieveAsync(string, string, RequestOptions)

    Declaration
    public UniTask<Run> RetrieveAsync(string threadId, string runId, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    string runId
    RequestOptions options
    Returns
    Type Description
    UniTask<Run>
    | Edit this page View Source

    StreamAsync(string, RunRequest, RequestOptions)

    Declaration
    public IGenerativeStream<AssistantsApiEvent, ThreadMessage> StreamAsync(string threadId, RunRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    RunRequest request
    RequestOptions options
    Returns
    Type Description
    IGenerativeStream<AssistantsApiEvent, ThreadMessage>
    | Edit this page View Source

    SubmitToolOutputsAsync(string, string, ToolOutputSubmissionRequest, RequestOptions)

    Declaration
    public UniTask<Run> SubmitToolOutputsAsync(string threadId, string runId, ToolOutputSubmissionRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    string runId
    ToolOutputSubmissionRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Run>
    | Edit this page View Source

    UpdateAsync(string, string, RunRequest, RequestOptions)

    Declaration
    public UniTask<Run> UpdateAsync(string threadId, string runId, RunRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    string runId
    RunRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Run>

    Implements

    ICrudService
    IBetaService

    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