Udostępnij za pośrednictwem


ChatCompletionAgent(Kernel, String, PromptExecutionSettings) Constructor

Definition

Initializes a new instance of the ChatCompletionAgent class.

public ChatCompletionAgent (Microsoft.SemanticKernel.Kernel kernel, string instructions, Microsoft.SemanticKernel.PromptExecutionSettings? executionSettings = default);
new Microsoft.SemanticKernel.Experimental.Agents.ChatCompletionAgent : Microsoft.SemanticKernel.Kernel * string * Microsoft.SemanticKernel.PromptExecutionSettings -> Microsoft.SemanticKernel.Experimental.Agents.ChatCompletionAgent
Public Sub New (kernel As Kernel, instructions As String, Optional executionSettings As PromptExecutionSettings = Nothing)

Parameters

kernel
Kernel

The Kernel containing services, plugins, and other state for use by the agent.

instructions
String

The instructions for the agent.

executionSettings
PromptExecutionSettings

The optional execution settings for the agent. If not provided, default settings will be used.

Applies to