AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class ApiClient<TSelf, TSettings>

    Inheritance
    object
    RESTClient
    CRUDClient<TSelf>
    ApiClient<TSelf, TSettings>
    Anthropic
    ElevenLabs
    GenerativeAI
    GroqCloud
    MicrosoftAzure
    Mubert
    Ollama
    OpenAI
    OpenRouter
    PixelLab
    Implements
    IApiClient
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public abstract class ApiClient<TSelf, TSettings> : CRUDClient<TSelf>, IApiClient where TSelf : ApiClient<TSelf, TSettings>, new() where TSettings : ApiClientSettings
    Type Parameters
    Name Description
    TSelf
    TSettings

    Constructors

    ApiClient(Api)

    Declaration
    protected ApiClient(Api Api)
    Parameters
    Type Name Description
    Api Api

    Properties

    Api

    Declaration
    public Api Api { get; }
    Property Value
    Type Description
    Api

    ChatStreamParser

    Declaration
    public IChatStreamParser ChatStreamParser { get; }
    Property Value
    Type Description
    IChatStreamParser

    DefaultInstance

    Declaration
    public static TSelf DefaultInstance { get; }
    Property Value
    Type Description
    TSelf

    Settings

    Declaration
    public TSettings Settings { get; }
    Property Value
    Type Description
    TSettings

    Methods

    CreateCRUDClientSettings()

    Declaration
    protected abstract CRUDClientSettings CreateCRUDClientSettings()
    Returns
    Type Description
    CRUDClientSettings

    CreateChatStreamParser()

    Declaration
    protected virtual IChatStreamParser CreateChatStreamParser()
    Returns
    Type Description
    IChatStreamParser

    CreateClientSettings()

    Declaration
    protected override CRUDClientSettings CreateClientSettings()
    Returns
    Type Description
    CRUDClientSettings
    Overrides
    Glitch9.IO.Networking.RESTApi.CRUDClient<TSelf>.CreateClientSettings()

    CreateJsonSerializerSettingsData()

    Declaration
    protected abstract ApiClient<TSelf, TSettings>.JsonSerializerSettingsData CreateJsonSerializerSettingsData()
    Returns
    Type Description
    ApiClient<TSelf, TSettings>.JsonSerializerSettingsData

    GetApiKey(string)

    Declaration
    public override string GetApiKey(string serviceName = null)
    Parameters
    Type Name Description
    string serviceName
    Returns
    Type Description
    string
    Overrides
    Glitch9.IO.Networking.RESTApi.CRUDClient<TSelf>.GetApiKey(string)

    Implements

    IApiClient
    In this article
    Back to top Generated by DocFX