Table of Contents

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

string

Contents

The content of the current conversation with the model.

[JsonPropertyName("contents")]
public List<Content>? Contents { get; set; }

Property Value

List<Content>

GenerationConfig

Optional configuration options for model generation.

[JsonPropertyName("generationConfig")]
public GenerationConfig? GenerationConfig { get; set; }

Property Value

GenerationConfig

Model

The name of the model to use. Format: models/{model}

[JsonPropertyName("model")]
public string? Model { get; set; }

Property Value

string

SafetySettings

Optional safety settings for blocking unsafe content.

[JsonPropertyName("safetySettings")]
public List<SafetySetting>? SafetySettings { get; set; }

Property Value

List<SafetySetting>

SystemInstruction

Optional system instruction.

[JsonPropertyName("systemInstruction")]
public Content? SystemInstruction { get; set; }

Property Value

Content

ToolConfig

Optional tool configuration.

[JsonPropertyName("toolConfig")]
public ToolConfig? ToolConfig { get; set; }

Property Value

ToolConfig

Tools

Optional tools the model may use.

[JsonPropertyName("tools")]
public List<Tool>? Tools { get; set; }

Property Value

List<Tool>