Class RunService
Inheritance
object
RunService
Assembly: .dll
Syntax
public class RunService : CRUDServiceBase<OpenAI>
Constructors
Declaration
public RunService(OpenAI client, params RESTHeader[] extraHeaders)
Parameters
Type |
Name |
Description |
OpenAI |
client |
|
RESTHeader[] |
extraHeaders |
|
Properties
Steps
Declaration
public RunStepService Steps { get; }
Property Value
Methods
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> |
|
CreateAsync(string, RunRequest)
Declaration
public UniTask<Run> CreateAsync(string threadId, RunRequest req)
Parameters
Type |
Name |
Description |
string |
threadId |
|
RunRequest |
req |
|
Returns
Type |
Description |
UniTask<Run> |
|
ListAsync(string, CursorQuery, RequestOptions)
Declaration
public UniTask<QueryResponse<Run>> ListAsync(string threadId, CursorQuery query = null, RequestOptions options = null)
Parameters
Type |
Name |
Description |
string |
threadId |
|
CursorQuery |
query |
|
RequestOptions |
options |
|
Returns
Type |
Description |
UniTask<QueryResponse<Run>> |
|
Retrieve(string, string, RequestOptions)
Declaration
public UniTask<Run> Retrieve(string threadId, string runId, RequestOptions options = null)
Parameters
Type |
Name |
Description |
string |
threadId |
|
string |
runId |
|
RequestOptions |
options |
|
Returns
Type |
Description |
UniTask<Run> |
|
Declaration
public UniTask<Run> SubmitToolOutputsAsync(string threadId, string runId, ToolOutputsRequest req)
Parameters
Returns
Type |
Description |
UniTask<Run> |
|
UpdateAsync(string, string, RunRequest)
Declaration
public UniTask<Run> UpdateAsync(string threadId, string runId, RunRequest req)
Parameters
Type |
Name |
Description |
string |
threadId |
|
string |
runId |
|
RunRequest |
req |
|
Returns
Type |
Description |
UniTask<Run> |
|