Search Results for

    Show / Hide Table of Contents

    Class MessageService

    Messages: https://platform.openai.com/docs/api-reference/messages

    Inheritance
    object
    CrudServiceBase<OpenAIClient>
    MessageService
    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 MessageService : CrudServiceBase<OpenAIClient>, ICrudService, IBetaService

    Constructors

    | Edit this page View Source

    MessageService(OpenAIClient)

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

    Methods

    | Edit this page View Source

    CreateAsync(string, ThreadMessageRequest, RequestOptions)

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

    DeleteAsync(string, string, RequestOptions)

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

    ListAsync(string, CursorQuery, RequestOptions)

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

    ListFilesAsync(string, string, CursorQuery, RequestOptions)

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

    RetrieveAsync(string, string, RequestOptions)

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

    RetrieveFileAsync(string, string, string, RequestOptions)

    Declaration
    public UniTask<MessageFile> RetrieveFileAsync(string threadId, string messageId, string fileId, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    string messageId
    string fileId
    RequestOptions options
    Returns
    Type Description
    UniTask<MessageFile>
    | Edit this page View Source

    UpdateAsync(string, string, ThreadMessageRequest, RequestOptions)

    Declaration
    public UniTask<ThreadMessage> UpdateAsync(string threadId, string messageId, ThreadMessageRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    string threadId
    string messageId
    ThreadMessageRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<ThreadMessage>

    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