ChatCompletionAgent(Kernel, String, PromptExecutionSettings) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- instructions
- String
The instructions for the agent.
- executionSettings
- PromptExecutionSettings
The optional execution settings for the agent. If not provided, default settings will be used.