Share via


LoggingChatClient(IChatClient, ILogger) Constructor

Definition

Initializes a new instance of the LoggingChatClient class.

public:
 LoggingChatClient(Microsoft::Extensions::AI::IChatClient ^ innerClient, Microsoft::Extensions::Logging::ILogger ^ logger);
public LoggingChatClient (Microsoft.Extensions.AI.IChatClient innerClient, Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.Extensions.AI.LoggingChatClient : Microsoft.Extensions.AI.IChatClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Extensions.AI.LoggingChatClient
Public Sub New (innerClient As IChatClient, logger As ILogger)

Parameters

innerClient
IChatClient

The underlying IChatClient.

logger
ILogger

An ILogger instance that will be used for all logging.

Applies to