Google Generative AI SDK
C#
Show/Hide TOC
Generate
Content
Request
Extensions 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#
Copy
public
static
class
GenerateContentRequestExtensions
Inheritance
Object
GenerateContentRequestExtensions
Methods
AddTool
Adds a
Tool
to the
GenerateContentRequest
with an optional
ToolConfig
.
UseJsonMode
T
Configures the
GenerateContentRequest
to use JSON mode for responses of the specified type
T
.
See Also
Reference
GenerativeAI Namespace
In This Article
Definition
Methods
See Also