You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent-framework/tutorials/quick-start.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,22 @@ Before you begin, ensure you have the following:
30
30
**Note**: This demo uses Azure CLI credentials for authentication. Make sure you're logged in with `az login` and have access to the Azure OpenAI resource. For more information, see the [Azure CLI documentation](/cli/azure/authenticate-azure-cli-interactively). It is also possible to replace the `AzureCliCredential` with an `ApiKeyCredential` if you
31
31
have an api key and do not wish to use role based authentication, in which case `az login` is not required.
32
32
33
-
## Running a Basic Agent Sample
33
+
## Installing Packages
34
34
35
-
This sample demonstrates how to create and use a simple AI agent with Azure OpenAI Chat Completion as the backend. It will create a basic agent using `AzureOpenAIClient` with `gpt-4o-mini` and custom instructions.
35
+
Packages will be published to [NuGet Gallery | Microsoft.Agent.AI](https://www.nuget.org/packages/Microsoft.Agent.AI).
36
36
37
-
First, install the following nuget packages into your application.
37
+
First, add the following Microsoft Agent Framework NuGet packages into your application, using the following commands:
38
38
39
39
```powershell
40
40
dotnet add package Azure.AI.OpenAI
41
41
dotnet add package Azure.Identity
42
42
dotnet add package Microsoft.Agents.AI.OpenAI
43
43
```
44
44
45
+
## Running a Basic Agent Sample
46
+
47
+
This sample demonstrates how to create and use a simple AI agent with Azure OpenAI Chat Completion as the backend. It will create a basic agent using `AzureOpenAIClient` with `gpt-4o-mini` and custom instructions.
48
+
45
49
### Sample Code
46
50
47
51
Make sure to replace `https://your-resource.openai.azure.com/` with the endpoint of your Azure OpenAI resource.
@@ -62,10 +66,9 @@ AIAgent agent = new AzureOpenAIClient(
62
66
Console.WriteLine(awaitagent.RunAsync("Tell me a joke about a pirate."));
63
67
```
64
68
65
-
## (Optional) Installing Packages
69
+
## (Optional) Installing Nightly Packages
66
70
67
-
Packages will be published to [NuGet](https://www.nuget.org/) when the Agent Framework public preview is released.
68
-
In the meantime nightly builds of the Agent Framework are available [here](https://github.com/orgs/microsoft/packages?repo_name=agent-framework).
71
+
If you need to get a package containing the latest enhancements or fixes nightly builds of the Agent Framework are available [here](https://github.com/orgs/microsoft/packages?repo_name=agent-framework).
69
72
70
73
To download nightly builds follow the following steps:
71
74
@@ -95,6 +98,7 @@ To download nightly builds follow the following steps:
95
98
</packageSource>
96
99
<packageSource key="github">
97
100
<package pattern="*nightly"/>
101
+
<package pattern="Microsoft.Agents.AI" />
98
102
</packageSource>
99
103
</packageSourceMapping>
100
104
@@ -110,7 +114,7 @@ To download nightly builds follow the following steps:
110
114
* If you place this file in your project folder make sure to have Git (or whatever source control you use) ignore it.
111
115
* For more information on where to store this file go [here](/nuget/reference/nuget-config-file).
112
116
1. You can now add packages from the nightly build to your project.
113
-
* E.g. use this command `dotnet add package Microsoft.Agents.AI --version 0.0.1-nightly-250731.6-alpha`
117
+
* E.g. use this command `dotnet add package Microsoft.Agents.AI`
114
118
1. And the latest package release can be referenced in the project like this:
0 commit comments