Class InlinedRequestBody
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
The actual request body for batch inlined requests.
public class InlinedRequestBody
- Inheritance
-
InlinedRequestBody
- Inherited Members
- Extension Methods
Properties
CachedContent
Optional cached content reference.
[JsonPropertyName("cachedContent")]
public string? CachedContent { get; set; }
Property Value
Contents
The content of the current conversation with the model.
[JsonPropertyName("contents")]
public List<Content>? Contents { get; set; }
Property Value
GenerationConfig
Optional configuration options for model generation.
[JsonPropertyName("generationConfig")]
public GenerationConfig? GenerationConfig { get; set; }
Property Value
Model
The name of the model to use. Format: models/{model}
[JsonPropertyName("model")]
public string? Model { get; set; }
Property Value
SafetySettings
Optional safety settings for blocking unsafe content.
[JsonPropertyName("safetySettings")]
public List<SafetySetting>? SafetySettings { get; set; }
Property Value
SystemInstruction
Optional system instruction.
[JsonPropertyName("systemInstruction")]
public Content? SystemInstruction { get; set; }
Property Value
ToolConfig
Optional tool configuration.
[JsonPropertyName("toolConfig")]
public ToolConfig? ToolConfig { get; set; }
Property Value
Tools
Optional tools the model may use.
[JsonPropertyName("tools")]
public List<Tool>? Tools { get; set; }