Skip to content

v2.0.0

Compare
Choose a tag to compare
@gunpal5 gunpal5 released this 16 Feb 05:50
· 122 commits to main since this release

This new version is a complete rewrite of the previous SDK, designed to improve performance, flexibility, and ease of use. It seamlessly integrates with LangChain.net, providing easy methods for JSON-based interactions and function calling with Google Gemini models.

Highlights of this release include:

  1. Complete Rewrite – The SDK has been entirely rebuilt for improved reliability and maintainability.
  2. LangChain.net Support – Enables you to directly use this SDK within LangChain.net workflows.
  3. Enhanced JSON Mode – Includes straightforward methods to handle Google Gemini’s JSON mode.
  4. Function Calling with Code Generator – Simplifies function calling by providing a source generator that creates argument classes and extension methods automatically.
  5. Multi-Modal Functionality – Provides methods to easily incorporate text, images, and other data for multimodal operations with Google Gemini.
  6. Vertex AI Support – Introducing direct support for Vertex AI, including multiple authentication methods such as OAuth, Service Account, and ADC (Application Default Credentials).
  7. New Packages – Modularizes features to help you tailor the SDK to your needs:
Package Version Description
GenerativeAI.Tools NuGet version Provides function tooling and code generation using tryAgi CSharpToJsonSchema. Ideal for scenarios where you need to define functions and automate their JSON schema generation.
GenerativeAI.Auth NuGet version Offers various Google authentication mechanisms, including OAuth, Service Account, and Application Default Credentials (ADC). Streamlines credential management.
GenerativeAI.Microsoft NuGet version Implements the IChatClient interface from Microsoft.Extensions.AI, enabling seamless integration with Microsoft’s AI ecosystem and services.
GenerativeAI.Web NuGet version Contains extension methods to integrate GenerativeAI into .NET web applications, simplifying setup for web projects that utilize Gemini models.