Share via


ChromaClient Constructors

Definition

Overloads

ChromaClient(String, ILoggerFactory)

Initializes a new instance of the ChromaClient class.

ChromaClient(HttpClient, String, ILoggerFactory)

Initializes a new instance of the ChromaClient class.

ChromaClient(String, ILoggerFactory)

Initializes a new instance of the ChromaClient class.

public ChromaClient (string endpoint, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Chroma.ChromaClient : string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Chroma.ChromaClient
Public Sub New (endpoint As String, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

endpoint
String

Chroma server endpoint URL.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Applies to

ChromaClient(HttpClient, String, ILoggerFactory)

Initializes a new instance of the ChromaClient class.

public ChromaClient (System.Net.Http.HttpClient httpClient, string? endpoint = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Chroma.ChromaClient : System.Net.Http.HttpClient * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Chroma.ChromaClient
Public Sub New (httpClient As HttpClient, Optional endpoint As String = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

httpClient
HttpClient

The HttpClient instance used for making HTTP requests.

endpoint
String

Chroma server endpoint URL.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Exceptions

Occurs when HttpClient doesn't have base address and endpoint parameter is not provided.

Applies to