Class InlinedRequest
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Represents an inlined request for batch processing without external storage.
public class InlinedRequest
- Inheritance
-
InlinedRequest
- Inherited Members
- Extension Methods
Properties
CachedContent
Optional. The cached content to use as context for this request.
[JsonPropertyName("cachedContent")]
public string? CachedContent { get; set; }
Property Value
Contents
Required. 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 and outputs.
[JsonPropertyName("generationConfig")]
public GenerationConfig? GenerationConfig { get; set; }
Property Value
Metadata
Optional. The metadata to be associated with the request.
[JsonPropertyName("metadata")]
public Dictionary<string, string>? Metadata { get; set; }
Property Value
Model
Required. The name of the model to use for generating the completion. Format: models/{model}
[JsonPropertyName("model")]
public string? Model { get; set; }
Property Value
SafetySettings
Optional. A list of unique SafetySetting instances for blocking unsafe content.
[JsonPropertyName("safetySettings")]
public List<SafetySetting>? SafetySettings { get; set; }
Property Value
SystemInstruction
Optional. Developer set system instruction.
[JsonPropertyName("systemInstruction")]
public Content? SystemInstruction { get; set; }
Property Value
ToolConfig
Optional. Tool configuration for any Tool specified in the request.
[JsonPropertyName("toolConfig")]
public ToolConfig? ToolConfig { get; set; }
Property Value
Tools
Optional. A list of Tools the model may use to generate the next response.
[JsonPropertyName("tools")]
public List<Tool>? Tools { get; set; }