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: docs/ai/ai-extensions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Unified AI building blocks for .NET
3
-
description: Learn how to developer with unified AI building blocks for .NET using Microsoft.Extensions.AI and Microsoft.Extensions.AI.Abstractions libraries
3
+
description: Learn how to develop with unified AI building blocks for .NET using Microsoft.Extensions.AI and Microsoft.Extensions.AI.Abstractions libraries
@@ -52,11 +52,11 @@ var response = await chatClient.CompleteAsync(
52
52
Console.WriteLine(response.Message);
53
53
```
54
54
55
-
These abstractions allow for idiomatic C# code for various scenarios with minimal code changes, whether you're using different services for development or production, addressing hybrid scenarios, or exploring other service providers.
55
+
These abstractions allow for idiomatic C# code for various scenarios with minimal code changes, whether you're using different services for development and production, addressing hybrid scenarios, or exploring other service providers.
56
56
57
57
Library authors who implement these abstractions make their clients interoperable with the broader `Microsoft.Extensions.AI` ecosystem. Service-specific APIs remain accessible if needed, allowing consumers to code against the standard abstractions and pass through to proprietary APIs only when required.
58
58
59
-
As of this preview, `Microsoft.Extensions.AI` provides implementations for the following services through additional packages:
59
+
`Microsoft.Extensions.AI` provides implementations for the following services through additional packages:
60
60
61
61
-[OpenAI](https://aka.ms/meai-openai-nuget)
62
62
-[Azure OpenAI](https://aka.ms/meai-openai-nuget)
@@ -67,7 +67,7 @@ In the future, implementations of these `Microsoft.Extensions.AI` abstractions w
67
67
68
68
## Middleware implementations for AI services
69
69
70
-
Connecting to and using AI services is just one aspect of building robust applications. Production-ready applications require additional features like telemetry, logging, and tool calling capabilities. The `Microsoft.Extensions.AI` abstractions enable developers to easily integrate these components into their applications using familiar patterns.
70
+
Connecting to and using AI services is just one aspect of building robust applications. Production-ready applications require additional features like telemetry, logging, and tool calling capabilities. The `Microsoft.Extensions.AI` abstractions enable you to easily integrate these components into your applications using familiar patterns.
71
71
72
72
The following sample demonstrates how to register an OpenAI `IChatClient`. `IChatClient` allows you to attach the capabilities in a consistent way across various providers.
The capabilities demonstrated above are included in the `Microsoft.Extensions.AI` library, but they are only a small subset of the capabilities that can be layered in with this approach. .NET developers are able to expose many types of middleware to create powerful AI functionality.
83
+
The capabilities demonstrated in this snippet are included in the `Microsoft.Extensions.AI` library, but they are only a small subset of the capabilities that can be layered in with this approach. .NET developers are able to expose many types of middleware to create powerful AI functionality.
84
84
85
-
## Building with Microsoft.Extensions.AI
85
+
## Build with Microsoft.Extensions.AI
86
86
87
87
You can start building with `Microsoft.Extensions.AI` in the following ways:
88
88
89
89
-**Library Developers**: If you own libraries that provide clients for AI services, consider implementing the interfaces in your libraries. This allows users to easily integrate your NuGet package via the abstractions.
90
90
-**Service Consumers**: If you're developing libraries that consume AI services, use the abstractions instead of hardcoding to a specific AI service. This approach gives your consumers the flexibility to choose their preferred service.
91
91
-**Application Developers**: Use the abstractions to simplify integration into your apps. This enables portability across models and services, facilitates testing and mocking, leverages middleware provided by the ecosystem, and maintains a consistent API throughout your app, even if you use different services in different parts of your application.
92
92
-**Ecosystem Contributors**: If you're interested in contributing to the ecosystem, consider writing custom middleware components.
93
-
We have a set of samples in the [dotnet/ai-samples](https://aka.ms/meai-samples) GitHub repository to help you get started.
93
+
To get started, see the samples in the [dotnet/ai-samples](https://aka.ms/meai-samples) GitHub repository.
94
94
95
95
For an end-to-end sample using `Microsoft.Extensions.AI`, see [eShopSupport](https://github.com/dotnet/eShopSupport).
96
96
97
-
## Next Steps
97
+
## Next steps
98
98
99
-
-[Build an AI chat app with .NET](/dotnet/ai/quickstarts/get-started-openai)
99
+
-[Build an AI chat app with .NET](./quickstarts/get-started-openai.md)
100
100
-[Quickstart - Summarize text using Azure AI chat app with .NET](./quickstarts/quickstart-openai-summarize-text.md)
0 commit comments