ChatCompletionAgent Constructors
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.
Overloads
ChatCompletionAgent() |
Initializes a new instance of the ChatCompletionAgent class. |
ChatCompletionAgent(PromptTemplateConfig, IPromptTemplateFactory) |
Initializes a new instance of the ChatCompletionAgent class from a PromptTemplateConfig. |
ChatCompletionAgent()
Initializes a new instance of the ChatCompletionAgent class.
public ChatCompletionAgent();
Public Sub New ()
Applies to
ChatCompletionAgent(PromptTemplateConfig, IPromptTemplateFactory)
Initializes a new instance of the ChatCompletionAgent class from a PromptTemplateConfig.
public ChatCompletionAgent(Microsoft.SemanticKernel.PromptTemplateConfig templateConfig, Microsoft.SemanticKernel.IPromptTemplateFactory templateFactory);
new Microsoft.SemanticKernel.Agents.ChatCompletionAgent : Microsoft.SemanticKernel.PromptTemplateConfig * Microsoft.SemanticKernel.IPromptTemplateFactory -> Microsoft.SemanticKernel.Agents.ChatCompletionAgent
Public Sub New (templateConfig As PromptTemplateConfig, templateFactory As IPromptTemplateFactory)
Parameters
- templateConfig
- PromptTemplateConfig
The prompt template configuration.
- templateFactory
- IPromptTemplateFactory
The prompt template factory used to produce the IPromptTemplate for the agent.