Interface IAssistantService
- Namespace
- OpenAI.Interfaces
- Assembly
- AntRunnerLib.dll
public interface IAssistantService
Methods
AssistantCreate(AssistantCreateRequest, String, CancellationToken)
Create an assistant with a model and instructions.
Task<AssistantResponse> AssistantCreate(AssistantCreateRequest request, string modelId = null, CancellationToken cancellationToken = null)
Parameters
requestAssistantCreateRequestmodelIdSystem.StringID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
cancellationTokenCancellationToken
Returns
- Task<AssistantResponse>
AssistantDelete(String, CancellationToken)
Delete an assistant.
Task<DeletionStatusResponse> AssistantDelete(string assistantId, CancellationToken cancellationToken = null)
Parameters
assistantIdSystem.StringThe ID of the assistant to delete.
cancellationTokenCancellationToken
Returns
- Task<DeletionStatusResponse>
AssistantList(PaginationRequest, CancellationToken)
Returns a list of assistants.
Task<AssistantListResponse> AssistantList(PaginationRequest request = null, CancellationToken cancellationToken = null)
Parameters
requestPaginationRequestcancellationTokenCancellationToken
Returns
- Task<AssistantListResponse>
AssistantModify(String, AssistantModifyRequest, CancellationToken)
Modifies an assistant.
Task<AssistantResponse> AssistantModify(string assistantId, AssistantModifyRequest request, CancellationToken cancellationToken = null)
Parameters
assistantIdSystem.StringThe ID of the assistant to modify.
requestAssistantModifyRequestcancellationTokenCancellationToken
Returns
- Task<AssistantResponse>
AssistantRetrieve(String, CancellationToken)
Retrieves an assistant.
Task<AssistantResponse> AssistantRetrieve(string assistantId, CancellationToken cancellationToken = null)
Parameters
assistantIdSystem.StringThe ID of the assistant to retrieve.
cancellationTokenCancellationToken
Returns
- Task<AssistantResponse>