Show / Hide Table of Contents

Class GoogleCloudAiplatformV1GenerateContentRequest

Request message for [PredictionService.GenerateContent].

Inheritance
object
GoogleCloudAiplatformV1GenerateContentRequest
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Aiplatform.v1.Data
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class GoogleCloudAiplatformV1GenerateContentRequest : IDirectResponseSchema

Properties

CachedContent

Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: projects/{project}/locations/{location}/cachedContents/{cachedContent}

Declaration
[JsonProperty("cachedContent")]
public virtual string CachedContent { get; set; }
Property Value
Type Description
string

Contents

Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.

Declaration
[JsonProperty("contents")]
public virtual IList<GoogleCloudAiplatformV1Content> Contents { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1Content>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

GenerationConfig

Optional. Generation config.

Declaration
[JsonProperty("generationConfig")]
public virtual GoogleCloudAiplatformV1GenerationConfig GenerationConfig { get; set; }
Property Value
Type Description
GoogleCloudAiplatformV1GenerationConfig

Labels

Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type Description
IDictionary<string, string>

SafetySettings

Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.

Declaration
[JsonProperty("safetySettings")]
public virtual IList<GoogleCloudAiplatformV1SafetySetting> SafetySettings { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1SafetySetting>

SystemInstruction

Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.

Declaration
[JsonProperty("systemInstruction")]
public virtual GoogleCloudAiplatformV1Content SystemInstruction { get; set; }
Property Value
Type Description
GoogleCloudAiplatformV1Content

ToolConfig

Optional. Tool config. This config is shared for all tools provided in the request.

Declaration
[JsonProperty("toolConfig")]
public virtual GoogleCloudAiplatformV1ToolConfig ToolConfig { get; set; }
Property Value
Type Description
GoogleCloudAiplatformV1ToolConfig

Tools

Optional. A list of Tools the model may use to generate the next response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.

Declaration
[JsonProperty("tools")]
public virtual IList<GoogleCloudAiplatformV1Tool> Tools { get; set; }
Property Value
Type Description
IList<GoogleCloudAiplatformV1Tool>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX