GenerateContentRequestExtensions Class

Provides extension methods for enhancing the functionality of the GenerateContentRequest class.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static class GenerateContentRequestExtensions
Inheritance
Object    GenerateContentRequestExtensions

Methods

AddTool Adds a Tool to the GenerateContentRequest with an optional ToolConfig.
UseJsonModeT Configures the GenerateContentRequest to use JSON mode for responses of the specified type T.

See Also