autogen/dotnet/website/articles/AutoGen-Mistral-Overview.md
2024-10-02 12:57:50 -04:00

1.2 KiB

AutoGen.Mistral overview

AutoGen.Mistral provides the following agent(s) to connect to Mistral.AI platform.

  • @AutoGen.Mistral.MistralClientAgent: A slim wrapper agent over @AutoGen.Mistral.MistralClient.

Get started with AutoGen.Mistral

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.

Example

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]