Share via


CopilotStudioAgent(CopilotClient, ILoggerFactory) Constructor

Definition

Initializes a new instance of the CopilotStudioAgent class.

public CopilotStudioAgent(Microsoft.Agents.CopilotStudio.Client.CopilotClient client, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.Agents.AI.CopilotStudio.CopilotStudioAgent : Microsoft.Agents.CopilotStudio.Client.CopilotClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Agents.AI.CopilotStudio.CopilotStudioAgent
Public Sub New (client As CopilotClient, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

client
CopilotClient

A client used to interact with the Copilot Agent service.

loggerFactory
ILoggerFactory

Optional logger factory to use for logging.

Applies to