Table of Contents

Interface IThreadService

Namespace
OpenAI.Interfaces
Assembly
AntRunnerLib.dll
public interface IThreadService

Methods

ModifyThread(String, ModifyThreadRequest, CancellationToken)

Modifies a thread.

Task<ThreadResponse> ModifyThread(string threadId, ModifyThreadRequest requestBody, CancellationToken cancellationToken = null)

Parameters

threadId System.String
requestBody ModifyThreadRequest
cancellationToken CancellationToken

Returns

Task<ThreadResponse>

ThreadCreate(ThreadCreateRequest, CancellationToken)

Create a thread.

Task<ThreadResponse> ThreadCreate(ThreadCreateRequest request = null, CancellationToken cancellationToken = null)

Parameters

request ThreadCreateRequest
cancellationToken CancellationToken

Returns

Task<ThreadResponse>

ThreadDelete(String, CancellationToken)

Delete a thread.

Task<DeletionStatusResponse> ThreadDelete(string threadId, CancellationToken cancellationToken = null)

Parameters

threadId System.String
cancellationToken CancellationToken

Returns

Task<DeletionStatusResponse>

ThreadRetrieve(String, CancellationToken)

Retrieves a thread.

Task<ThreadResponse> ThreadRetrieve(string threadId, CancellationToken cancellationToken = null)

Parameters

threadId System.String
cancellationToken CancellationToken

Returns

Task<ThreadResponse>