Capabilities of the Gemini SDK for .NET
mainThe Mscc.GenerativeAI library provides a comprehensive suite of tools for interacting with Gemini models, including:
- Content Generation:
GenerateContentfor text responses andGenerateContentStreamfor real-time streaming responses. - Conversational AI:
StartChatto initiate multi-turn chat sessions. - Model Management: List available models and retrieve specific model information.
- Data & Embeddings:
GenerateEmbeddingsto convert text to numerical vectors andCountTokensto estimate token usage. - Advanced Features:
- Grounded Answers: Generate answers based on provided context.
- Tuned Models: Create custom models (supports
text-bison-001andgemini-2.0-flash-001). - File API: Upload and use large files with Gemini 2.0 and later models.