-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
.NETagentsIssues related to single agentsIssues related to single agentsdocumentationImprovements or additions to documentationImprovements or additions to documentationsamplesIssue relates to the samplesIssue relates to the samplesv1.0Features being tracked for the version 1.0 GAFeatures being tracked for the version 1.0 GA
Description
Currently, we have two ways of constructing agents in samples:
// way 1
new AzureOpenAIClient(new Uri(endpoint), new DefaultAzureCredential())
.GetChatClient(deploymentName)
.AsIChatClient()
.AsAIAgent("You are a helpful assistant");
// way 2
new AzureOpenAIClient(new Uri(endpoint), new DefaultAzureCredential())
.GetChatClient(deploymentName)
.AsAIAgent("You are a helpful assistant");
``
Which way is used has implications for the required dependencies, since the relevant extension methods live in different package.
To make things simpler for users, we should consistently follow pattern 2, since it reduces the number of lines of code and reduces the number of required dependencies as well.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
.NETagentsIssues related to single agentsIssues related to single agentsdocumentationImprovements or additions to documentationImprovements or additions to documentationsamplesIssue relates to the samplesIssue relates to the samplesv1.0Features being tracked for the version 1.0 GAFeatures being tracked for the version 1.0 GA
Type
Projects
Status
Planned