public sealed class GenerateGroundedContentRequest.Types.GenerationSpec : IMessage<GenerateGroundedContentRequest.Types.GenerationSpec>, IEquatable<GenerateGroundedContentRequest.Types.GenerationSpec>, IDeepCloneable<GenerateGroundedContentRequest.Types.GenerationSpec>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class GenerateGroundedContentRequest.Types.GenerationSpec.
Content generation specification.
Implements
IMessageGenerateGroundedContentRequestTypesGenerationSpec, IEquatableGenerateGroundedContentRequestTypesGenerationSpec, IDeepCloneableGenerateGroundedContentRequestTypesGenerationSpec, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
GenerationSpec()
public GenerationSpec()GenerationSpec(GenerationSpec)
public GenerationSpec(GenerateGroundedContentRequest.Types.GenerationSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
GenerateGroundedContentRequestTypesGenerationSpec |
Properties
FrequencyPenalty
public float FrequencyPenalty { get; set; }If specified, custom value for frequency penalty will be used.
| Property Value | |
|---|---|
| Type | Description |
float |
|
HasFrequencyPenalty
public bool HasFrequencyPenalty { get; }Gets whether the "frequency_penalty" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasMaxOutputTokens
public bool HasMaxOutputTokens { get; }Gets whether the "max_output_tokens" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasPresencePenalty
public bool HasPresencePenalty { get; }Gets whether the "presence_penalty" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSeed
public bool HasSeed { get; }Gets whether the "seed" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTemperature
public bool HasTemperature { get; }Gets whether the "temperature" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTopK
public bool HasTopK { get; }Gets whether the "top_k" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTopP
public bool HasTopP { get; }Gets whether the "top_p" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
LanguageCode
public string LanguageCode { get; set; }Language code for content. Use language tags defined by BCP47.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MaxOutputTokens
public int MaxOutputTokens { get; set; }If specified, custom value for max output tokens will be used.
| Property Value | |
|---|---|
| Type | Description |
int |
|
ModelId
public string ModelId { get; set; }Specifies which Vertex model id to use for generation.
| Property Value | |
|---|---|
| Type | Description |
string |
|
PresencePenalty
public float PresencePenalty { get; set; }If specified, custom value for presence penalty will be used.
| Property Value | |
|---|---|
| Type | Description |
float |
|
Seed
public int Seed { get; set; }If specified, custom value for the seed will be used.
| Property Value | |
|---|---|
| Type | Description |
int |
|
Temperature
public float Temperature { get; set; }If specified, custom value for the temperature will be used.
| Property Value | |
|---|---|
| Type | Description |
float |
|
TopK
public int TopK { get; set; }If specified, custom value for top-k sampling will be used.
| Property Value | |
|---|---|
| Type | Description |
int |
|
TopP
public float TopP { get; set; }If specified, custom value for nucleus sampling will be used.
| Property Value | |
|---|---|
| Type | Description |
float |
|