AutoGen.Mistral provides the following agent(s) to connect to Mistral.AI platform.
To get started with AutoGen.Mistral, follow the installation guide to make sure you add the AutoGen feed correctly. Then add the AutoGen.Mistral package to your project file.
dotnet add package AutoGen.Mistral
[!NOTE]
You need to provide an api-key to use Mistral models which will bring additional cost while using. you can get the api key from Mistral.AI.
Import the required namespace
[!code-csharp]
Create a @AutoGen.Mistral.MistralClientAgent and start chatting!
[!code-csharp]
Use @AutoGen.Core.IStreamingAgent.GenerateStreamingReplyAsync* to stream the chat completion.
[!code-csharp]